@arim-aisdc/public-components 2.3.70 → 2.3.71
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 | Element |
|
|
20
|
+
text: string | JSX.Element | Element;
|
|
21
21
|
units?: string;
|
|
22
22
|
width?: string;
|
|
23
23
|
labelWidth?: string;
|
|
@@ -246,13 +246,13 @@ var Filter = function Filter(_ref) {
|
|
|
246
246
|
className: "quickly-input-title",
|
|
247
247
|
children: "\u5FEB\u6377\u8F93\u5165"
|
|
248
248
|
}), /*#__PURE__*/_jsx("p", {
|
|
249
|
-
className: "quickly-input-item ".concat((columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to === void 0 ? void 0 : _columnFilterValue$to.trim()) === 'NULL' ? 'quickly-input-item-selected' : null),
|
|
249
|
+
className: "quickly-input-item ".concat(typeof columnFilterValue === 'string' && (columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to === void 0 ? void 0 : _columnFilterValue$to.trim()) === 'NULL' ? 'quickly-input-item-selected' : null),
|
|
250
250
|
onClick: function onClick() {
|
|
251
251
|
handleChangeFilterValueWithDebounce('NULL');
|
|
252
252
|
},
|
|
253
253
|
children: "\u7A7A\u503C(NULL)"
|
|
254
254
|
}), /*#__PURE__*/_jsx("p", {
|
|
255
|
-
className: "quickly-input-item ".concat((columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to2 = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to2 === void 0 ? void 0 : _columnFilterValue$to2.trim()) === 'NOT NULL' || (columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to3 = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to3 === void 0 ? void 0 : _columnFilterValue$to3.trim()) === 'NOTNULL' ? 'quickly-input-item-selected' : null),
|
|
255
|
+
className: "quickly-input-item ".concat(typeof columnFilterValue === 'string' && ((columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to2 = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to2 === void 0 ? void 0 : _columnFilterValue$to2.trim()) === 'NOT NULL' || (columnFilterValue === null || columnFilterValue === void 0 || (_columnFilterValue$to3 = columnFilterValue.toUpperCase()) === null || _columnFilterValue$to3 === void 0 ? void 0 : _columnFilterValue$to3.trim()) === 'NOTNULL') ? 'quickly-input-item-selected' : null),
|
|
256
256
|
onClick: function onClick() {
|
|
257
257
|
handleChangeFilterValueWithDebounce('NOT NULL');
|
|
258
258
|
},
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TableMaxColumnType } from "../../type";
|
|
2
|
-
export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
3
|
-
export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
4
|
-
export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
5
|
-
export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
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) =>
|
|
8
|
-
stringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
9
|
-
timeSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
10
|
-
numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
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;
|