From 2f921cfb88b969fb8bd361c46ddf2f41a9e363b0 Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Fri, 29 Dec 2023 11:50:25 +0800 Subject: [PATCH] fix(BasicTable): avoid select when edit cell (#3484) --- .../Table/src/components/editable/EditableCell.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/components/editable/EditableCell.vue b/src/components/Table/src/components/editable/EditableCell.vue index 62fa6bb4..e18d3d5e 100644 --- a/src/components/Table/src/components/editable/EditableCell.vue +++ b/src/components/Table/src/components/editable/EditableCell.vue @@ -179,7 +179,8 @@ } }); - function handleEdit() { + function handleEdit(e) { + e.stopPropagation(); if (unref(getRowEditable) || unref(props.column?.editRow) || unref(getDisable)) return; ruleMessage.value = ''; isEdit.value = true; @@ -430,8 +431,12 @@ )} {this.isEdit && ( - -
+ e.stopPropagation()}> +
e.stopPropagation()} + >