mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: Options使用上下文变量数据源被错误分页处理问题 (#8691)
This commit is contained in:
parent
19766cd093
commit
09a194f74a
@ -858,12 +858,12 @@ export const FormItemStore = StoreNode.named('FormItemStore')
|
||||
...(ctx?.perPage ? {perPage: ctx?.perPage} : {}),
|
||||
total: options.length
|
||||
};
|
||||
}
|
||||
|
||||
options = options.slice(
|
||||
(self.pagination.page - 1) * self.pagination.perPage,
|
||||
self.pagination.page * self.pagination.perPage
|
||||
);
|
||||
options = options.slice(
|
||||
(self.pagination.page - 1) * self.pagination.perPage,
|
||||
self.pagination.page * self.pagination.perPage
|
||||
);
|
||||
}
|
||||
|
||||
setOptions(options, onChange, ctx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user