From fea10debc0aec58b2b633161925c3973404ef4b8 Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Wed, 17 Jul 2024 10:51:44 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E6=9B=B4=E6=94=B9=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=88=97=E5=AE=BD=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BA?= =?UTF-8?q?20=20(#741)"=20(#1331)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8d9fc9597733a19f33d83b2da2ccfc842e7bb6c1. Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1331 Reviewed-by: sealday 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 801d55c00..0c73ab69b 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 @@ -46,7 +46,7 @@ export const Resizable = () => { 'x-decorator': 'FormItem', 'x-component': 'InputNumber', 'x-component-props': {}, - default: fieldSchema?.['x-component-props']?.width || 20, + default: fieldSchema?.['x-component-props']?.width || 200, }, }, } 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 b7bc0930b..17a252fff 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 @@ -77,7 +77,7 @@ const useTableColumns = (props: { showDel?: boolean; isSubTable?: boolean; setFi dataIndex, key: s.name, sorter: s['x-component-props']?.['sorter'], - width: 20, + width: 200, ...s['x-component-props'], render: (v, record) => { const index = field.value?.indexOf(record);