feat: 更改表格列宽默认值为20 (#741)

Reviewed-on: daoyoucloud/tachycode#741
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-04-17 12:48:34 +08:00 committed by sealday
parent 2ba865af2c
commit 8d9fc95977
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export const Resizable = () => {
'x-decorator': 'FormItem',
'x-component': 'InputNumber',
'x-component-props': {},
default: fieldSchema?.['x-component-props']?.width || 200,
default: fieldSchema?.['x-component-props']?.width || 20,
},
},
} as ISchema

View File

@ -68,7 +68,7 @@ const useTableColumns = (props: { showDel?: boolean; isSubTable?: boolean }) =>
dataIndex,
key: s.name,
sorter: s['x-component-props']?.['sorter'],
width: 200,
width: 20,
...s['x-component-props'],
render: (v, record) => {
const index = field.value?.indexOf(record);