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

@@ -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"

View File

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