变更
This commit is contained in:
parent
2f5407d7b3
commit
cfac396548
@ -1163,6 +1163,7 @@ const _sfc_main = defineComponent({
|
|||||||
{ deep: true, immediate: true }
|
{ deep: true, immediate: true }
|
||||||
);
|
);
|
||||||
watch(tableDataSource, () => {
|
watch(tableDataSource, () => {
|
||||||
|
console.log("tableDataSource\u66F4\u65B0", tableDataSource.value);
|
||||||
if (!props.page || props.serverpage) {
|
if (!props.page || props.serverpage) {
|
||||||
datalist.value = tableDataSource.value;
|
datalist.value = tableDataSource.value;
|
||||||
} else {
|
} else {
|
||||||
@ -1181,12 +1182,10 @@ const _sfc_main = defineComponent({
|
|||||||
emit("change", page);
|
emit("change", page);
|
||||||
} else {
|
} else {
|
||||||
page.current;
|
page.current;
|
||||||
datalist.value = [
|
datalist.value = tableDataSource.value.slice(
|
||||||
...tableDataSource.value.slice(
|
page.limit * (page.current - 1),
|
||||||
page.limit * (page.current - 1),
|
page.limit * page.current
|
||||||
page.limit * page.current
|
);
|
||||||
)
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const rowClick = function(data, evt) {
|
const rowClick = function(data, evt) {
|
||||||
|
11
lib/index.js
11
lib/index.js
@ -40218,6 +40218,7 @@ const _sfc_main$D = defineComponent({
|
|||||||
{ deep: true, immediate: true }
|
{ deep: true, immediate: true }
|
||||||
);
|
);
|
||||||
watch(tableDataSource, () => {
|
watch(tableDataSource, () => {
|
||||||
|
console.log("tableDataSource\u66F4\u65B0", tableDataSource.value);
|
||||||
if (!props.page || props.serverpage) {
|
if (!props.page || props.serverpage) {
|
||||||
datalist.value = tableDataSource.value;
|
datalist.value = tableDataSource.value;
|
||||||
} else {
|
} else {
|
||||||
@ -40236,12 +40237,10 @@ const _sfc_main$D = defineComponent({
|
|||||||
emit("change", page);
|
emit("change", page);
|
||||||
} else {
|
} else {
|
||||||
page.current;
|
page.current;
|
||||||
datalist.value = [
|
datalist.value = tableDataSource.value.slice(
|
||||||
...tableDataSource.value.slice(
|
page.limit * (page.current - 1),
|
||||||
page.limit * (page.current - 1),
|
page.limit * page.current
|
||||||
page.limit * page.current
|
);
|
||||||
)
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const rowClick = function(data, evt) {
|
const rowClick = function(data, evt) {
|
||||||
|
@ -340,6 +340,7 @@ watch(
|
|||||||
{ deep: true, immediate: true }
|
{ deep: true, immediate: true }
|
||||||
);
|
);
|
||||||
watch(tableDataSource, () => {
|
watch(tableDataSource, () => {
|
||||||
|
console.log("tableDataSource更新", tableDataSource.value);
|
||||||
if (!props.page || props.serverpage) {
|
if (!props.page || props.serverpage) {
|
||||||
datalist.value = tableDataSource.value;
|
datalist.value = tableDataSource.value;
|
||||||
} else {
|
} else {
|
||||||
@ -362,12 +363,10 @@ const change = function (page: any) {
|
|||||||
emit("change", page);
|
emit("change", page);
|
||||||
} else {
|
} else {
|
||||||
pagecurrent = page.current;
|
pagecurrent = page.current;
|
||||||
datalist.value = [
|
datalist.value = tableDataSource.value.slice(
|
||||||
...tableDataSource.value.slice(
|
page.limit * (page.current - 1),
|
||||||
page.limit * (page.current - 1),
|
page.limit * page.current
|
||||||
page.limit * page.current
|
);
|
||||||
)
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user