@arim-aisdc/public-components 2.0.5 → 2.0.7
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.
|
@@ -273,6 +273,7 @@ var CustomForm = function CustomForm(_ref) {
|
|
|
273
273
|
break;
|
|
274
274
|
case CustomFormItemType.Select:
|
|
275
275
|
element = /*#__PURE__*/_jsx(Select, {
|
|
276
|
+
mode: item.mode ? item.mode : undefined,
|
|
276
277
|
showSearch: item.showSearch,
|
|
277
278
|
placeholder: item.inputTips,
|
|
278
279
|
allowClear: item.allowClear === false ? false : true,
|
|
@@ -297,6 +298,9 @@ var CustomForm = function CustomForm(_ref) {
|
|
|
297
298
|
notFoundContent: ((_item$setting = item.setting) === null || _item$setting === void 0 ? void 0 : _item$setting.length) >= 0 ? null : /*#__PURE__*/_jsx(Spin, {
|
|
298
299
|
size: "small"
|
|
299
300
|
}),
|
|
301
|
+
maxTagCount: item.maxTagCount,
|
|
302
|
+
optionFilterProp: item.optionFilterProp || 'value',
|
|
303
|
+
optionLabelProp: item.optionLabelProp || 'children',
|
|
300
304
|
children: item.setting.map(function (el, num) {
|
|
301
305
|
var _el$options;
|
|
302
306
|
if (el !== null && el !== void 0 && el.options && (el === null || el === void 0 || (_el$options = el.options) === null || _el$options === void 0 ? void 0 : _el$options.length) > 0) {
|
|
@@ -611,10 +611,9 @@ var QueryFilter = function QueryFilter(_ref) {
|
|
|
611
611
|
onClick: function onClick(e) {
|
|
612
612
|
handleCancel(e);
|
|
613
613
|
// 重置后 再次筛选 会带有上一次的记录(修改)
|
|
614
|
+
setFormValues({});
|
|
614
615
|
setTimeout(function () {
|
|
615
616
|
form.resetFields();
|
|
616
|
-
// 重置后 再次筛选 会带有上一次的记录(修改)
|
|
617
|
-
setFormValues({});
|
|
618
617
|
}, 200);
|
|
619
618
|
},
|
|
620
619
|
children: cancelText
|
|
@@ -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;
|