Commit 2b3f01723d9b4f71c83f8779d9ebeda80c64b213

Authored by ww
1 parent 1b2f1b00

perf: 优化物模型拓展描述符寄存器地址组件

@@ -11,11 +11,12 @@ export enum FormFieldsEnum { @@ -11,11 +11,12 @@ export enum FormFieldsEnum {
11 export const formSchemas: FormSchema[] = [ 11 export const formSchemas: FormSchema[] = [
12 { 12 {
13 field: FormFieldsEnum.REGISTER_ADDRESS, 13 field: FormFieldsEnum.REGISTER_ADDRESS,
14 - component: 'InputNumber', 14 + component: 'RegisterAddressInput',
15 label: '寄存器地址', 15 label: '寄存器地址',
16 - rules: [{ message: '请输入寄存器地址', required: true }], 16 + changeEvent: 'update:value',
  17 + valueField: 'value',
  18 + rules: [{ message: '请输入寄存器地址', required: true, type: 'number' }],
17 componentProps: { 19 componentProps: {
18 - max: parseInt('ffff', 16),  
19 placeholder: '请输入寄存器地址', 20 placeholder: '请输入寄存器地址',
20 }, 21 },
21 }, 22 },