fix: 完善部分输入表单项字符长度限制

Closes #IBPYW5
This commit is contained in:
2025-03-02 18:47:40 +08:00
parent 47769f9ad8
commit e8249bc4d2
3 changed files with 14 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ const dicData: Record<string, any> = reactive({})
const getComponentBindProps = (item: ColumnItem) => {
// 组件默认配置映射表
const ConfigMap = new Map<ColumnItem['type'], Partial<ColumnItem['props'] & { placeholder: string }>>([
['input', { allowClear: true, placeholder: `请输入${item.label}`, maxLength: 20 }],
['input', { allowClear: true, placeholder: `请输入${item.label}`, maxLength: 255 }],
['input-number', { placeholder: `请输入${item.label}` }],
['textarea', { allowClear: false, placeholder: `请输入${item.label}`, maxLength: 200 }],
['input-tag', { allowClear: true, placeholder: `请输入${item.label}` }],