Commit fe819f199feb930601ea636095a9b2a42dafffe3
Merge branch 'fix/register-address-input-component-build-error' into 'main_dev'
fix: 修复registerAddressInput打包报错 See merge request yunteng/thingskit-front!758
Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
| 7 | DEC = 'DEC', | 7 | DEC = 'DEC', |
| 8 | HEX = 'HEX', | 8 | HEX = 'HEX', |
| 9 | } | 9 | } |
| 10 | + | ||
| 10 | const emit = defineEmits(['update:value']); | 11 | const emit = defineEmits(['update:value']); |
| 11 | 12 | ||
| 12 | const props = withDefaults( | 13 | const props = withDefaults( |
| @@ -15,12 +16,12 @@ | @@ -15,12 +16,12 @@ | ||
| 15 | disabled?: boolean; | 16 | disabled?: boolean; |
| 16 | maxValue?: number | string; | 17 | maxValue?: number | string; |
| 17 | minValue?: number | string; | 18 | minValue?: number | string; |
| 18 | - type?: AddressTypeEnum; | 19 | + type?: string; |
| 19 | toUpperCase?: boolean; | 20 | toUpperCase?: boolean; |
| 20 | }>(), | 21 | }>(), |
| 21 | { | 22 | { |
| 22 | inputProps: () => ({}), | 23 | inputProps: () => ({}), |
| 23 | - type: AddressTypeEnum.DEC, | 24 | + type: 'DEC', |
| 24 | maxValue: parseInt('FFFF', 16), | 25 | maxValue: parseInt('FFFF', 16), |
| 25 | minValue: 0, | 26 | minValue: 0, |
| 26 | toUpperCase: true, | 27 | toUpperCase: true, |