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