@lemon-fe/components 0.1.147 → 0.1.148

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.
@@ -2,6 +2,7 @@ import { CSSProperties, Key, ReactElement } from 'react';
2
2
  import type { TableRowSelection } from 'antd/lib/table/interface';
3
3
  import type { FilterProps } from '../Filter/typings';
4
4
  import type { ColumnType } from '../BaseTable/typings';
5
+ import type { SortType } from '../Table/typings';
5
6
  interface Props<RecordType, ParamsType extends Record<string, any>> {
6
7
  value?: RecordType[];
7
8
  onChange?: (value: RecordType[]) => void;
@@ -23,6 +24,7 @@ interface Props<RecordType, ParamsType extends Record<string, any>> {
23
24
  fetch?: (query: {
24
25
  current: number;
25
26
  pageSize: number;
27
+ sort: SortType[];
26
28
  params: ParamsType;
27
29
  }) => Promise<{
28
30
  total: number;
@@ -69,10 +69,12 @@ function SelectView(props, ref) {
69
69
  };
70
70
  var request = fetch ? function (_ref) {
71
71
  var current = _ref.current,
72
- pageSize = _ref.pageSize;
72
+ pageSize = _ref.pageSize,
73
+ sort = _ref.sort;
73
74
  return fetch({
74
75
  current: current,
75
76
  pageSize: pageSize,
77
+ sort: sort,
76
78
  params: params
77
79
  });
78
80
  } : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.147",
3
+ "version": "0.1.148",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -16,7 +16,7 @@
16
16
  "registry": "https://registry.npmjs.org"
17
17
  },
18
18
  "dependencies": {
19
- "@lemon-fe/hooks": "^0.1.147",
19
+ "@lemon-fe/hooks": "^0.1.148",
20
20
  "classnames": "^2.2.6",
21
21
  "color-string": "^1.9.0",
22
22
  "lodash": "^4.17.0",
@@ -39,5 +39,5 @@
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.2"
41
41
  },
42
- "gitHead": "93ba1ff68ab7b7ebcbaf6f1ebe9b7f2112124574"
42
+ "gitHead": "977c1f1312e17042367301507829424ac7e075e7"
43
43
  }