Commit 9ff432035804901f8679fcc434bfe01fb838e697

Authored by ww
1 parent 182a3bca

fix: 统一物模型整型与浮点型的最大值与最小值

... ... @@ -11,7 +11,7 @@ export const getFormSchemas = ({ structJSON: structJson, required, transportType
11 11 }: StructJSON): FormSchema => {
12 12 const { specs } = dataType || {}
13 13 const { valueRange } = specs! as Specs
14   - const { max = 2147483647, min = -2147483648 } = valueRange || {}
  14 + const { max = Number.MAX_SAFE_INTEGER, min = Number.MIN_SAFE_INTEGER } = valueRange || {}
15 15 return {
16 16 field: identifier,
17 17 label: functionName,
... ...