This commit is contained in:
薇薇安 2026-01-26 21:08:06 +08:00
parent 3057ce0e8b
commit 042cb02563
2 changed files with 3 additions and 3 deletions

View File

@ -1809,9 +1809,9 @@ const ConfigItem = ({ label, config, onUpdate, disabled }) => {
}}
disabled={disabled}
className={isEditing ? 'editing' : ''}
placeholder={isPercentKey ? (isPctLike ? '输入0~1表示0%~1%' : '输入百分比(可小数)') : '输入数值'}
placeholder={isPercentKey ? '输入小数0-1之间如0.30表示30%' : '输入数值'}
/>
{isPercentKey && <span className="percent-suffix">%</span>}
{/* ⚠️ 简化:去掉%符号直接显示小数0.30 */}
{isEditing && (
<button
className="save-btn"

View File

@ -145,7 +145,7 @@ const ConfigItem = ({ label, config, onUpdate, disabled }) => {
style={{ width: '100%', padding: '8px', border: '1px solid #ddd', borderRadius: '4px' }}
/>
)}
{isPercentKey && <span style={{ marginLeft: '8px', color: '#666' }}>%</span>}
{/* ⚠️ 简化:去掉%符号直接显示小数0.30 */}
</div>
{config.description && (
<div style={{ fontSize: '12px', color: '#666', marginTop: '4px' }}>{config.description}</div>