fix table wathc

This commit is contained in:
Theluyuan 2023-06-28 16:14:25 +08:00
parent 7b10791c2b
commit 8a9cd750ae
4 changed files with 21 additions and 14 deletions

View File

@ -1485,7 +1485,9 @@ const _sfc_main = defineComponent({
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], (old, new1) => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource), old[0] == new1[0], old[1] == new1[1]);
if (sxlist.value.length == 0) {
return;
}
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -19932,7 +19932,9 @@ const _sfc_main$D = defineComponent({
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], (old, new1) => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource), old[0] == new1[0], old[1] == new1[1]);
if (sxlist.value.length == 0) {
return;
}
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -790,7 +790,10 @@ watch(
[sxlist,()=>props.dataSource],
(old,new1) => {
// 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])
if(sxlist.value.length == 0){
return
}
let list: any = [...props.dataSource];
let endlist: any = [];
for (let i in sxlist.value) {

File diff suppressed because one or more lines are too long