fix soul筛选显示

This commit is contained in:
2023-05-04 16:19:37 +08:00
parent ff6ff998c0
commit dc4ca22ced
5 changed files with 20 additions and 13 deletions

View File

@@ -19088,7 +19088,8 @@ const _sfc_main$E = defineComponent({
left: { default: 10 },
top: { default: 10 },
list: { default: [] },
soulkey: { default: "" }
soulkey: { default: "" },
show: { type: Boolean, default: false }
},
emits: ["asc", "desc", "sx", "daochu"],
setup(__props, { emit }) {
@@ -19105,7 +19106,7 @@ const _sfc_main$E = defineComponent({
const sel = ref([]);
const list = ref([]);
const alllist = ref([]);
watch(() => [props.list, props.soulkey], () => {
watch(() => [props.show], () => {
let set = /* @__PURE__ */ new Set();
for (let i of props.list) {
set.add(i[props.soulkey]);
@@ -20196,13 +20197,14 @@ const _sfc_main$D = defineComponent({
withDirectives(createVNode(_sfc_main$E, {
top: soultop.value,
left: soulleft.value,
show: soulkey.value == column.key,
onAsc: asc,
onDesc: desc,
onDaochu: exportData,
list: datalist.value,
soulkey: column.key,
onSx: sx
}, null, 8, ["top", "left", "list", "soulkey"]), [
}, null, 8, ["top", "left", "show", "list", "soulkey"]), [
[vShow, soulkey.value == column.key]
])
]);