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

This reverts commit 8d9fc95977.

Reviewed-on: daoyoucloud/tachybase#1331
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
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-07-17 10:51:44 +08:00 committed by sealday
parent c56304f2b5
commit fea10debc0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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