feat: 添加分页选项和页面大小变更功能
This commit is contained in:
@@ -36,4 +36,10 @@ export interface KamiApiCardInfoWalmartV1V1CardRedeemAccountGroupEntityAccount {
|
||||
* @memberof KamiApiCardInfoWalmartV1V1CardRedeemAccountGroupEntityAccount
|
||||
*/
|
||||
unNormal?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1V1CardRedeemAccountGroupEntityAccount
|
||||
*/
|
||||
deleted?: number;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,9 @@ export default defineComponent({
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
...basePagination,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true
|
||||
});
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
@@ -205,6 +207,10 @@ export default defineComponent({
|
||||
pagination.current = current;
|
||||
fetchData();
|
||||
}}
|
||||
onPageSizeChange={(pageSize: number) => {
|
||||
pagination.pageSize = pageSize;
|
||||
fetchData();
|
||||
}}
|
||||
/>
|
||||
</Space>
|
||||
</Card>
|
||||
|
||||
@@ -47,7 +47,9 @@ export default defineComponent({
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
...basePagination,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true
|
||||
});
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
@@ -214,6 +216,10 @@ export default defineComponent({
|
||||
pagination.current = current;
|
||||
fetchData();
|
||||
}}
|
||||
onPageSizeChange={(pageSize: number) => {
|
||||
pagination.pageSize = pageSize;
|
||||
fetchData();
|
||||
}}
|
||||
/>
|
||||
</Space>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user