Commit cfe71af3f31860b5db384754dc4680908250a808

Authored by xp.Huang
2 parents 77740e7d de0ef886

Merge branch 'perf/create-device-deviceCode-field-add-tooltip' into 'main_dev'

perf: 创建设备时deviceCode字段新增tooltip提示

See merge request yunteng/thingskit-front!750
... ... @@ -113,7 +113,7 @@ export const step1Schemas: FormSchema[] = [
113 113 },
114 114 {
115 115 field: 'code',
116   - label: '设备标识',
  116 + label: '设备标识/地址码',
117 117 dynamicRules({ values }) {
118 118 return [
119 119 {
... ... @@ -129,6 +129,7 @@ export const step1Schemas: FormSchema[] = [
129 129 maxLength: 255,
130 130 placeholder: '请输入设备标识或设备地址码',
131 131 },
  132 + helpMessage: ['标准Modbus地址码值为16进制1-255值', '其他协议自定义'],
132 133 ifShow: ({ values }) =>
133 134 values?.transportType === TransportTypeEnum.TCP &&
134 135 (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY),
... ...
... ... @@ -187,7 +187,7 @@
187 187
188 188 const [register, { validate, resetFields, setFieldsValue, getFieldsValue, updateSchema }] =
189 189 useForm({
190   - labelWidth: 120,
  190 + labelWidth: 140,
191 191 schemas: step1Schemas,
192 192 actionColOptions: {
193 193 span: 14,
... ...