Compare commits

...

2 Commits

Author SHA1 Message Date
025132edb0 test table 2023-06-28 16:56:40 +08:00
e4369a5f16 test table 2023-06-28 16:48:43 +08:00
4 changed files with 7 additions and 7 deletions

View File

@ -1479,14 +1479,14 @@ const _sfc_main = defineComponent({
sortTable(event, selcolumn.value.key, "desc", true);
}
function sx(e) {
console.log("\u7B5B\u9009\u4E8B\u4EF6", e);
sxlist.value[e.key] = e.list;
console.log("\u7B5B\u9009\u4E8B\u4EF6", sxlist.value, sxlist.value.length);
}
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([() => sxlist, () => props.dataSource], (old, new1) => {
if (sxlist.value.length == 0) {
if (sxlist.value.keys().length == 0) {
return;
}
let list = [...props.dataSource];

View File

@ -19926,14 +19926,14 @@ const _sfc_main$D = defineComponent({
sortTable(event, selcolumn.value.key, "desc", true);
}
function sx(e) {
console.log("\u7B5B\u9009\u4E8B\u4EF6", e);
sxlist.value[e.key] = e.list;
console.log("\u7B5B\u9009\u4E8B\u4EF6", sxlist.value, sxlist.value.length);
}
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([() => sxlist, () => props.dataSource], (old, new1) => {
if (sxlist.value.length == 0) {
if (sxlist.value.keys().length == 0) {
return;
}
let list = [...props.dataSource];

View File

@ -781,8 +781,8 @@ function desc(event: any) {
}
function sx(e: any) {
console.log("筛选事件",e)
sxlist.value[e.key] = e.list;
console.log("筛选事件",sxlist.value,sxlist.value.length)
}
watch(sxlist, () => {
console.log("sxlist更新");
@ -792,7 +792,7 @@ watch(
(old, new1) => {
// tableDataSource
// console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource),old[0] == new1[0],old[1] == new1[1])
if (sxlist.value.length == 0) {
if (sxlist.value.keys().length == 0) {
return;
}
let list: any = [...props.dataSource];

File diff suppressed because one or more lines are too long