From 83d609d53067b2639a55a0e367a5e7adbd8a22fc Mon Sep 17 00:00:00 2001 From: Sma11X <540351143@qq.com> Date: Tue, 12 Sep 2023 21:55:50 +0800 Subject: [PATCH] fix(Table): select all rows without select listener (#652) --- src/runtime/components/data/Table.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/data/Table.vue b/src/runtime/components/data/Table.vue index c0e7af0eb3..e63143bb00 100644 --- a/src/runtime/components/data/Table.vue +++ b/src/runtime/components/data/Table.vue @@ -239,7 +239,8 @@ export default defineComponent({ return } - onSelect(row) + // @ts-ignore + attrs.onSelect ? attrs.onSelect(row) : selected.value.push(row) }) }