From 8d9fc9597733a19f33d83b2da2ccfc842e7bb6c1 Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Wed, 17 Apr 2024 12:48:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=97=E5=AE=BD=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BA20=20(#74?= =?UTF-8?q?1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachycode/pulls/741 Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../blocks/data-blocks/table/TableActionColumnInitializers.tsx | 2 +- .../core/client/src/schema-component/antd/table-v2/Table.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx index fbb28cf7f..4bc141294 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx @@ -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 diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 54fcd3485..b186714ad 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -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);