mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
fix: 健康分设置问题修复
This commit is contained in:
@@ -267,10 +267,10 @@ export const getHealthySettingColumn = (form: any, data: any, clusterId: string)
|
|||||||
<InputNumber
|
<InputNumber
|
||||||
size="small"
|
size="small"
|
||||||
min={0}
|
min={0}
|
||||||
max={100}
|
max={1}
|
||||||
style={{ width: 86 }}
|
style={{ width: 86 }}
|
||||||
formatter={(value) => `${value}%`}
|
formatter={(value) => `${value * 100}%`}
|
||||||
parser={(value: any) => value.replace('%', '')}
|
parser={(value: any) => parseFloat(value.replace('%', '')) / 100}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<InputNumber style={{ width: 86 }} size="small" {...attrs} />
|
<InputNumber style={{ width: 86 }} size="small" {...attrs} />
|
||||||
|
|||||||
Reference in New Issue
Block a user