From 560115644c060afaea0cf82afeb5336b17cb32c5 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Thu, 16 Feb 2023 14:08:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20input=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/table/index.js | 2 +- lib/index.js | 2 +- src/component/table/TableRow.vue | 2 +- umd/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/es/table/index.js b/es/table/index.js index 74c93ab..b3d26fe 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -477,7 +477,7 @@ const _sfc_main$2 = defineComponent({ _: 2 }, 1032, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [ column.edit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ - editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", { + !editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", { key: 0, onClick: ($event) => editIndex.value[columnIndex] = true }, toDisplayString(__props.data[column.key]), 9, _hoisted_11$1)) : (openBlock(), createBlock(_component_lay_input, { diff --git a/lib/index.js b/lib/index.js index b59422f..0afb231 100644 --- a/lib/index.js +++ b/lib/index.js @@ -18688,7 +18688,7 @@ const _sfc_main$G = defineComponent({ _: 2 }, 1032, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [ column.edit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ - editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", { + !editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", { key: 0, onClick: ($event) => editIndex.value[columnIndex] = true }, toDisplayString$1(__props.data[column.key]), 9, _hoisted_11$8)) : (openBlock(), createBlock(_component_lay_input, { diff --git a/src/component/table/TableRow.vue b/src/component/table/TableRow.vue index 4672c62..c38a156 100644 --- a/src/component/table/TableRow.vue +++ b/src/component/table/TableRow.vue @@ -607,7 +607,7 @@ const radioProps = props.getRadioProps(props.data, props.index);