@arim-aisdc/public-components 2.3.11 → 2.3.12

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.
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
17
17
  value: any;
18
18
  field: string;
19
19
  label?: string;
20
- text: string | JSX.Element | Element;
20
+ text: string | Element | JSX.Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -51,7 +51,7 @@ var RemoteSelect = function RemoteSelect(_ref) {
51
51
  return /*#__PURE__*/_jsx(Select, {
52
52
  className: "customForm-remoteSelect",
53
53
  mode: item.mode ? item.mode : undefined,
54
- showSearch: item.showSearch,
54
+ showSearch: !!item.showSearch,
55
55
  placeholder: item.inputTips,
56
56
  allowClear: item.allowClear,
57
57
  value: value,
@@ -86,7 +86,7 @@ export type CustomSearchFieldType = {
86
86
  max?: number;
87
87
  step?: number;
88
88
  precision?: number;
89
- showSearch?: boolean;
89
+ showSearch?: boolean | Object;
90
90
  handleSearch?: () => void;
91
91
  suffix?: string;
92
92
  isFilter?: boolean;
@@ -102,7 +102,7 @@ export type searchFieldType = {
102
102
  /**imputnumber 步长 */
103
103
  step?: number;
104
104
  /**是否远程搜索 autocomplete 不需要,select需要 */
105
- showSearch?: boolean;
105
+ showSearch?: boolean | Object;
106
106
  /**自定义节点 label、value、options、groupLabel 的字段 */
107
107
  fieldNames?: {
108
108
  label?: string;
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",