test table

This commit is contained in:
Theluyuan 2023-06-28 16:05:37 +08:00
parent ca6573f1f4
commit 7b10791c2b
4 changed files with 81 additions and 93 deletions

View File

@ -1137,9 +1137,6 @@ const _sfc_main = defineComponent({
});
}
});
watch(() => props.page, () => {
console.log(props.page, 342);
});
let pagecurrent;
const change = function(page) {
if (props.serverpage) {
@ -1487,8 +1484,8 @@ const _sfc_main = defineComponent({
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], () => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource));
watch([sxlist, () => props.dataSource], (old, new1) => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource), old[0] == new1[0], old[1] == new1[1]);
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -19584,9 +19584,6 @@ const _sfc_main$D = defineComponent({
});
}
});
watch(() => props.page, () => {
console.log(props.page, 342);
});
let pagecurrent;
const change3 = function(page) {
if (props.serverpage) {
@ -19934,8 +19931,8 @@ const _sfc_main$D = defineComponent({
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], () => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource));
watch([sxlist, () => props.dataSource], (old, new1) => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource), old[0] == new1[0], old[1] == new1[1]);
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -353,12 +353,6 @@ watch(tableDataSource, () => {
});
}
});
watch(
() => props.page,
() => {
console.log(props.page, 342);
}
);
let pagecurrent: number;
const change = function (page: any) {
if (props.serverpage) {
@ -794,9 +788,9 @@ watch(sxlist,()=>{
})
watch(
[sxlist,()=>props.dataSource],
() => {
(old,new1) => {
// tableDataSource
console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource))
console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource),old[0] == new1[0],old[1] == new1[1])
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