Commit fd5c0bb08502a705580b2ffc115591d0f0e9fd47

Authored by ww
1 parent a2b21f85

perf: form placeholder

@@ -62,6 +62,7 @@ export const formDetailSchema: FormSchema[] = [ @@ -62,6 +62,7 @@ export const formDetailSchema: FormSchema[] = [
62 rules: [{ required: true, message: '平台类型为必填项', type: 'number' }], 62 rules: [{ required: true, message: '平台类型为必填项', type: 'number' }],
63 componentProps: { 63 componentProps: {
64 options: [{ label: '海康ISC平台', value: 0 }], 64 options: [{ label: '海康ISC平台', value: 0 }],
  65 + placeholder: '请输入选择平台类型',
65 }, 66 },
66 }, 67 },
67 { 68 {
@@ -82,17 +83,26 @@ export const formDetailSchema: FormSchema[] = [ @@ -82,17 +83,26 @@ export const formDetailSchema: FormSchema[] = [
82 component: 'Input', 83 component: 'Input',
83 helpMessage: ['平台IP + 端口'], 84 helpMessage: ['平台IP + 端口'],
84 rules: [{ required: true, message: '平台地址为必填项' }], 85 rules: [{ required: true, message: '平台地址为必填项' }],
  86 + componentProps: {
  87 + placeholder: '请输入平台地址',
  88 + },
85 }, 89 },
86 { 90 {
87 label: '用户Key', 91 label: '用户Key',
88 field: 'appKey', 92 field: 'appKey',
89 component: 'Input', 93 component: 'Input',
90 rules: [{ required: true, message: '用户Key为必填项' }], 94 rules: [{ required: true, message: '用户Key为必填项' }],
  95 + componentProps: {
  96 + placeholder: '请输入用户Key',
  97 + },
91 }, 98 },
92 { 99 {
93 label: '用户密钥', 100 label: '用户密钥',
94 field: 'appSecret', 101 field: 'appSecret',
95 component: 'Input', 102 component: 'Input',
96 rules: [{ required: true, message: '用户密钥为必填项' }], 103 rules: [{ required: true, message: '用户密钥为必填项' }],
  104 + componentProps: {
  105 + placeholder: '请输入用户密钥',
  106 + },
97 }, 107 },
98 ]; 108 ];