test table
This commit is contained in:
parent
4d54333ad1
commit
85769bf2a8
@ -1131,18 +1131,13 @@ const _sfc_main = defineComponent({
|
|||||||
tmp.total = tableDataSource.value.length;
|
tmp.total = tableDataSource.value.length;
|
||||||
emit("update:page", tmp);
|
emit("update:page", tmp);
|
||||||
sxlist.value = {};
|
sxlist.value = {};
|
||||||
change({
|
|
||||||
limit: props.page.limit,
|
|
||||||
current: pagecurrent || props.page.current
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let pagecurrent;
|
|
||||||
const change = function(page) {
|
const change = function(page) {
|
||||||
if (props.serverpage) {
|
if (props.serverpage) {
|
||||||
emit("change", page);
|
emit("change", page);
|
||||||
} else {
|
} else {
|
||||||
pagecurrent = page.current;
|
page.current;
|
||||||
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * 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;
|
tableDataSource.value = endlist;
|
||||||
change({
|
change({
|
||||||
limit: props.page.limit,
|
limit: props.page.limit,
|
||||||
current: pagecurrent || props.page.current,
|
current: props.page.current,
|
||||||
isReload: true
|
isReload: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -19578,18 +19578,13 @@ const _sfc_main$D = defineComponent({
|
|||||||
tmp.total = tableDataSource.value.length;
|
tmp.total = tableDataSource.value.length;
|
||||||
emit("update:page", tmp);
|
emit("update:page", tmp);
|
||||||
sxlist.value = {};
|
sxlist.value = {};
|
||||||
change3({
|
|
||||||
limit: props.page.limit,
|
|
||||||
current: pagecurrent || props.page.current
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let pagecurrent;
|
|
||||||
const change3 = function(page) {
|
const change3 = function(page) {
|
||||||
if (props.serverpage) {
|
if (props.serverpage) {
|
||||||
emit("change", page);
|
emit("change", page);
|
||||||
} else {
|
} else {
|
||||||
pagecurrent = page.current;
|
page.current;
|
||||||
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * 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;
|
tableDataSource.value = endlist;
|
||||||
change3({
|
change3({
|
||||||
limit: props.page.limit,
|
limit: props.page.limit,
|
||||||
current: pagecurrent || props.page.current,
|
current: props.page.current,
|
||||||
isReload: true
|
isReload: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -347,10 +347,10 @@ watch(tableDataSource, () => {
|
|||||||
emit("update:page", tmp);
|
emit("update:page", tmp);
|
||||||
// tableDataSource.value = endlist
|
// tableDataSource.value = endlist
|
||||||
sxlist.value = {};
|
sxlist.value = {};
|
||||||
change({
|
// change({
|
||||||
limit: props.page.limit,
|
// limit: props.page.limit,
|
||||||
current: pagecurrent || props.page.current,
|
// current: pagecurrent || props.page.current,
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let pagecurrent: number;
|
let pagecurrent: number;
|
||||||
@ -817,9 +817,10 @@ watch(
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
tableDataSource.value = endlist;
|
tableDataSource.value = endlist;
|
||||||
|
// pagecurrent ||
|
||||||
change({
|
change({
|
||||||
limit: props.page.limit,
|
limit: props.page.limit,
|
||||||
current: pagecurrent || props.page.current,
|
current: props.page.current,
|
||||||
isReload: true,
|
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