From f824b661bd897eefce567691c7f3ac55046246de Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 15 Nov 2022 16:03:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(table):=20=E6=94=AF=E6=8C=81expand?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8F=AF=E4=BB=A5=E4=B8=BAhtml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/table/src/ExpandColumn.vue | 1 + packages/table/src/schema.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/table/src/ExpandColumn.vue b/packages/table/src/ExpandColumn.vue index 1974d247a..7fffe4d0c 100644 --- a/packages/table/src/ExpandColumn.vue +++ b/packages/table/src/ExpandColumn.vue @@ -12,6 +12,7 @@ :config="config.form" :init-values="config.values || (config.prop && scope.row[config.prop]) || {}" > +
diff --git a/packages/table/src/schema.ts b/packages/table/src/schema.ts index f4fc20e1e..34777c26f 100644 --- a/packages/table/src/schema.ts +++ b/packages/table/src/schema.ts @@ -55,4 +55,5 @@ export type ColumnConfig = { sortable?: boolean | 'custom'; action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag'; handler?: (row: any) => void; + expandContent?: (row: any, prop?: string) => string; };