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:
parent
2ba865af2c
commit
8d9fc95977
@ -44,7 +44,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 || 200,
|
default: fieldSchema?.['x-component-props']?.width || 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
} as ISchema
|
} as ISchema
|
||||||
|
@ -68,7 +68,7 @@ const useTableColumns = (props: { showDel?: boolean; isSubTable?: boolean }) =>
|
|||||||
dataIndex,
|
dataIndex,
|
||||||
key: s.name,
|
key: s.name,
|
||||||
sorter: s['x-component-props']?.['sorter'],
|
sorter: s['x-component-props']?.['sorter'],
|
||||||
width: 200,
|
width: 20,
|
||||||
...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);
|
||||||
|
Loading…
Reference in New Issue
Block a user