Commit 0c29fac59a8ce158f21c94e7a616938ba185622d

Authored by xp.Huang
2 parents edd03aca c70e59ae

Merge branch 'feat/tcp-product-thingsmodel-add-field' into 'main_dev'

feat: 物模型拓展描述符新增缩放因子字段

See merge request yunteng/thingskit-front!787
@@ -6,6 +6,7 @@ export enum FormFieldsEnum { @@ -6,6 +6,7 @@ export enum FormFieldsEnum {
6 REGISTER_ADDRESS = 'registerAddress', 6 REGISTER_ADDRESS = 'registerAddress',
7 DATA_TYPE = 'dataType', 7 DATA_TYPE = 'dataType',
8 ACTION_TYPE = 'actionType', 8 ACTION_TYPE = 'actionType',
  9 + ZOOM_FACTOR = 'zoomFactor',
9 } 10 }
10 11
11 export const formSchemas: FormSchema[] = [ 12 export const formSchemas: FormSchema[] = [
@@ -52,4 +53,15 @@ export const formSchemas: FormSchema[] = [ @@ -52,4 +53,15 @@ export const formSchemas: FormSchema[] = [
52 getPopupContainer: () => document.body, 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 ];