mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:18:29 +08:00
perPage 可能是字符串 (#1825)
This commit is contained in:
parent
5afc8fc22d
commit
e52cdd1cc9
@ -354,9 +354,9 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function changePage(page: number, perPage?: number) {
|
function changePage(page: number, perPage?: number | string) {
|
||||||
self.page = page;
|
self.page = page;
|
||||||
perPage && (self.perPage = perPage);
|
perPage && (self.perPage = parseInt(perPage as string, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectAction(action: Action) {
|
function selectAction(action: Action) {
|
||||||
|
Loading…
Reference in New Issue
Block a user