openxiangda 1.0.221 → 1.0.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/sdk/dist/runtime/index.cjs +3 -3
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.mjs +3 -3
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +3 -3
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.mjs +3 -3
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
- package/packages/sdk/source/admin-list/AdminList.tsx +21 -18
package/package.json
CHANGED
|
@@ -44771,9 +44771,9 @@ function AdminList(props) {
|
|
|
44771
44771
|
filters: {}
|
|
44772
44772
|
}));
|
|
44773
44773
|
};
|
|
44774
|
-
const handleTableChange = (pagination, _filters, sorter) => {
|
|
44775
|
-
const
|
|
44776
|
-
const nextSorts =
|
|
44774
|
+
const handleTableChange = (pagination, _filters, sorter, extra) => {
|
|
44775
|
+
const paginationOnly = extra.action === "paginate";
|
|
44776
|
+
const nextSorts = paginationOnly ? query.sorts : (Array.isArray(sorter) ? sorter : [sorter]).filter(
|
|
44777
44777
|
(item) => item?.order === "ascend" || item?.order === "descend"
|
|
44778
44778
|
).map((item) => {
|
|
44779
44779
|
const definition = columns.find(
|