test table
This commit is contained in:
parent
4d54333ad1
commit
85769bf2a8
@ -1131,18 +1131,13 @@ const _sfc_main = defineComponent({
|
||||
tmp.total = tableDataSource.value.length;
|
||||
emit("update:page", tmp);
|
||||
sxlist.value = {};
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current
|
||||
});
|
||||
}
|
||||
});
|
||||
let pagecurrent;
|
||||
const change = function(page) {
|
||||
if (props.serverpage) {
|
||||
emit("change", page);
|
||||
} else {
|
||||
pagecurrent = page.current;
|
||||
page.current;
|
||||
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * page.current);
|
||||
}
|
||||
};
|
||||
@ -1513,7 +1508,7 @@ const _sfc_main = defineComponent({
|
||||
tableDataSource.value = endlist;
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current,
|
||||
current: props.page.current,
|
||||
isReload: true
|
||||
});
|
||||
}
|
||||
|
@ -19578,18 +19578,13 @@ const _sfc_main$D = defineComponent({
|
||||
tmp.total = tableDataSource.value.length;
|
||||
emit("update:page", tmp);
|
||||
sxlist.value = {};
|
||||
change3({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current
|
||||
});
|
||||
}
|
||||
});
|
||||
let pagecurrent;
|
||||
const change3 = function(page) {
|
||||
if (props.serverpage) {
|
||||
emit("change", page);
|
||||
} else {
|
||||
pagecurrent = page.current;
|
||||
page.current;
|
||||
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * page.current);
|
||||
}
|
||||
};
|
||||
@ -19960,7 +19955,7 @@ const _sfc_main$D = defineComponent({
|
||||
tableDataSource.value = endlist;
|
||||
change3({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current,
|
||||
current: props.page.current,
|
||||
isReload: true
|
||||
});
|
||||
}
|
||||
|
@ -347,10 +347,10 @@ watch(tableDataSource, () => {
|
||||
emit("update:page", tmp);
|
||||
// tableDataSource.value = endlist
|
||||
sxlist.value = {};
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current,
|
||||
});
|
||||
// change({
|
||||
// limit: props.page.limit,
|
||||
// current: pagecurrent || props.page.current,
|
||||
// });
|
||||
}
|
||||
});
|
||||
let pagecurrent: number;
|
||||
@ -817,9 +817,10 @@ watch(
|
||||
});
|
||||
} else {
|
||||
tableDataSource.value = endlist;
|
||||
// pagecurrent ||
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current,
|
||||
current: props.page.current,
|
||||
isReload: true,
|
||||
});
|
||||
}
|
||||
|
182
umd/index.js
182
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user