@arim-aisdc/public-components 2.3.8 → 2.3.9
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/dist/assets/iconfont/public/iconfont.css +69 -69
- package/dist/components/CustomForm/CustomForm.js +7 -4
- package/dist/components/CustomForm/type.d.ts +5 -2
- package/dist/components/TableMax/TableBody/Row.js +4 -4
- package/dist/components/TableMax/components/ColumnSort/customSortFns.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "iconfont-public"; /* Project id 4386651 */
|
|
3
|
-
src: url('./iconfont.ttf?t=1730099749830') format('truetype');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.iconfont-public {
|
|
7
|
-
font-family: "iconfont-public" !important;
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
font-style: normal;
|
|
10
|
-
-webkit-font-smoothing: antialiased;
|
|
11
|
-
-moz-osx-font-smoothing: grayscale;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.icon-public-guanbiqita:before {
|
|
15
|
-
content: "\e6db";
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.icon-public-shuaxinbiaoqian:before {
|
|
19
|
-
content: "\e6dc";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.icon-public-guanbibiaoqian:before {
|
|
23
|
-
content: "\e6dd";
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.icon-public-upload:before {
|
|
27
|
-
content: "\e877";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.icon-public-download:before {
|
|
31
|
-
content: "\e878";
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.icon-public-refresh:before {
|
|
35
|
-
content: "\e7c1";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.icon-public-edit:before {
|
|
39
|
-
content: "\e7c2";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.icon-public-calendar:before {
|
|
43
|
-
content: "\e7c3";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.icon-public-reduce:before {
|
|
47
|
-
content: "\e7c4";
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.icon-public-setting:before {
|
|
51
|
-
content: "\e7bc";
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.icon-public-delete:before {
|
|
55
|
-
content: "\e7bd";
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.icon-public-drag:before {
|
|
59
|
-
content: "\e7be";
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.icon-public-down:before {
|
|
63
|
-
content: "\e7bf";
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.icon-public-pin:before {
|
|
67
|
-
content: "\e7c0";
|
|
68
|
-
}
|
|
69
|
-
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "iconfont-public"; /* Project id 4386651 */
|
|
3
|
+
src: url('./iconfont.ttf?t=1730099749830') format('truetype');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.iconfont-public {
|
|
7
|
+
font-family: "iconfont-public" !important;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.icon-public-guanbiqita:before {
|
|
15
|
+
content: "\e6db";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon-public-shuaxinbiaoqian:before {
|
|
19
|
+
content: "\e6dc";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon-public-guanbibiaoqian:before {
|
|
23
|
+
content: "\e6dd";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon-public-upload:before {
|
|
27
|
+
content: "\e877";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.icon-public-download:before {
|
|
31
|
+
content: "\e878";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.icon-public-refresh:before {
|
|
35
|
+
content: "\e7c1";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.icon-public-edit:before {
|
|
39
|
+
content: "\e7c2";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.icon-public-calendar:before {
|
|
43
|
+
content: "\e7c3";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.icon-public-reduce:before {
|
|
47
|
+
content: "\e7c4";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon-public-setting:before {
|
|
51
|
+
content: "\e7bc";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.icon-public-delete:before {
|
|
55
|
+
content: "\e7bd";
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.icon-public-drag:before {
|
|
59
|
+
content: "\e7be";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon-public-down:before {
|
|
63
|
+
content: "\e7bf";
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.icon-public-pin:before {
|
|
67
|
+
content: "\e7c0";
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -252,7 +252,9 @@ var CustomForm = function CustomForm(_ref, ref) {
|
|
|
252
252
|
handleInputClear === null || handleInputClear === void 0 || handleInputClear();
|
|
253
253
|
}
|
|
254
254
|
run(e, item);
|
|
255
|
-
}
|
|
255
|
+
},
|
|
256
|
+
maxLength: item.maxLength,
|
|
257
|
+
showCount: item.maxLength ? true : false
|
|
256
258
|
});
|
|
257
259
|
break;
|
|
258
260
|
case CustomFormItemType.TextArea:
|
|
@@ -415,9 +417,9 @@ var CustomForm = function CustomForm(_ref, ref) {
|
|
|
415
417
|
onChange: function onChange(e) {
|
|
416
418
|
commonChange(e, item);
|
|
417
419
|
},
|
|
418
|
-
disabled: item === null || item === void 0 ? void 0 : item.disabled
|
|
419
|
-
|
|
420
|
-
,
|
|
420
|
+
disabled: item === null || item === void 0 ? void 0 : item.disabled,
|
|
421
|
+
disabledDate: item === null || item === void 0 ? void 0 : item.disabledDate,
|
|
422
|
+
disabledTime: item === null || item === void 0 ? void 0 : item.disabledTime,
|
|
421
423
|
suffixIcon: /*#__PURE__*/_jsx("i", {
|
|
422
424
|
className: "iconfont-other icon-other-calendar"
|
|
423
425
|
}),
|
|
@@ -447,6 +449,7 @@ var CustomForm = function CustomForm(_ref, ref) {
|
|
|
447
449
|
placeholder: [item.inputTips, item.inputTips],
|
|
448
450
|
picker: item === null || item === void 0 ? void 0 : item.picker,
|
|
449
451
|
disabledDate: item === null || item === void 0 ? void 0 : item.disabledDate,
|
|
452
|
+
disabledTime: item === null || item === void 0 ? void 0 : item.disabledTime,
|
|
450
453
|
allowClear: item.allowClear === false ? false : true,
|
|
451
454
|
presets: item === null || item === void 0 ? void 0 : item.presets
|
|
452
455
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { TimePickerProps, TimeRangePickerProps } from 'antd';
|
|
2
|
-
import { FormProps } from 'antd';
|
|
1
|
+
import type { TimePickerProps, TimeRangePickerProps, GetProps } from 'antd';
|
|
2
|
+
import { FormProps, DatePicker } from 'antd';
|
|
3
3
|
import { FormLabelAlign } from 'antd/es/form/interface';
|
|
4
4
|
import { MouseEventHandler, ReactNode } from 'react';
|
|
5
|
+
type RangePickerProps = GetProps<typeof DatePicker.RangePicker>;
|
|
5
6
|
export interface fieldType {
|
|
6
7
|
field: string;
|
|
7
8
|
label?: string;
|
|
@@ -79,6 +80,8 @@ export type CustomSearchFieldType = {
|
|
|
79
80
|
allowClear?: boolean;
|
|
80
81
|
isShowInterval?: boolean;
|
|
81
82
|
disabled?: boolean;
|
|
83
|
+
disabledDate?: RangePickerProps['disabledDate'];
|
|
84
|
+
disabledTime?: RangePickerProps['disabledTime'];
|
|
82
85
|
min?: number;
|
|
83
86
|
max?: number;
|
|
84
87
|
step?: number;
|
|
@@ -287,12 +287,12 @@ var Row = function Row(_ref) {
|
|
|
287
287
|
return 'tbody-tr-highlight';
|
|
288
288
|
} else if (canSelection) {
|
|
289
289
|
// 多选
|
|
290
|
-
if (row.
|
|
291
|
-
// checked选中用选中色
|
|
292
|
-
return 'tbody-tr-selected';
|
|
293
|
-
} else if (String(row.id) === String(rowHighLightId)) {
|
|
290
|
+
if (String(row.id) === String(rowHighLightId)) {
|
|
294
291
|
// 高亮状态
|
|
295
292
|
return 'tbody-tr-highlight';
|
|
293
|
+
} else if (row.getIsSelected()) {
|
|
294
|
+
// checked选中用选中色
|
|
295
|
+
return 'tbody-tr-selected';
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
return '';
|
|
@@ -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) => 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;
|
|
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) => 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;
|
|
11
11
|
};
|
|
12
12
|
export default customSortFns;
|
|
13
13
|
export type SortFnType = keyof typeof customSortFns | undefined;
|