fix 不显示问题

This commit is contained in:
Theluyuan 2023-02-16 14:01:18 +08:00
parent d3b3161574
commit afa4ba6749
4 changed files with 109 additions and 122 deletions

View File

@ -1,5 +1,5 @@
import { w as withInstall } from "../badge/index2.js"; import { w as withInstall } from "../badge/index2.js";
import { defineComponent, useSlots, ref, computed, resolveComponent, resolveDirective, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, normalizeClass, withModifiers, renderList, createCommentVNode, unref, createBlock, createVNode, mergeProps, isRef, createTextVNode, toDisplayString, withCtx, renderSlot, withKeys, withDirectives, createSlots, watch, nextTick, onMounted, onBeforeUnmount } from "vue"; import { defineComponent, useSlots, ref, computed, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, normalizeClass, withModifiers, renderList, createCommentVNode, unref, createBlock, createVNode, mergeProps, isRef, createTextVNode, toDisplayString, withCtx, renderSlot, withKeys, createSlots, watch, nextTick, onMounted, onBeforeUnmount } from "vue";
import { _ as _sfc_main$2E, a as _sfc_main$4 } from "../checkbox/index2.js"; import { _ as _sfc_main$2E, a as _sfc_main$4 } from "../checkbox/index2.js";
import { _ as _sfc_main$7 } from "../dropdown/index2.js"; import { _ as _sfc_main$7 } from "../dropdown/index2.js";
import { _ as _sfc_main$8 } from "../empty/index2.js"; import { _ as _sfc_main$8 } from "../empty/index2.js";
@ -42,11 +42,12 @@ const _hoisted_10$1 = {
class: "layui-table-cell-expand-icon-spaced" class: "layui-table-cell-expand-icon-spaced"
}; };
const _hoisted_11$1 = ["onClick"]; const _hoisted_11$1 = ["onClick"];
const _hoisted_12$1 = { const _hoisted_12$1 = { key: 1 };
const _hoisted_13$1 = {
key: 0, key: 0,
class: "layui-table-cell-expand" class: "layui-table-cell-expand"
}; };
const _hoisted_13$1 = ["colspan"]; const _hoisted_14$1 = ["colspan"];
const __default__$2 = { const __default__$2 = {
name: "TableRow" name: "TableRow"
}; };
@ -248,7 +249,6 @@ const _sfc_main$2 = defineComponent({
return (_ctx, _cache) => { return (_ctx, _cache) => {
const _component_lay_input = resolveComponent("lay-input"); const _component_lay_input = resolveComponent("lay-input");
const _component_table_row = resolveComponent("table-row", true); const _component_table_row = resolveComponent("table-row", true);
const _directive_esle = resolveDirective("esle");
return openBlock(), createElementBlock(Fragment, null, [ return openBlock(), createElementBlock(Fragment, null, [
createElementVNode("tr", { createElementVNode("tr", {
style: normalizeStyle([renderRowStyle(__props.data, __props.index)]), style: normalizeStyle([renderRowStyle(__props.data, __props.index)]),
@ -487,12 +487,7 @@ const _sfc_main$2 = defineComponent({
onKeyup: withKeys(($event) => editIndex.value[columnIndex] = false, ["enter"]), onKeyup: withKeys(($event) => editIndex.value[columnIndex] = false, ["enter"]),
onBlur: ($event) => editIndex.value[columnIndex] = false onBlur: ($event) => editIndex.value[columnIndex] = false
}, null, 8, ["modelValue", "onUpdate:modelValue", "onKeyup", "onBlur"])) }, null, 8, ["modelValue", "onUpdate:modelValue", "onKeyup", "onBlur"]))
], 64)) : createCommentVNode("", true), ], 64)) : (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(__props.data[column.key]), 1))
withDirectives((openBlock(), createElementBlock("template", null, [
createElementVNode("span", null, toDisplayString(__props.data[column.key]), 1)
])), [
[_directive_esle]
])
], 64)) ], 64))
], 4) ], 4)
], 14, _hoisted_9$1)) : createCommentVNode("", true) ], 14, _hoisted_9$1)) : createCommentVNode("", true)
@ -502,13 +497,13 @@ const _sfc_main$2 = defineComponent({
], 64); ], 64);
}), 128)) }), 128))
], 38), ], 38),
unref(slot).expand && unref(isExpand) ? (openBlock(), createElementBlock("tr", _hoisted_12$1, [ unref(slot).expand && unref(isExpand) ? (openBlock(), createElementBlock("tr", _hoisted_13$1, [
createElementVNode("td", { createElementVNode("td", {
class: "layui-table-cell", class: "layui-table-cell",
colspan: __props.columns.length colspan: __props.columns.length
}, [ }, [
renderSlot(_ctx.$slots, "expand", { data: __props.data }) renderSlot(_ctx.$slots, "expand", { data: __props.data })
], 8, _hoisted_13$1) ], 8, _hoisted_14$1)
])) : createCommentVNode("", true), ])) : createCommentVNode("", true),
__props.data[__props.childrenColumnName] && unref(isExpand) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.data[__props.childrenColumnName], (children, childrenIndex) => { __props.data[__props.childrenColumnName] && unref(isExpand) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.data[__props.childrenColumnName], (children, childrenIndex) => {
return openBlock(), createBlock(_component_table_row, { return openBlock(), createBlock(_component_table_row, {

File diff suppressed because one or more lines are too long

View File

@ -610,10 +610,7 @@ const radioProps = props.getRadioProps(props.data, props.index);
<span v-if="editIndex[columnIndex] == false" @click="editIndex[columnIndex] = true"> {{ data[column.key] }} </span> <span v-if="editIndex[columnIndex] == false" @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> <lay-input v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
</template> </template>
<template v-esle> <span v-else> {{ data[column.key] }} </span>
<span> {{ data[column.key] }} </span>
</template>
</template> </template>
</div> </div>
</td> </td>

File diff suppressed because one or more lines are too long