fix input 显示

This commit is contained in:
Theluyuan 2023-02-16 14:08:53 +08:00
parent 3465493f43
commit 560115644c
4 changed files with 4 additions and 4 deletions

View File

@ -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, {

View File

@ -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, {

View File

@ -607,7 +607,7 @@ const radioProps = props.getRadioProps(props.data, props.index);
</lay-tooltip>
<template v-else>
<template v-if="column.edit">
<span v-if="editIndex[columnIndex]" @click="editIndex[columnIndex] = true"> {{ data[column.key] }} </span>
<span v-if="!editIndex[columnIndex]" @click="editIndex[columnIndex] = true"> {{ data[column.key] }} </span>
<lay-input v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
</template>
<span v-else> {{ data[column.key] }} </span>

File diff suppressed because one or more lines are too long