@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
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ant-table-container {
|
|
18
|
+
:global(.ant-table-container) {
|
|
19
19
|
border-left: none !important;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.ant-table-thead {
|
|
22
|
+
:global(.ant-table-thead) {
|
|
23
23
|
tr {
|
|
24
|
-
.ant-table-cell {
|
|
24
|
+
:global(.ant-table-cell) {
|
|
25
25
|
padding: var(--th-padding);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
&:global(.ant-table-column-has-sorters) {
|
|
28
28
|
background: var(--cf-subtle);
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.ant-table-tbody {
|
|
39
|
-
.ant-table-placeholder {
|
|
38
|
+
:global(.ant-table-tbody) {
|
|
39
|
+
:global(.ant-table-placeholder) {
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.ant-table-expanded-row {
|
|
44
|
-
.ant-table-cell {
|
|
43
|
+
:global(.ant-table-expanded-row) {
|
|
44
|
+
:global(.ant-table-cell) {
|
|
45
45
|
padding: var(--expanded-cell-padding);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.ant-table-row {
|
|
50
|
-
.ant-table-cell {
|
|
49
|
+
:global(.ant-table-row) {
|
|
50
|
+
:global(.ant-table-cell) {
|
|
51
51
|
padding: var(--td-padding);
|
|
52
52
|
|
|
53
|
-
&:not(.ant-table-cell-ellipsis):not(.noWarp) {
|
|
53
|
+
&:not(:global(.ant-table-cell-ellipsis)):not(.noWarp) {
|
|
54
54
|
white-space: pre-wrap;
|
|
55
55
|
word-break: break-all;
|
|
56
56
|
}
|
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
white-space: nowrap;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
&:global(.ant-table-column-sort) {
|
|
63
63
|
background: transparent;
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
&:global(.ant-table-cell-row-hover) {
|
|
66
66
|
background: var(--cf-subtle);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
.ant-table-cell {
|
|
73
|
-
|
|
71
|
+
&:global(.ant-table-row-selected) {
|
|
72
|
+
:global(.ant-table-cell) {
|
|
73
|
+
&:global(.ant-table-column-sort) {
|
|
74
74
|
background: rgba(19, 194, 194, 0.12);
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
&:global(.ant-table-cell-row-hover) {
|
|
77
77
|
background: rgba(19, 194, 194, 0.22);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.ant-table-summary {
|
|
85
|
+
:global(.ant-table-summary) {
|
|
86
86
|
> tr {
|
|
87
|
-
.ant-table-cell {
|
|
87
|
+
:global(.ant-table-cell) {
|
|
88
88
|
padding: var(--td-padding);
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
&:global(.ant-table-column-sort) {
|
|
91
91
|
background: transparent;
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
&:global(.ant-table-cell-row-hover) {
|
|
94
94
|
background: var(--cf-subtle);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.ant-table-tbody-virtual-scrollbar {
|
|
101
|
+
:global(.ant-table-tbody-virtual-scrollbar) {
|
|
102
102
|
display: none;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.ant-table-cell {
|
|
105
|
+
:global(.ant-table-cell) {
|
|
106
106
|
&.hidden {
|
|
107
107
|
width: 0px !important;
|
|
108
108
|
overflow: hidden !important;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.ant-table-row-expand-icon {
|
|
118
|
+
:global(.ant-table-row-expand-icon) {
|
|
119
119
|
&::before {
|
|
120
120
|
top: calc(50% - 0.5px);
|
|
121
121
|
}
|
|
@@ -128,9 +128,9 @@
|
|
|
128
128
|
content: none !important;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.ant-checkbox {
|
|
132
|
-
|
|
133
|
-
.ant-checkbox-inner {
|
|
131
|
+
:global(.ant-checkbox) {
|
|
132
|
+
&:global(.ant-checkbox-checked) {
|
|
133
|
+
:global(.ant-checkbox-inner) {
|
|
134
134
|
&::after {
|
|
135
135
|
top: 45%;
|
|
136
136
|
inset-inline-start: 25%;
|
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
.antdTable {
|
|
148
148
|
border-color: var(--cf-border-weak);
|
|
149
149
|
|
|
150
|
-
*:not(.ant-table-cell *) {
|
|
150
|
+
*:not(:global(.ant-table-cell) *) {
|
|
151
151
|
border-color: inherit !important;
|
|
152
152
|
|
|
153
|
-
.ant-table-cell::after {
|
|
153
|
+
:global(.ant-table-cell)::after {
|
|
154
154
|
border-color: inherit !important;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -164,15 +164,15 @@
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
&.hideEmpty {
|
|
167
|
-
.ant-table-placeholder {
|
|
167
|
+
:global(.ant-table-placeholder) {
|
|
168
168
|
display: none !important;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
&:not(.scroll) {
|
|
173
|
-
.ant-table-bordered {
|
|
174
|
-
.ant-table-container {
|
|
175
|
-
.ant-table-content {
|
|
173
|
+
:global(.ant-table-bordered) {
|
|
174
|
+
:global(.ant-table-container) {
|
|
175
|
+
:global(.ant-table-content) {
|
|
176
176
|
> table {
|
|
177
177
|
border-left: 1px solid var(--cf-border-weak);
|
|
178
178
|
}
|
|
@@ -181,12 +181,12 @@
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.ant-table {
|
|
184
|
+
:global(.ant-table) {
|
|
185
185
|
line-height: normal;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
&.isExpandedCellTable {
|
|
189
|
-
.ant-table-tbody {
|
|
189
|
+
:global(.ant-table-tbody) {
|
|
190
190
|
tr {
|
|
191
191
|
&:last-child {
|
|
192
192
|
td {
|
|
@@ -196,9 +196,9 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.ant-table-bordered {
|
|
200
|
-
.ant-table-container {
|
|
201
|
-
> .ant-table-content {
|
|
199
|
+
:global(.ant-table-bordered) {
|
|
200
|
+
:global(.ant-table-container) {
|
|
201
|
+
> :global(.ant-table-content) {
|
|
202
202
|
> table {
|
|
203
203
|
border-radius: 0 !important;
|
|
204
204
|
border-left: none !important;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.ant-table-thead {
|
|
215
|
+
:global(.ant-table-thead) {
|
|
216
216
|
tr {
|
|
217
217
|
th {
|
|
218
218
|
&:first-child {
|
|
@@ -235,23 +235,23 @@
|
|
|
235
235
|
width: 100%;
|
|
236
236
|
min-height: 0px;
|
|
237
237
|
|
|
238
|
-
.ant-table-bordered {
|
|
239
|
-
.ant-table-container {
|
|
240
|
-
> .ant-table-header {
|
|
238
|
+
:global(.ant-table-bordered) {
|
|
239
|
+
:global(.ant-table-container) {
|
|
240
|
+
> :global(.ant-table-header) {
|
|
241
241
|
> table {
|
|
242
242
|
border-radius: 6px 6px 0 0;
|
|
243
243
|
border-left: 1px solid var(--cf-border-weak);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
> .ant-table-body {
|
|
247
|
+
> :global(.ant-table-body) {
|
|
248
248
|
> table {
|
|
249
249
|
border-radius: 0px !important;
|
|
250
250
|
border-left: 1px solid var(--cf-border-weak);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
> .ant-table-summary {
|
|
254
|
+
> :global(.ant-table-summary) {
|
|
255
255
|
> table {
|
|
256
256
|
border-radius: 0px !important;
|
|
257
257
|
border-left: 1px solid var(--cf-border-weak);
|
|
@@ -262,23 +262,23 @@
|
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
&.isExpanded {
|
|
265
|
-
.ant-table-bordered {
|
|
266
|
-
.ant-table-container {
|
|
267
|
-
> .ant-table-header {
|
|
265
|
+
:global(.ant-table-bordered) {
|
|
266
|
+
:global(.ant-table-container) {
|
|
267
|
+
> :global(.ant-table-header) {
|
|
268
268
|
> table {
|
|
269
269
|
border-radius: 0px !important;
|
|
270
270
|
border-left: none !important;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
> .ant-table-body {
|
|
274
|
+
> :global(.ant-table-body) {
|
|
275
275
|
> table {
|
|
276
276
|
border-radius: 0px !important;
|
|
277
277
|
border-left: none !important;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
> .ant-table-summary {
|
|
281
|
+
> :global(.ant-table-summary) {
|
|
282
282
|
> table {
|
|
283
283
|
border-radius: 0px !important;
|
|
284
284
|
border-left: none !important;
|
|
@@ -289,38 +289,38 @@
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
.ant-table-wrapper {
|
|
292
|
+
:global(.ant-table-wrapper) {
|
|
293
293
|
width: 100%;
|
|
294
294
|
height: 100%;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
.ant-spin-nested-loading {
|
|
297
|
+
:global(.ant-spin-nested-loading) {
|
|
298
298
|
width: 100%;
|
|
299
299
|
height: 100%;
|
|
300
300
|
|
|
301
|
-
.ant-spin-container {
|
|
301
|
+
:global(.ant-spin-container) {
|
|
302
302
|
display: flex;
|
|
303
303
|
flex-direction: column;
|
|
304
304
|
|
|
305
305
|
width: 100%;
|
|
306
306
|
height: 100%;
|
|
307
307
|
|
|
308
|
-
.ant-table {
|
|
308
|
+
:global(.ant-table) {
|
|
309
309
|
width: 100%;
|
|
310
310
|
height: 100%;
|
|
311
311
|
|
|
312
|
-
.ant-table-container {
|
|
312
|
+
:global(.ant-table-container) {
|
|
313
313
|
display: flex;
|
|
314
314
|
flex-direction: column;
|
|
315
315
|
|
|
316
316
|
width: 100%;
|
|
317
317
|
height: 100%;
|
|
318
318
|
|
|
319
|
-
> .ant-table-header {
|
|
319
|
+
> :global(.ant-table-header) {
|
|
320
320
|
min-height: max-content;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
> .ant-table-body {
|
|
323
|
+
> :global(.ant-table-body) {
|
|
324
324
|
position: relative;
|
|
325
325
|
|
|
326
326
|
flex: 1;
|
|
@@ -344,11 +344,11 @@
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
&.y-unScroll {
|
|
347
|
-
.ant-spin-nested-loading {
|
|
348
|
-
.ant-spin-container {
|
|
349
|
-
.ant-table {
|
|
350
|
-
.ant-table-container {
|
|
351
|
-
> .ant-table-body {
|
|
347
|
+
:global(.ant-spin-nested-loading) {
|
|
348
|
+
:global(.ant-spin-container) {
|
|
349
|
+
:global(.ant-table) {
|
|
350
|
+
:global(.ant-table-container) {
|
|
351
|
+
> :global(.ant-table-body) {
|
|
352
352
|
overflow-y: visible !important;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
overflow-y: auto;
|
|
57
57
|
scrollbar-gutter: stable;
|
|
58
58
|
|
|
59
|
-
.ant-tree-treenode {
|
|
59
|
+
:global(.ant-tree-treenode) {
|
|
60
60
|
&:hover {
|
|
61
61
|
background: var(--cf-subtle);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
&:has(> .ant-tree-node-selected) {
|
|
64
|
+
&:has(> :global(.ant-tree-node-selected)) {
|
|
65
65
|
background-color: #e6f4ff;
|
|
66
66
|
|
|
67
|
-
.ant-tree-node-selected {
|
|
67
|
+
:global(.ant-tree-node-selected) {
|
|
68
68
|
background-color: transparent;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.ant-tree-indent-unit {
|
|
73
|
+
:global(.ant-tree-indent-unit) {
|
|
74
74
|
width: var(--tree-indent-unit-width);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.ant-tree-switcher {
|
|
77
|
+
:global(.ant-tree-switcher) {
|
|
78
78
|
display: inline-flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
justify-content: center;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.ant-tree-node-content-wrapper {
|
|
98
|
+
:global(.ant-tree-node-content-wrapper) {
|
|
99
99
|
display: inline-flex;
|
|
100
100
|
align-items: center;
|
|
101
101
|
column-gap: 4px;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
padding: 2px 0px;
|
|
107
107
|
|
|
108
|
-
.ant-tree-title {
|
|
108
|
+
:global(.ant-tree-title) {
|
|
109
109
|
display: inline-block;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
background: transparent;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.ant-tree-iconEle {
|
|
116
|
+
:global(.ant-tree-iconEle) {
|
|
117
117
|
display: inline-flex;
|
|
118
118
|
align-items: center;
|
|
119
119
|
|
|
@@ -123,17 +123,17 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&.hideLeafExpand {
|
|
126
|
-
.ant-tree-switcher-noop {
|
|
126
|
+
:global(.ant-tree-switcher-noop) {
|
|
127
127
|
display: none;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&.legacyHasSelectedNodeBackground {
|
|
132
132
|
.treeContainer {
|
|
133
|
-
.ant-tree-treenode.ant-tree-treenode-selected {
|
|
133
|
+
:global(.ant-tree-treenode):global(.ant-tree-treenode-selected) {
|
|
134
134
|
background-color: #e6f4ff;
|
|
135
135
|
|
|
136
|
-
.ant-tree-node-selected {
|
|
136
|
+
:global(.ant-tree-node-selected) {
|
|
137
137
|
background-color: transparent;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
6
|
|
|
7
|
-
span.ant-upload {
|
|
7
|
+
span:global(.ant-upload) {
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.ant-upload-list {
|
|
11
|
+
:global(.ant-upload-list) {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
row-gap: 5px;
|
|
15
15
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
&:global(.ant-upload-list-picture-card) {
|
|
19
19
|
flex-direction: row;
|
|
20
20
|
flex-wrap: wrap;
|
|
21
21
|
gap: 5px;
|
|
@@ -12,13 +12,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
const SearchSelect = ({
|
|
13
13
|
onChange
|
|
14
14
|
}) => {
|
|
15
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
16
|
-
className: _indexModule.default.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
16
|
+
className: _indexModule.default.wrapper,
|
|
17
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
18
|
+
className: _indexModule.default.select,
|
|
19
|
+
showSearch: true,
|
|
20
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22",
|
|
21
|
+
optionFilterProp: "children",
|
|
22
|
+
filterOption: (input, option) => !!(option?.label && option?.label?.toString().toLowerCase().includes(input.toLowerCase())),
|
|
23
|
+
onChange: onChange
|
|
24
|
+
})
|
|
22
25
|
});
|
|
23
26
|
};
|
|
24
27
|
exports.SearchSelect = SearchSelect;
|
|
@@ -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%;
|