test table

This commit is contained in:
Theluyuan 2023-06-28 16:45:49 +08:00
parent 57b59c5c46
commit e522bb54ce
4 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long