mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2026-01-14 16:57:10 +08:00
style: 优化 GiForm 表单使用代码
This commit is contained in:
@@ -143,6 +143,7 @@ const getComponentBindProps = (item: ColumnItem) => {
|
||||
// 组件默认配置映射表
|
||||
const ConfigMap = new Map<ColumnItem['type'], Partial<ColumnItem['props'] & { placeholder: string }>>([
|
||||
['input', { allowClear: true, placeholder: `请输入${item.label}`, maxLength: 255, showWordLimit: true }],
|
||||
['input-password', { placeholder: `请输入${item.label}` }],
|
||||
['input-number', { placeholder: `请输入${item.label}` }],
|
||||
['textarea', { allowClear: false, placeholder: `请输入${item.label}`, maxLength: 200, showWordLimit: true, autoSize: { minRows: 3, maxRows: 5 } }],
|
||||
['input-tag', { allowClear: true, placeholder: `请输入${item.label}` }],
|
||||
|
||||
Reference in New Issue
Block a user