fix soul筛选显示
This commit is contained in:
parent
ff6ff998c0
commit
dc4ca22ced
@ -664,7 +664,8 @@ const _sfc_main$1 = 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 }) {
|
||||
@ -681,7 +682,7 @@ const _sfc_main$1 = 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]);
|
||||
@ -1772,13 +1773,14 @@ const _sfc_main = defineComponent({
|
||||
withDirectives(createVNode(_sfc_main$1, {
|
||||
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]
|
||||
])
|
||||
]);
|
||||
|
@ -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]
|
||||
])
|
||||
]);
|
||||
|
@ -1133,6 +1133,7 @@ window.addEventListener("click", heddin);
|
||||
:top="soultop"
|
||||
:left="soulleft"
|
||||
v-show="soulkey == column.key"
|
||||
:show="soulkey == column.key"
|
||||
@asc="asc"
|
||||
@desc="desc"
|
||||
@daochu="exportData"
|
||||
|
@ -76,12 +76,14 @@ export interface SoulTableProps {
|
||||
top: number;
|
||||
list: any;
|
||||
soulkey: string;
|
||||
show:boolean;
|
||||
}
|
||||
const props = withDefaults(defineProps<SoulTableProps>(), {
|
||||
top: 10,
|
||||
left: 10,
|
||||
list: [],
|
||||
soulkey: "",
|
||||
show:false
|
||||
});
|
||||
const emit = defineEmits(["asc", "desc", "sx",'daochu']);
|
||||
function asc(event: any) {
|
||||
@ -97,7 +99,7 @@ const sel: any = ref([]);
|
||||
const list: any = ref([]);
|
||||
const alllist: any = ref([]);
|
||||
watch(
|
||||
() => [props.list, props.soulkey],
|
||||
() => [props.show],
|
||||
() => {
|
||||
let set = new Set();
|
||||
for (let i of props.list) {
|
||||
|
12
umd/index.js
12
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user