kn-hooks 0.0.43 → 0.0.44
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
CHANGED
|
@@ -117,9 +117,12 @@ const usePagination = (props) => {
|
|
|
117
117
|
_pagination = _pagination ?? pagination;
|
|
118
118
|
_pagination = { ...pagination, ..._pagination };
|
|
119
119
|
|
|
120
|
-
const { current, pageSize } = _pagination;
|
|
120
|
+
const { current, pageSize, sort } = _pagination;
|
|
121
121
|
|
|
122
122
|
let params = { pageSize };
|
|
123
|
+
if(sort){
|
|
124
|
+
params.sort = sort;
|
|
125
|
+
}
|
|
123
126
|
if (mode == MODE.scrollLoad) {
|
|
124
127
|
params.cursor = _pagination.cursor;
|
|
125
128
|
} else {
|