Commit 72019892ecb5fcabca98eadcd79cf0d6e884bd57

Authored by xp.Huang
2 parents 7b6ec822 9ff43203

Merge branch 'fix/object-model-number-type-value-limit' into 'main_dev'

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

See merge request yunteng/thingskit-scada!204
@@ -11,7 +11,7 @@ export const getFormSchemas = ({ structJSON: structJson, required, transportType @@ -11,7 +11,7 @@ export const getFormSchemas = ({ structJSON: structJson, required, transportType
11 }: StructJSON): FormSchema => { 11 }: StructJSON): FormSchema => {
12 const { specs } = dataType || {} 12 const { specs } = dataType || {}
13 const { valueRange } = specs! as Specs 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 return { 15 return {
16 field: identifier, 16 field: identifier,
17 label: functionName, 17 label: functionName,