Commit 0c29fac59a8ce158f21c94e7a616938ba185622d
Merge branch 'feat/tcp-product-thingsmodel-add-field' into 'main_dev'
feat: 物模型拓展描述符新增缩放因子字段 See merge request yunteng/thingskit-front!787
Showing
1 changed file
with
12 additions
and
0 deletions
| ... | ... | @@ -6,6 +6,7 @@ export enum FormFieldsEnum { | 
| 6 | 6 | REGISTER_ADDRESS = 'registerAddress', | 
| 7 | 7 | DATA_TYPE = 'dataType', | 
| 8 | 8 | ACTION_TYPE = 'actionType', | 
| 9 | + ZOOM_FACTOR = 'zoomFactor', | |
| 9 | 10 | } | 
| 10 | 11 | |
| 11 | 12 | export const formSchemas: FormSchema[] = [ | 
| ... | ... | @@ -52,4 +53,15 @@ export const formSchemas: FormSchema[] = [ | 
| 52 | 53 | getPopupContainer: () => document.body, | 
| 53 | 54 | }, | 
| 54 | 55 | }, | 
| 56 | + { | |
| 57 | + field: FormFieldsEnum.ZOOM_FACTOR, | |
| 58 | + component: 'InputNumber', | |
| 59 | + label: '缩放因子', | |
| 60 | + helpMessage: ['缩放因子不能为0,默认为1'], | |
| 61 | + defaultValue: 1, | |
| 62 | + componentProps: { | |
| 63 | + min: 1, | |
| 64 | + placeholder: '请输入缩放因子', | |
| 65 | + }, | |
| 66 | + }, | |
| 55 | 67 | ]; | ... | ... |