@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.
Files changed (175) hide show
  1. package/README.md +2 -0
  2. package/es/components/ChainGraph/_components/SearchSelect/index.js +13 -10
  3. package/es/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
  4. package/es/components/ChainGraph/index.module.less +1 -1
  5. package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  6. package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  7. package/es/components/Chat/ChatInput/index.module.less +2 -2
  8. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  9. package/es/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  10. package/es/components/Checkbox/index.module.less +13 -13
  11. package/es/components/CodeMirror/index.module.less +4 -4
  12. package/es/components/DatePicker/RangePicker/index.module.less +1 -1
  13. package/es/components/DatePicker/StepPicker/index.module.less +1 -1
  14. package/es/components/DatePicker/index.module.less +2 -1
  15. package/es/components/Form/DrawerForm/index.module.less +2 -2
  16. package/es/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -2
  17. package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
  18. package/es/components/FormItem/FormRadio/index.module.less +9 -9
  19. package/es/components/FormItem/FormSegmented/index.module.less +2 -2
  20. package/es/components/FormItem/FormUpload/index.module.less +4 -4
  21. package/es/components/FormItem/ItemContainer/index.module.less +22 -22
  22. package/es/components/Icon/index.js +9 -24
  23. package/es/components/Input/Number/index.module.less +9 -9
  24. package/es/components/Input/Password/index.module.less +3 -3
  25. package/es/components/Input/Range/index.module.less +4 -4
  26. package/es/components/Input/Search/index.module.less +5 -5
  27. package/es/components/Input/TextArea/index.module.less +5 -5
  28. package/es/components/Input/index.module.less +7 -4
  29. package/es/components/Modal/index.module.less +2 -2
  30. package/es/components/Operate/index.module.less +2 -2
  31. package/es/components/Panel/IframePanel/index.module.less +1 -1
  32. package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  33. package/es/components/Search/index.module.less +2 -2
  34. package/es/components/Select/AutoCompleteSelect/index.module.less +35 -35
  35. package/es/components/Select/IconSelect/index.module.less +3 -3
  36. package/es/components/Select/TreeSelect/index.module.less +17 -17
  37. package/es/components/Select/_utils/getElementPosition.d.ts +6 -2
  38. package/es/components/Select/_utils/getElementPosition.js +8 -6
  39. package/es/components/Select/index.module.less +37 -34
  40. package/es/components/Slider/index.module.less +5 -4
  41. package/es/components/Spreadsheet/index.module.less +4 -4
  42. package/es/components/Switch/index.js +12 -8
  43. package/es/components/Switch/index.module.less +7 -0
  44. package/es/components/Table/_components/Pagination/index.module.less +23 -23
  45. package/es/components/Table/index.module.less +61 -61
  46. package/es/components/Tree/index.module.less +11 -11
  47. package/es/components/Upload/index.module.less +3 -3
  48. package/es/styles/antd-overload.less +1 -1
  49. package/lib/components/ChainGraph/_components/SearchSelect/index.js +10 -7
  50. package/lib/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
  51. package/lib/components/ChainGraph/index.module.less +1 -1
  52. package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  53. package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  54. package/lib/components/Chat/ChatInput/index.module.less +2 -2
  55. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  56. package/lib/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  57. package/lib/components/Checkbox/index.module.less +13 -13
  58. package/lib/components/CodeMirror/index.module.less +4 -4
  59. package/lib/components/DatePicker/RangePicker/index.module.less +1 -1
  60. package/lib/components/DatePicker/StepPicker/index.module.less +1 -1
  61. package/lib/components/DatePicker/index.module.less +2 -1
  62. package/lib/components/Form/DrawerForm/index.module.less +2 -2
  63. package/lib/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -1
  64. package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
  65. package/lib/components/FormItem/FormRadio/index.module.less +9 -9
  66. package/lib/components/FormItem/FormSegmented/index.module.less +2 -2
  67. package/lib/components/FormItem/FormUpload/index.module.less +4 -4
  68. package/lib/components/FormItem/ItemContainer/index.module.less +22 -22
  69. package/lib/components/Icon/index.js +9 -27
  70. package/lib/components/Input/Number/index.module.less +9 -9
  71. package/lib/components/Input/Password/index.module.less +3 -3
  72. package/lib/components/Input/Range/index.module.less +4 -4
  73. package/lib/components/Input/Search/index.module.less +5 -5
  74. package/lib/components/Input/TextArea/index.module.less +5 -5
  75. package/lib/components/Input/index.module.less +7 -4
  76. package/lib/components/Modal/index.module.less +2 -2
  77. package/lib/components/Operate/index.module.less +2 -2
  78. package/lib/components/Panel/IframePanel/index.module.less +1 -1
  79. package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  80. package/lib/components/Search/index.module.less +2 -2
  81. package/lib/components/Select/AutoCompleteSelect/index.module.less +35 -35
  82. package/lib/components/Select/IconSelect/index.module.less +3 -3
  83. package/lib/components/Select/TreeSelect/index.module.less +17 -17
  84. package/lib/components/Select/_utils/getElementPosition.d.ts +6 -2
  85. package/lib/components/Select/_utils/getElementPosition.js +8 -6
  86. package/lib/components/Select/index.module.less +37 -34
  87. package/lib/components/Slider/index.module.less +5 -4
  88. package/lib/components/Spreadsheet/index.module.less +4 -4
  89. package/lib/components/Switch/index.js +8 -4
  90. package/lib/components/Switch/index.module.less +7 -0
  91. package/lib/components/Table/_components/Pagination/index.module.less +23 -23
  92. package/lib/components/Table/index.module.less +61 -61
  93. package/lib/components/Tree/index.module.less +11 -11
  94. package/lib/components/Upload/index.module.less +3 -3
  95. package/lib/styles/antd-overload.less +1 -1
  96. package/package.json +1 -1
  97. package/src/components/Button/index.md +20 -4
  98. package/src/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
  99. package/src/components/ChainGraph/_components/SearchSelect/index.tsx +18 -16
  100. package/src/components/ChainGraph/index.md +67 -1
  101. package/src/components/ChainGraph/index.module.less +1 -1
  102. package/src/components/Chart/index.md +351 -1
  103. package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  104. package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  105. package/src/components/Chat/ChatInput/index.module.less +2 -2
  106. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  107. package/src/components/Chat/index.md +140 -1
  108. package/src/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  109. package/src/components/Checkbox/index.md +85 -1
  110. package/src/components/Checkbox/index.module.less +13 -13
  111. package/src/components/CodeMirror/index.md +41 -1
  112. package/src/components/CodeMirror/index.module.less +4 -4
  113. package/src/components/Copy/index.md +1 -1
  114. package/src/components/DatePicker/RangePicker/index.module.less +1 -1
  115. package/src/components/DatePicker/StepPicker/index.module.less +1 -1
  116. package/src/components/DatePicker/index.md +82 -1
  117. package/src/components/DatePicker/index.module.less +2 -1
  118. package/src/components/Descriptions/index.md +45 -1
  119. package/src/components/Editor/index.md +40 -1
  120. package/src/components/FileCol/index.md +24 -1
  121. package/src/components/FilePreview/index.md +45 -1
  122. package/src/components/FlexFill/index.md +46 -1
  123. package/src/components/Form/DrawerForm/index.module.less +2 -2
  124. package/src/components/Form/index.md +179 -1
  125. package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
  126. package/src/components/FormItem/FormInput/FormPasswordStrength/index.tsx +2 -2
  127. package/src/components/FormItem/FormRadio/index.module.less +9 -9
  128. package/src/components/FormItem/FormSegmented/index.module.less +2 -2
  129. package/src/components/FormItem/FormUpload/index.module.less +4 -4
  130. package/src/components/FormItem/ItemContainer/index.module.less +22 -22
  131. package/src/components/FormItem/index.md +514 -1
  132. package/src/components/Icon/index.md +24 -4
  133. package/src/components/Icon/index.tsx +9 -37
  134. package/src/components/Input/Number/index.module.less +9 -9
  135. package/src/components/Input/Password/index.module.less +3 -3
  136. package/src/components/Input/Range/index.module.less +4 -4
  137. package/src/components/Input/Search/index.module.less +5 -5
  138. package/src/components/Input/TextArea/index.module.less +5 -5
  139. package/src/components/Input/index.md +148 -1
  140. package/src/components/Input/index.module.less +7 -4
  141. package/src/components/Markdown/index.md +73 -1
  142. package/src/components/Modal/index.md +43 -1
  143. package/src/components/Modal/index.module.less +2 -2
  144. package/src/components/Operate/index.md +43 -1
  145. package/src/components/Operate/index.module.less +2 -2
  146. package/src/components/Panel/IframePanel/index.module.less +1 -1
  147. package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  148. package/src/components/Panel/index.md +193 -1
  149. package/src/components/Search/index.md +248 -1
  150. package/src/components/Search/index.module.less +2 -2
  151. package/src/components/SecondConf/index.md +39 -1
  152. package/src/components/Select/AutoCompleteSelect/index.module.less +35 -35
  153. package/src/components/Select/IconSelect/index.module.less +3 -3
  154. package/src/components/Select/TreeSelect/index.module.less +17 -17
  155. package/src/components/Select/_utils/getElementPosition.ts +8 -6
  156. package/src/components/Select/index.md +47 -1
  157. package/src/components/Select/index.module.less +37 -34
  158. package/src/components/Slider/index.md +28 -1
  159. package/src/components/Slider/index.module.less +5 -4
  160. package/src/components/Spreadsheet/index.md +42 -1
  161. package/src/components/Spreadsheet/index.module.less +4 -4
  162. package/src/components/Switch/index.md +33 -1
  163. package/src/components/Switch/index.module.less +7 -0
  164. package/src/components/Switch/index.tsx +14 -11
  165. package/src/components/TabBar/index.md +70 -1
  166. package/src/components/Table/_components/Pagination/index.module.less +23 -23
  167. package/src/components/Table/index.md +60 -1
  168. package/src/components/Table/index.module.less +61 -61
  169. package/src/components/Tags/index.md +23 -1
  170. package/src/components/TextEllipsis/index.md +29 -1
  171. package/src/components/Tree/index.md +66 -1
  172. package/src/components/Tree/index.module.less +11 -11
  173. package/src/components/Upload/index.md +72 -1
  174. package/src/components/Upload/index.module.less +3 -3
  175. package/src/styles/antd-overload.less +1 -1
@@ -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
- &.ant-checkbox-checked {
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
- &.ant-checkbox-wrapper-disabled {
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
- &.ant-checkbox-checked {
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
  }
@@ -25,7 +25,7 @@
25
25
  color: inherit;
26
26
  text-align: inherit;
27
27
 
28
- .ant-picker-input {
28
+ :global(.ant-picker-input) {
29
29
  font-family: inherit;
30
30
  font-size: inherit;
31
31
  font-weight: inherit;
@@ -5,7 +5,7 @@
5
5
  column-gap: 5px;
6
6
 
7
7
  .icon {
8
- &.ant-btn-icon-only {
8
+ &:global(.ant-btn-icon-only) {
9
9
  width: 32px;
10
10
  height: 32px;
11
11
  }
@@ -5,6 +5,7 @@
5
5
 
6
6
  width: 100%;
7
7
  height: 100%;
8
+ min-height: 32px;
8
9
  max-height: max-content;
9
10
 
10
11
  border-radius: 6px;
@@ -20,7 +21,7 @@
20
21
  min-width: 80px;
21
22
  }
22
23
 
23
- .ant-picker {
24
+ :global(.ant-picker) {
24
25
  height: 100%;
25
26
  width: 100%;
26
27
 
@@ -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,8 @@ const PasswordStrength = props => {
20
20
  ...inputConfig
21
21
  } = props;
22
22
  const [fraction, setFraction] = (0, _react.useState)(0);
23
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
24
+ className: _indexModule.default.passwordStrength,
24
25
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default.Password, {
25
26
  ...inputConfig,
26
27
  placeholder: placeholder ?? "请输入",
@@ -1,3 +1,15 @@
1
+ .passwordStrength {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 4px;
5
+
6
+ width: 100%;
7
+
8
+ .passwordInput {
9
+ width: 100%;
10
+ }
11
+ }
12
+
1
13
  .strengthBar {
2
14
  position: relative;
3
15
 
@@ -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
- &.ant-radio-checked {
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
- &.ant-radio-disabled {
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
- &.ant-radio-checked {
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
- &.ant-upload-drag {
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
- &.ant-form-item-no-colon {
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
- &.ant-form-item-required {
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
  }
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("@iconify/react");
8
- var _icons = _interopRequireWildcard(require("@ant-design/icons"));
9
- var AntdIcons = _icons;
8
+ var AntdIcons = _interopRequireWildcard(require("@ant-design/icons"));
10
9
  var _react2 = _interopRequireWildcard(require("react"));
11
10
  var _classnames = _interopRequireDefault(require("classnames"));
12
11
  var _indexModule = _interopRequireDefault(require("./index.module.less"));
@@ -51,37 +50,20 @@ const Icon = props => {
51
50
  ref: ref
52
51
  });
53
52
  }
54
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.default, {
53
+
54
+ // iconify 图标:直接用 span 承载 Iconify 自带的 svg,避免把它嵌套进 antd Icon
55
+ // 的 svg(其 viewBox 会把内层 svg 缩放成极小值导致图标不可见)。
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
55
57
  ...iconConfig,
56
- // 与 antd 缺省值一致;显式传入以消除开发态 viewBox 告警(子节点是 Iconify 自带 viewBox 的 svg)
57
- viewBox: "0 0 1024 1024",
58
- className: (0, _classnames.default)([_indexModule.default.icon, className]),
59
- style: mergedStyle,
58
+ role: "img",
60
59
  ref: ref,
60
+ className: (0, _classnames.default)(["anticon", _indexModule.default.icon, className]),
61
+ style: mergedStyle,
61
62
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Icon, {
62
63
  ...iconProps,
63
64
  icon: icon,
64
65
  width: "1em",
65
- height: "1em",
66
- onLoad: () => {
67
- setTimeout(() => {
68
- if (ref.current) {
69
- const svg = ref.current.childNodes[0];
70
- const svg_i = svg.childNodes[0];
71
- const {
72
- height
73
- } = svg.getBoundingClientRect();
74
- const {
75
- height: height_i
76
- } = svg_i.getBoundingClientRect();
77
- const viewBox_i = svg_i.getAttribute("viewBox");
78
- const viewBox_i_height = viewBox_i?.split(" ")[3];
79
- if (Number(viewBox_i_height) <= 24) return;
80
- const y_i = Number(viewBox_i_height) - (Number(height) - Number(height_i));
81
- svg_i.setAttribute("viewBox", `0 0 ${viewBox_i?.split(" ")[2]} ${y_i.toFixed(0)}`);
82
- }
83
- }, 1);
84
- }
66
+ height: "1em"
85
67
  })
86
68
  });
87
69
  };
@@ -10,22 +10,22 @@
10
10
  width: 100%;
11
11
  height: 100%;
12
12
 
13
- .ant-input-number-wrapper {
13
+ :global(.ant-input-number-wrapper) {
14
14
  height: 100%;
15
15
  min-height: inherit;
16
16
 
17
- > .ant-input-number,
18
- > .ant-input-number-affix-wrapper {
17
+ > :global(.ant-input-number),
18
+ > :global(.ant-input-number-affix-wrapper) {
19
19
  height: 100%;
20
20
  min-height: inherit;
21
21
  }
22
22
 
23
- > .ant-input-number {
24
- > .ant-input-number-input-wrap {
23
+ > :global(.ant-input-number) {
24
+ > :global(.ant-input-number-input-wrap) {
25
25
  height: 100%;
26
26
  min-height: inherit;
27
27
 
28
- > .ant-input-number-input {
28
+ > :global(.ant-input-number-input) {
29
29
  height: 100%;
30
30
  min-height: inherit;
31
31
  }
@@ -33,11 +33,11 @@
33
33
  }
34
34
  }
35
35
 
36
- > .ant-input-number-input-wrap {
36
+ > :global(.ant-input-number-input-wrap) {
37
37
  height: 100%;
38
38
  min-height: inherit;
39
39
 
40
- > .ant-input-number-input {
40
+ > :global(.ant-input-number-input) {
41
41
  height: 100%;
42
42
  }
43
43
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  // 当存在 addonAfter 时,调整清除图标位置
69
- // Ant Design 的 addonAfter 会生成 .ant-input-number-group-addon
69
+ // Ant Design 的 addonAfter 会生成 :global(.ant-input-number-group-addon)
70
70
  // 清除图标需要向左偏移,避免与 addon 重叠
71
71
  // 使用 CSS 变量来动态设置 addon 宽度,默认值 60px 是合理的估算
72
72
  // 通过 JS 动态计算实际宽度并设置 CSS 变量来覆盖
@@ -2,12 +2,12 @@
2
2
  width: 100%;
3
3
  height: 100%;
4
4
 
5
- .ant-input-wrapper {
5
+ :global(.ant-input-wrapper) {
6
6
  height: 100%;
7
7
  min-height: inherit;
8
8
 
9
- > .ant-input,
10
- > .ant-input-affix-wrapper {
9
+ > :global(.ant-input),
10
+ > :global(.ant-input-affix-wrapper) {
11
11
  height: 100%;
12
12
  min-height: inherit;
13
13
  }
@@ -31,14 +31,14 @@
31
31
  .RangeInput {
32
32
  display: flex;
33
33
  align-items: center;
34
+ column-gap: 5px;
34
35
 
35
36
  width: 100%;
36
37
  height: 100%;
37
38
 
38
- border-radius: 6px;
39
- border: 1px solid var(--cf-border);
40
-
41
- transition: border-color 0.3s, box-shadow 0.3s;
39
+ transition:
40
+ border-color 0.3s,
41
+ box-shadow 0.3s;
42
42
 
43
43
  [class*="antdInput-"] {
44
44
  border: none !important;
@@ -2,18 +2,18 @@
2
2
  width: 100%;
3
3
  height: 100%;
4
4
 
5
- .ant-input-wrapper {
5
+ :global(.ant-input-wrapper) {
6
6
  height: 100%;
7
7
  min-height: inherit;
8
8
 
9
- > .ant-input,
10
- > .ant-input-affix-wrapper {
9
+ > :global(.ant-input),
10
+ > :global(.ant-input-affix-wrapper) {
11
11
  height: 100%;
12
12
  min-height: inherit;
13
13
  }
14
14
 
15
- > .ant-input-group-addon {
16
- > .ant-btn {
15
+ > :global(.ant-input-group-addon) {
16
+ > :global(.ant-btn) {
17
17
  height: 100%;
18
18
  min-height: inherit;
19
19
  }
@@ -61,7 +61,7 @@
61
61
 
62
62
  background-color: transparent !important;
63
63
 
64
- &.ant-input-textarea-affix-wrapper {
64
+ &:global(.ant-input-textarea-affix-wrapper) {
65
65
  position: relative;
66
66
 
67
67
  padding: 0px;
@@ -76,13 +76,13 @@
76
76
  font-family: inherit;
77
77
  }
78
78
 
79
- .ant-input-suffix {
79
+ :global(.ant-input-suffix) {
80
80
  position: absolute;
81
81
  top: 50%;
82
82
  right: 10px;
83
83
  transform: translateY(-50%);
84
84
 
85
- .ant-input-data-count {
85
+ :global(.ant-input-data-count) {
86
86
  position: relative;
87
87
  bottom: auto;
88
88
 
@@ -90,7 +90,7 @@
90
90
  font-size: 14px;
91
91
  }
92
92
 
93
- .ant-input-clear-icon {
93
+ :global(.ant-input-clear-icon) {
94
94
  position: relative;
95
95
 
96
96
  inset-inline-end: 0;
@@ -121,7 +121,7 @@
121
121
 
122
122
  box-shadow: 0 0 0 2px rgba(255, 38, 5, 0.06);
123
123
 
124
- .ant-input-status-error {
124
+ :global(.ant-input-status-error) {
125
125
  border: none !important;
126
126
 
127
127
  box-shadow: none !important;