@hsu-react/ui 0.0.1 → 0.0.3
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/README.md +2 -0
- package/es/components/ChainGraph/_components/SearchSelect/index.js +13 -10
- package/es/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/es/components/ChainGraph/index.module.less +1 -1
- package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/es/components/Chat/ChatInput/index.module.less +2 -2
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/es/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/es/components/Checkbox/index.module.less +13 -13
- package/es/components/CodeMirror/index.module.less +4 -4
- package/es/components/DatePicker/RangePicker/index.module.less +1 -1
- package/es/components/DatePicker/StepPicker/index.module.less +1 -1
- package/es/components/DatePicker/index.module.less +2 -1
- package/es/components/Form/DrawerForm/index.module.less +2 -2
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -2
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/es/components/FormItem/FormRadio/index.module.less +9 -9
- package/es/components/FormItem/FormSegmented/index.module.less +2 -2
- package/es/components/FormItem/FormUpload/index.module.less +4 -4
- package/es/components/FormItem/ItemContainer/index.module.less +22 -22
- package/es/components/Icon/index.js +9 -24
- package/es/components/Input/Number/index.module.less +9 -9
- package/es/components/Input/Password/index.module.less +3 -3
- package/es/components/Input/Range/index.module.less +4 -4
- package/es/components/Input/Search/index.module.less +5 -5
- package/es/components/Input/TextArea/index.module.less +5 -5
- package/es/components/Input/index.module.less +7 -4
- package/es/components/Modal/index.module.less +2 -2
- package/es/components/Operate/index.module.less +2 -2
- package/es/components/Panel/IframePanel/index.module.less +1 -1
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/es/components/Search/index.module.less +2 -2
- package/es/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/es/components/Select/IconSelect/index.module.less +3 -3
- package/es/components/Select/TreeSelect/index.module.less +17 -17
- package/es/components/Select/_utils/getElementPosition.d.ts +6 -2
- package/es/components/Select/_utils/getElementPosition.js +8 -6
- package/es/components/Select/index.module.less +37 -34
- package/es/components/Slider/index.module.less +5 -4
- package/es/components/Spreadsheet/index.module.less +4 -4
- package/es/components/Switch/index.js +12 -8
- package/es/components/Switch/index.module.less +7 -0
- package/es/components/Table/_components/Pagination/index.module.less +23 -23
- package/es/components/Table/index.module.less +61 -61
- package/es/components/Tree/index.module.less +11 -11
- package/es/components/Upload/index.module.less +3 -3
- package/es/styles/antd-overload.less +1 -1
- package/lib/components/ChainGraph/_components/SearchSelect/index.js +10 -7
- package/lib/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/lib/components/ChainGraph/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/index.module.less +2 -2
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/lib/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/lib/components/Checkbox/index.module.less +13 -13
- package/lib/components/CodeMirror/index.module.less +4 -4
- package/lib/components/DatePicker/RangePicker/index.module.less +1 -1
- package/lib/components/DatePicker/StepPicker/index.module.less +1 -1
- package/lib/components/DatePicker/index.module.less +2 -1
- package/lib/components/Form/DrawerForm/index.module.less +2 -2
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -1
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/lib/components/FormItem/FormRadio/index.module.less +9 -9
- package/lib/components/FormItem/FormSegmented/index.module.less +2 -2
- package/lib/components/FormItem/FormUpload/index.module.less +4 -4
- package/lib/components/FormItem/ItemContainer/index.module.less +22 -22
- package/lib/components/Icon/index.js +9 -27
- package/lib/components/Input/Number/index.module.less +9 -9
- package/lib/components/Input/Password/index.module.less +3 -3
- package/lib/components/Input/Range/index.module.less +4 -4
- package/lib/components/Input/Search/index.module.less +5 -5
- package/lib/components/Input/TextArea/index.module.less +5 -5
- package/lib/components/Input/index.module.less +7 -4
- package/lib/components/Modal/index.module.less +2 -2
- package/lib/components/Operate/index.module.less +2 -2
- package/lib/components/Panel/IframePanel/index.module.less +1 -1
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/lib/components/Search/index.module.less +2 -2
- package/lib/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/lib/components/Select/IconSelect/index.module.less +3 -3
- package/lib/components/Select/TreeSelect/index.module.less +17 -17
- package/lib/components/Select/_utils/getElementPosition.d.ts +6 -2
- package/lib/components/Select/_utils/getElementPosition.js +8 -6
- package/lib/components/Select/index.module.less +37 -34
- package/lib/components/Slider/index.module.less +5 -4
- package/lib/components/Spreadsheet/index.module.less +4 -4
- package/lib/components/Switch/index.js +8 -4
- package/lib/components/Switch/index.module.less +7 -0
- package/lib/components/Table/_components/Pagination/index.module.less +23 -23
- package/lib/components/Table/index.module.less +61 -61
- package/lib/components/Tree/index.module.less +11 -11
- package/lib/components/Upload/index.module.less +3 -3
- package/lib/styles/antd-overload.less +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.md +20 -4
- package/src/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/src/components/ChainGraph/_components/SearchSelect/index.tsx +18 -16
- package/src/components/ChainGraph/index.md +67 -1
- package/src/components/ChainGraph/index.module.less +1 -1
- package/src/components/Chart/index.md +351 -1
- package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/src/components/Chat/ChatInput/index.module.less +2 -2
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/src/components/Chat/index.md +140 -1
- package/src/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/src/components/Checkbox/index.md +85 -1
- package/src/components/Checkbox/index.module.less +13 -13
- package/src/components/CodeMirror/index.md +41 -1
- package/src/components/CodeMirror/index.module.less +4 -4
- package/src/components/Copy/index.md +1 -1
- package/src/components/DatePicker/RangePicker/index.module.less +1 -1
- package/src/components/DatePicker/StepPicker/index.module.less +1 -1
- package/src/components/DatePicker/index.md +82 -1
- package/src/components/DatePicker/index.module.less +2 -1
- package/src/components/Descriptions/index.md +45 -1
- package/src/components/Editor/index.md +40 -1
- package/src/components/FileCol/index.md +24 -1
- package/src/components/FilePreview/index.md +45 -1
- package/src/components/FlexFill/index.md +46 -1
- package/src/components/Form/DrawerForm/index.module.less +2 -2
- package/src/components/Form/index.md +179 -1
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.tsx +2 -2
- package/src/components/FormItem/FormRadio/index.module.less +9 -9
- package/src/components/FormItem/FormSegmented/index.module.less +2 -2
- package/src/components/FormItem/FormUpload/index.module.less +4 -4
- package/src/components/FormItem/ItemContainer/index.module.less +22 -22
- package/src/components/FormItem/index.md +514 -1
- package/src/components/Icon/index.md +24 -4
- package/src/components/Icon/index.tsx +9 -37
- package/src/components/Input/Number/index.module.less +9 -9
- package/src/components/Input/Password/index.module.less +3 -3
- package/src/components/Input/Range/index.module.less +4 -4
- package/src/components/Input/Search/index.module.less +5 -5
- package/src/components/Input/TextArea/index.module.less +5 -5
- package/src/components/Input/index.md +148 -1
- package/src/components/Input/index.module.less +7 -4
- package/src/components/Markdown/index.md +73 -1
- package/src/components/Modal/index.md +43 -1
- package/src/components/Modal/index.module.less +2 -2
- package/src/components/Operate/index.md +43 -1
- package/src/components/Operate/index.module.less +2 -2
- package/src/components/Panel/IframePanel/index.module.less +1 -1
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/src/components/Panel/index.md +193 -1
- package/src/components/Search/index.md +248 -1
- package/src/components/Search/index.module.less +2 -2
- package/src/components/SecondConf/index.md +39 -1
- package/src/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/src/components/Select/IconSelect/index.module.less +3 -3
- package/src/components/Select/TreeSelect/index.module.less +17 -17
- package/src/components/Select/_utils/getElementPosition.ts +8 -6
- package/src/components/Select/index.md +47 -1
- package/src/components/Select/index.module.less +37 -34
- package/src/components/Slider/index.md +28 -1
- package/src/components/Slider/index.module.less +5 -4
- package/src/components/Spreadsheet/index.md +42 -1
- package/src/components/Spreadsheet/index.module.less +4 -4
- package/src/components/Switch/index.md +33 -1
- package/src/components/Switch/index.module.less +7 -0
- package/src/components/Switch/index.tsx +14 -11
- package/src/components/TabBar/index.md +70 -1
- package/src/components/Table/_components/Pagination/index.module.less +23 -23
- package/src/components/Table/index.md +60 -1
- package/src/components/Table/index.module.less +61 -61
- package/src/components/Tags/index.md +23 -1
- package/src/components/TextEllipsis/index.md +29 -1
- package/src/components/Tree/index.md +66 -1
- package/src/components/Tree/index.module.less +11 -11
- package/src/components/Upload/index.md +72 -1
- package/src/components/Upload/index.module.less +3 -3
- package/src/styles/antd-overload.less +1 -1
package/README.md
CHANGED
|
@@ -4,15 +4,18 @@ import styles from "./index.module.less";
|
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export var SearchSelect = function SearchSelect(_ref) {
|
|
6
6
|
var onChange = _ref.onChange;
|
|
7
|
-
return /*#__PURE__*/_jsx(
|
|
8
|
-
className: styles.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
return /*#__PURE__*/_jsx("div", {
|
|
8
|
+
className: styles.wrapper,
|
|
9
|
+
children: /*#__PURE__*/_jsx(Select, {
|
|
10
|
+
className: styles.select,
|
|
11
|
+
showSearch: true,
|
|
12
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22",
|
|
13
|
+
optionFilterProp: "children",
|
|
14
|
+
filterOption: function filterOption(input, option) {
|
|
15
|
+
var _option$label;
|
|
16
|
+
return !!(option !== null && option !== void 0 && option.label && option !== null && option !== void 0 && (_option$label = option.label) !== null && _option$label !== void 0 && _option$label.toString().toLowerCase().includes(input.toLowerCase()));
|
|
17
|
+
},
|
|
18
|
+
onChange: onChange
|
|
19
|
+
})
|
|
17
20
|
});
|
|
18
21
|
};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
// 定位容器给定 32px 固定高度,Select 通过 height:100% 填满它,
|
|
2
|
+
// 避免 Select 根的 height:100% 直接相对图谱(绝对定位祖先)解析成整图高度而被拉伸。
|
|
3
|
+
.wrapper {
|
|
2
4
|
position: absolute;
|
|
3
5
|
top: 20px;
|
|
4
6
|
left: 20px;
|
|
5
7
|
|
|
6
8
|
width: 240px;
|
|
7
9
|
height: 32px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.select {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
8
15
|
|
|
9
16
|
border-radius: 2px;
|
|
10
17
|
}
|
|
11
|
-
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
opacity: 0.8;
|
|
58
58
|
width: 140px;
|
|
59
59
|
height: 100%;
|
|
60
|
-
.ant-select-selector {
|
|
60
|
+
:global(.ant-select-selector) {
|
|
61
61
|
border: none;
|
|
62
62
|
margin: 1px 0 0;
|
|
63
63
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
border-radius: 4px;
|
|
94
94
|
|
|
95
|
-
.ant-btn-icon {
|
|
95
|
+
:global(.ant-btn-icon) {
|
|
96
96
|
display: flex;
|
|
97
97
|
align-items: center;
|
|
98
98
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
height: 100%;
|
|
11
11
|
|
|
12
12
|
// 当 hasAll 为 true 时,Group 作为子元素
|
|
13
|
-
> .ant-checkbox-group {
|
|
13
|
+
> :global(.ant-checkbox-group) {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
row-gap: 8px;
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&.outline {
|
|
31
|
-
.ant-checkbox-wrapper {
|
|
32
|
-
.ant-checkbox {
|
|
33
|
-
.ant-checkbox-inner {
|
|
31
|
+
:global(.ant-checkbox-wrapper) {
|
|
32
|
+
:global(.ant-checkbox) {
|
|
33
|
+
:global(.ant-checkbox-inner) {
|
|
34
34
|
border-color: rgba(204, 204, 204, 1) !important;
|
|
35
35
|
|
|
36
36
|
background: transparent !important;
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
.ant-checkbox-inner {
|
|
44
|
+
&:global(.ant-checkbox-checked) {
|
|
45
|
+
:global(.ant-checkbox-inner) {
|
|
46
46
|
background: rgba(255, 255, 255, 1) !important;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
.ant-checkbox {
|
|
53
|
-
.ant-checkbox-inner {
|
|
51
|
+
&:global(.ant-checkbox-wrapper-disabled) {
|
|
52
|
+
:global(.ant-checkbox) {
|
|
53
|
+
:global(.ant-checkbox-inner) {
|
|
54
54
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
55
55
|
|
|
56
56
|
&::after {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
.ant-checkbox-inner {
|
|
61
|
+
&:global(.ant-checkbox-checked) {
|
|
62
|
+
:global(.ant-checkbox-inner) {
|
|
63
63
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.ant-checkbox-wrapper {
|
|
71
|
+
:global(.ant-checkbox-wrapper) {
|
|
72
72
|
align-items: center;
|
|
73
73
|
|
|
74
74
|
font-family: inherit;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
font-weight: inherit;
|
|
77
77
|
color: inherit;
|
|
78
78
|
|
|
79
|
-
.ant-checkbox {
|
|
79
|
+
:global(.ant-checkbox) {
|
|
80
80
|
width: 16px;
|
|
81
81
|
min-width: 16px;
|
|
82
82
|
height: 16px;
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
|
|
85
85
|
border-radius: 2px;
|
|
86
86
|
|
|
87
|
-
input[type="checkbox"].ant-checkbox-input {
|
|
87
|
+
input[type="checkbox"]:global(.ant-checkbox-input) {
|
|
88
88
|
width: 100%;
|
|
89
89
|
height: 100%;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.ant-checkbox-inner {
|
|
92
|
+
:global(.ant-checkbox-inner) {
|
|
93
93
|
width: 100%;
|
|
94
94
|
height: 100%;
|
|
95
95
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
&-indeterminate {
|
|
109
|
-
.ant-checkbox-inner {
|
|
109
|
+
:global(.ant-checkbox-inner) {
|
|
110
110
|
&::after {
|
|
111
111
|
left: 50%;
|
|
112
112
|
top: 50%;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
align-items: center;
|
|
3
3
|
|
|
4
4
|
&.outline {
|
|
5
|
-
.ant-checkbox {
|
|
6
|
-
.ant-checkbox-inner {
|
|
5
|
+
:global(.ant-checkbox) {
|
|
6
|
+
:global(.ant-checkbox-inner) {
|
|
7
7
|
border-color: rgba(204, 204, 204, 1) !important;
|
|
8
8
|
|
|
9
9
|
background: transparent !important;
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
.ant-checkbox-inner {
|
|
17
|
+
&:global(.ant-checkbox-checked) {
|
|
18
|
+
:global(.ant-checkbox-inner) {
|
|
19
19
|
background: rgba(255, 255, 255, 1) !important;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
.ant-checkbox {
|
|
26
|
-
.ant-checkbox-inner {
|
|
24
|
+
&:global(.ant-checkbox-wrapper-disabled) {
|
|
25
|
+
:global(.ant-checkbox) {
|
|
26
|
+
:global(.ant-checkbox-inner) {
|
|
27
27
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
28
28
|
|
|
29
29
|
&::after {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
.ant-checkbox-inner {
|
|
34
|
+
&:global(.ant-checkbox-checked) {
|
|
35
|
+
:global(.ant-checkbox-inner) {
|
|
36
36
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.ant-checkbox {
|
|
43
|
+
:global(.ant-checkbox) {
|
|
44
44
|
width: 16px;
|
|
45
45
|
min-width: 16px;
|
|
46
46
|
height: 16px;
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
|
|
49
49
|
border-radius: 2px;
|
|
50
50
|
|
|
51
|
-
input[type="checkbox"].ant-checkbox-input {
|
|
51
|
+
input[type="checkbox"]:global(.ant-checkbox-input) {
|
|
52
52
|
width: 100%;
|
|
53
53
|
height: 100%;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.ant-checkbox-inner {
|
|
56
|
+
:global(.ant-checkbox-inner) {
|
|
57
57
|
width: 100%;
|
|
58
58
|
height: 100%;
|
|
59
59
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&-indeterminate {
|
|
73
|
-
.ant-checkbox-inner {
|
|
73
|
+
:global(.ant-checkbox-inner) {
|
|
74
74
|
&::after {
|
|
75
75
|
left: 50%;
|
|
76
76
|
top: 50%;
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
|
|
10
|
-
.cm-line {
|
|
10
|
+
:global(.cm-line) {
|
|
11
11
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
12
12
|
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
|
|
13
13
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.cm-focused {
|
|
16
|
+
:global(.cm-focused) {
|
|
17
17
|
outline: none;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.cm-lintRange-error {
|
|
20
|
+
:global(.cm-lintRange-error) {
|
|
21
21
|
background-size: auto auto;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
border-color: #ff4d4f;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.cm-focused {
|
|
31
|
+
:global(.cm-focused) {
|
|
32
32
|
border-color: #ff4d4f;
|
|
33
33
|
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.DrawerForm {
|
|
2
|
-
.ant-drawer-title {
|
|
2
|
+
:global(.ant-drawer-title) {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: space-between;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
column-gap: 10px;
|
|
45
45
|
|
|
46
|
-
.ant-btn-icon {
|
|
46
|
+
:global(.ant-btn-icon) {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -20,7 +20,6 @@ import React, { useState } from "react";
|
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import zxcvbn from "zxcvbn";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
var PasswordStrength = function PasswordStrength(props) {
|
|
26
25
|
var placeholder = props.placeholder,
|
|
@@ -30,7 +29,8 @@ var PasswordStrength = function PasswordStrength(props) {
|
|
|
30
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
30
|
fraction = _useState2[0],
|
|
32
31
|
setFraction = _useState2[1];
|
|
33
|
-
return /*#__PURE__*/_jsxs(
|
|
32
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
33
|
+
className: styles.passwordStrength,
|
|
34
34
|
children: [/*#__PURE__*/_jsx(Input.Password, _objectSpread(_objectSpread({}, inputConfig), {}, {
|
|
35
35
|
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : "请输入",
|
|
36
36
|
onChange: function onChange(value) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
&.rect {
|
|
20
20
|
> label {
|
|
21
|
-
> span.ant-radio {
|
|
21
|
+
> span:global(.ant-radio) {
|
|
22
22
|
width: 24px;
|
|
23
23
|
min-width: 24px;
|
|
24
24
|
height: 24px;
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
border-radius: 2px;
|
|
28
28
|
|
|
29
|
-
input[type="radio"].ant-radio-input {
|
|
29
|
+
input[type="radio"]:global(.ant-radio-input) {
|
|
30
30
|
width: 100%;
|
|
31
31
|
height: 100%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.ant-radio-inner {
|
|
34
|
+
:global(.ant-radio-inner) {
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: 100%;
|
|
37
37
|
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
.ant-radio-inner {
|
|
68
|
+
&:global(.ant-radio-checked) {
|
|
69
|
+
:global(.ant-radio-inner) {
|
|
70
70
|
background: rgba(255, 255, 255, 1) !important;
|
|
71
71
|
|
|
72
72
|
&::after {
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
.ant-radio-inner {
|
|
80
|
+
&:global(.ant-radio-disabled) {
|
|
81
|
+
:global(.ant-radio-inner) {
|
|
82
82
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
83
83
|
|
|
84
84
|
&::after {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
.ant-radio-inner {
|
|
89
|
+
&:global(.ant-radio-checked) {
|
|
90
|
+
:global(.ant-radio-inner) {
|
|
91
91
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
color: var(--cf-text);
|
|
5
5
|
|
|
6
|
-
.ant-segmented-group {
|
|
6
|
+
:global(.ant-segmented-group) {
|
|
7
7
|
height: 100%;
|
|
8
8
|
|
|
9
9
|
font-family: inherit;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-weight: inherit;
|
|
18
18
|
color: inherit;
|
|
19
19
|
|
|
20
|
-
.ant-segmented-item-label {
|
|
20
|
+
:global(.ant-segmented-item-label) {
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
justify-content: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.upload {
|
|
2
2
|
height: 100%;
|
|
3
3
|
|
|
4
|
-
.ant-upload {
|
|
4
|
+
:global(.ant-upload) {
|
|
5
5
|
height: max-content;
|
|
6
6
|
|
|
7
7
|
.upBtn {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
column-gap: 10px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ant-upload-disabled {
|
|
18
|
+
:global(.ant-upload-disabled) {
|
|
19
19
|
.singleFile {
|
|
20
20
|
cursor: not-allowed;
|
|
21
21
|
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
&:global(.ant-upload-drag) {
|
|
101
101
|
height: 180px;
|
|
102
102
|
|
|
103
103
|
border-radius: 8px;
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.FormUpload {
|
|
137
|
-
.ant-form-item-control-input-content {
|
|
137
|
+
:global(.ant-form-item-control-input-content) {
|
|
138
138
|
> span {
|
|
139
139
|
width: 100%;
|
|
140
140
|
}
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.ant-picker {
|
|
22
|
+
:global(.ant-picker) {
|
|
23
23
|
width: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.ant-form-item-row {
|
|
26
|
+
:global(.ant-form-item-row) {
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
|
|
30
|
-
.ant-form-item-control {
|
|
30
|
+
:global(.ant-form-item-control) {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
row-gap: 5px;
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
width: var(--input-width) !important;
|
|
36
36
|
max-width: 100%;
|
|
37
37
|
|
|
38
|
-
.ant-form-item-control-input {
|
|
38
|
+
:global(.ant-form-item-control-input) {
|
|
39
39
|
height: var(--input-height);
|
|
40
40
|
min-height: var(--input-min-height);
|
|
41
41
|
|
|
42
|
-
.ant-form-item-control-input-content {
|
|
42
|
+
:global(.ant-form-item-control-input-content) {
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.ant-form-item-label {
|
|
57
|
+
:global(.ant-form-item-label) {
|
|
58
58
|
flex: 0 1 auto !important;
|
|
59
59
|
display: inline-flex;
|
|
60
60
|
align-items: center;
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
cursor: pointer;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
&:global(.ant-form-item-no-colon) {
|
|
160
160
|
.label {
|
|
161
161
|
&::after {
|
|
162
162
|
content: none;
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
content: none !important;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
&:global(.ant-form-item-required) {
|
|
179
179
|
.label {
|
|
180
180
|
&::before {
|
|
181
181
|
content: "*";
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
&.after {
|
|
215
|
-
label.ant-form-item-required {
|
|
215
|
+
label:global(.ant-form-item-required) {
|
|
216
216
|
.label {
|
|
217
217
|
&::before {
|
|
218
218
|
content: none !important;
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
&.hasLabelContent {
|
|
244
|
-
label.ant-form-item-required {
|
|
244
|
+
label:global(.ant-form-item-required) {
|
|
245
245
|
&::after {
|
|
246
246
|
content: none;
|
|
247
247
|
}
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
&.hideRequired {
|
|
269
|
-
label.ant-form-item-required {
|
|
269
|
+
label:global(.ant-form-item-required) {
|
|
270
270
|
.label {
|
|
271
271
|
&::before {
|
|
272
272
|
content: none !important;
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
&.after {
|
|
284
|
-
label.ant-form-item-required {
|
|
284
|
+
label:global(.ant-form-item-required) {
|
|
285
285
|
.label {
|
|
286
286
|
&::after {
|
|
287
287
|
content: none !important;
|
|
@@ -292,11 +292,11 @@
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
&.horizontal {
|
|
295
|
-
.ant-form-item-row {
|
|
295
|
+
:global(.ant-form-item-row) {
|
|
296
296
|
flex-wrap: nowrap;
|
|
297
297
|
column-gap: 5px;
|
|
298
298
|
|
|
299
|
-
.ant-form-item-control {
|
|
299
|
+
:global(.ant-form-item-control) {
|
|
300
300
|
flex: 1 !important;
|
|
301
301
|
flex-grow: var(--input-horizontal-flex-grow) !important;
|
|
302
302
|
|
|
@@ -305,13 +305,13 @@
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
&.start {
|
|
308
|
-
.ant-form-item-control-input-content {
|
|
308
|
+
:global(.ant-form-item-control-input-content) {
|
|
309
309
|
text-align: left;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
&.between {
|
|
314
|
-
.ant-form-item-control-input-content {
|
|
314
|
+
:global(.ant-form-item-control-input-content) {
|
|
315
315
|
text-align: right;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -320,13 +320,13 @@
|
|
|
320
320
|
&.vertical {
|
|
321
321
|
--label-height: max-content;
|
|
322
322
|
|
|
323
|
-
.ant-form-item-row {
|
|
323
|
+
:global(.ant-form-item-row) {
|
|
324
324
|
flex-direction: column;
|
|
325
325
|
row-gap: 5px;
|
|
326
326
|
|
|
327
327
|
height: max-content;
|
|
328
328
|
|
|
329
|
-
.ant-form-item-label {
|
|
329
|
+
:global(.ant-form-item-label) {
|
|
330
330
|
text-align: start;
|
|
331
331
|
|
|
332
332
|
width: 100%;
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.ant-form-item-control {
|
|
356
|
+
:global(.ant-form-item-control) {
|
|
357
357
|
flex: 0 1 auto !important;
|
|
358
358
|
display: flex;
|
|
359
359
|
flex-direction: column;
|
|
@@ -364,8 +364,8 @@
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
&.legacyHasLabelExtra {
|
|
367
|
-
.ant-form-item-row {
|
|
368
|
-
.ant-form-item-label {
|
|
367
|
+
:global(.ant-form-item-row) {
|
|
368
|
+
:global(.ant-form-item-label) {
|
|
369
369
|
label {
|
|
370
370
|
flex-direction: column;
|
|
371
371
|
flex-wrap: nowrap;
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
&.hideAdditiona {
|
|
383
|
-
.ant-form-item-additional {
|
|
383
|
+
:global(.ant-form-item-additional) {
|
|
384
384
|
display: none;
|
|
385
385
|
}
|
|
386
386
|
}
|