Showing
4 changed files
with
11 additions
and
9 deletions
... | ... | @@ -135,12 +135,10 @@ export const step1Schemas: FormSchema[] = [ |
135 | 135 | required: true, |
136 | 136 | component: 'Input', |
137 | 137 | colProps: { span: 14 }, |
138 | - componentProps() { | |
139 | - return { | |
140 | - disabled: false, | |
141 | - ength: 255, | |
142 | - placeholder: '请输入产品名称', | |
143 | - }; | |
138 | + componentProps: { | |
139 | + disabled: false, | |
140 | + maxLength: 63, | |
141 | + placeholder: '请输入产品名称', | |
144 | 142 | }, |
145 | 143 | }, |
146 | 144 | { | ... | ... |
... | ... | @@ -13,7 +13,12 @@ |
13 | 13 | :name="ifAdd ? 'name' : 'params'" |
14 | 14 | :rules="[{ required: true, message: ifAdd ? '请输入脚本名称' : '请输入参数' }]" |
15 | 15 | > |
16 | - <a-input v-if="ifAdd" v-model:value="scriptForm.name" placeholder="请输入脚本名称" /> | |
16 | + <a-input | |
17 | + v-if="ifAdd" | |
18 | + :maxlength="36" | |
19 | + v-model:value="scriptForm.name" | |
20 | + placeholder="请输入脚本名称" | |
21 | + /> | |
17 | 22 | <a-input |
18 | 23 | @change="handleInputChange" |
19 | 24 | v-else | ... | ... |