From 61e8bfdb8c1ae5c973eea65dd603983276f6bca5 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 6 Sep 2021 18:55:04 +0800 Subject: [PATCH] fix: column not pass to cell --- components/vc-table/Body/BodyRow.tsx | 1 + examples/App.vue | 91 +++++++++++++++++----------- examples/themeConfig.ts | 54 +++++++++++++++++ examples/vite.config.ts | 14 ++++- plugin/docs/index.ts | 5 +- 5 files changed, 128 insertions(+), 37 deletions(-) create mode 100644 examples/themeConfig.ts diff --git a/components/vc-table/Body/BodyRow.tsx b/components/vc-table/Body/BodyRow.tsx index 9e60d9f82..92f0c3e34 100644 --- a/components/vc-table/Body/BodyRow.tsx +++ b/components/vc-table/Body/BodyRow.tsx @@ -162,6 +162,7 @@ export default defineComponent>({ customRender={customRender} {...fixedInfo} additionalProps={additionalCellProps} + column={column} v-slots={{ // ============= Used for nest expandable ============= appendNode: () => { diff --git a/examples/App.vue b/examples/App.vue index a57385d1c..61c07f278 100644 --- a/examples/App.vue +++ b/examples/App.vue @@ -1,45 +1,73 @@ + +--- +order: 0 +title: + en-US: Basic Usage + zh-CN: 基本用法 +--- + +## zh-CN + +简单的表格,最后一列是各种操作。 + +## en-US + +Simple table with actions. + +