fix: Options使用上下文变量数据源被错误分页处理问题 (#8691)

This commit is contained in:
RUNZE LU 2023-11-15 15:12:42 +08:00 committed by GitHub
parent 19766cd093
commit 09a194f74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);