From e418130a66c54b7fed533977b1558e7206d729fb Mon Sep 17 00:00:00 2001 From: roymondchen Date: Wed, 19 Nov 2025 13:23:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(form,=20design,=20form-schema):=20table?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89title,table=20?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AEtitle=20tip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design/src/types.ts | 1 + packages/element-plus-adapter/src/Table.vue | 3 ++ packages/form-schema/src/base.ts | 1 + packages/form/src/table/useTableColumns.ts | 43 ++++++++++++++++++- .../tdesign-vue-next-adapter/src/Table.vue | 6 +++ 5 files changed, 53 insertions(+), 1 deletion(-) diff --git a/packages/design/src/types.ts b/packages/design/src/types.ts index b1871e2e..bc2abd72 100644 --- a/packages/design/src/types.ts +++ b/packages/design/src/types.ts @@ -347,6 +347,7 @@ export interface TableColumnOptions { selectable?: (row: T, index: number) => boolean; }; cell?: (scope: { row: T; $index: number }) => any; + title?: (scope?: any) => any; } export interface TabPaneProps { diff --git a/packages/element-plus-adapter/src/Table.vue b/packages/element-plus-adapter/src/Table.vue index e3b55717..d6657ac4 100644 --- a/packages/element-plus-adapter/src/Table.vue +++ b/packages/element-plus-adapter/src/Table.vue @@ -22,6 +22,9 @@ >