From ac9cf404a3f1f161b8c219fe195fba3f8193bb23 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Mon, 14 Nov 2022 13:56:41 +0800 Subject: [PATCH] table index --- es/table/index.js | 1 + lib/index.js | 1 + src/component/table/TableRow.vue | 1 + umd/index.js | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/es/table/index.js b/es/table/index.js index a58c295..d9ccc75 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -412,6 +412,7 @@ const _sfc_main$2 = defineComponent({ default: withCtx(() => [ renderSlot(_ctx.$slots, column.customSlot, { data: __props.data, + index: props.index, column }) ]), diff --git a/lib/index.js b/lib/index.js index e9a4e5f..438d5c3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -18466,6 +18466,7 @@ const _sfc_main$G = defineComponent({ default: withCtx(() => [ renderSlot(_ctx.$slots, column.customSlot, { data: __props.data, + index: props.index, column }) ]), diff --git a/src/component/table/TableRow.vue b/src/component/table/TableRow.vue index e2ab0b9..4d6c622 100644 --- a/src/component/table/TableRow.vue +++ b/src/component/table/TableRow.vue @@ -515,6 +515,7 @@ const radioProps = props.getRadioProps(props.data, props.index);