a
This commit is contained in:
parent
3057ce0e8b
commit
042cb02563
|
|
@ -1809,9 +1809,9 @@ const ConfigItem = ({ label, config, onUpdate, disabled }) => {
|
||||||
}}
|
}}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
className={isEditing ? 'editing' : ''}
|
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 && (
|
{isEditing && (
|
||||||
<button
|
<button
|
||||||
className="save-btn"
|
className="save-btn"
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ const ConfigItem = ({ label, config, onUpdate, disabled }) => {
|
||||||
style={{ width: '100%', padding: '8px', border: '1px solid #ddd', borderRadius: '4px' }}
|
style={{ width: '100%', padding: '8px', border: '1px solid #ddd', borderRadius: '4px' }}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isPercentKey && <span style={{ marginLeft: '8px', color: '#666' }}>%</span>}
|
{/* ⚠️ 简化:去掉%符号,直接显示小数(0.30) */}
|
||||||
</div>
|
</div>
|
||||||
{config.description && (
|
{config.description && (
|
||||||
<div style={{ fontSize: '12px', color: '#666', marginTop: '4px' }}>{config.description}</div>
|
<div style={{ fontSize: '12px', color: '#666', marginTop: '4px' }}>{config.description}</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user