@hsu-react/ui 0.0.1 → 0.0.2

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 (147) hide show
  1. package/es/components/ChainGraph/index.module.less +1 -1
  2. package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  3. package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  4. package/es/components/Chat/ChatInput/index.module.less +2 -2
  5. package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  6. package/es/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  7. package/es/components/Checkbox/index.module.less +13 -13
  8. package/es/components/CodeMirror/index.module.less +4 -4
  9. package/es/components/DatePicker/RangePicker/index.module.less +1 -1
  10. package/es/components/DatePicker/StepPicker/index.module.less +1 -1
  11. package/es/components/DatePicker/index.module.less +1 -1
  12. package/es/components/Form/DrawerForm/index.module.less +2 -2
  13. package/es/components/FormItem/FormRadio/index.module.less +9 -9
  14. package/es/components/FormItem/FormSegmented/index.module.less +2 -2
  15. package/es/components/FormItem/FormUpload/index.module.less +4 -4
  16. package/es/components/FormItem/ItemContainer/index.module.less +22 -22
  17. package/es/components/Icon/index.js +9 -24
  18. package/es/components/Input/Number/index.module.less +9 -9
  19. package/es/components/Input/Password/index.module.less +3 -3
  20. package/es/components/Input/Search/index.module.less +5 -5
  21. package/es/components/Input/TextArea/index.module.less +5 -5
  22. package/es/components/Input/index.module.less +4 -4
  23. package/es/components/Modal/index.module.less +2 -2
  24. package/es/components/Operate/index.module.less +2 -2
  25. package/es/components/Panel/IframePanel/index.module.less +1 -1
  26. package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  27. package/es/components/Search/index.module.less +2 -2
  28. package/es/components/Select/AutoCompleteSelect/index.module.less +35 -35
  29. package/es/components/Select/IconSelect/index.module.less +3 -3
  30. package/es/components/Select/TreeSelect/index.module.less +17 -17
  31. package/es/components/Select/index.module.less +34 -34
  32. package/es/components/Slider/index.module.less +4 -4
  33. package/es/components/Spreadsheet/index.module.less +4 -4
  34. package/es/components/Table/_components/Pagination/index.module.less +23 -23
  35. package/es/components/Table/index.module.less +61 -61
  36. package/es/components/Tree/index.module.less +11 -11
  37. package/es/components/Upload/index.module.less +3 -3
  38. package/es/styles/antd-overload.less +1 -1
  39. package/lib/components/ChainGraph/index.module.less +1 -1
  40. package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  41. package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  42. package/lib/components/Chat/ChatInput/index.module.less +2 -2
  43. package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  44. package/lib/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  45. package/lib/components/Checkbox/index.module.less +13 -13
  46. package/lib/components/CodeMirror/index.module.less +4 -4
  47. package/lib/components/DatePicker/RangePicker/index.module.less +1 -1
  48. package/lib/components/DatePicker/StepPicker/index.module.less +1 -1
  49. package/lib/components/DatePicker/index.module.less +1 -1
  50. package/lib/components/Form/DrawerForm/index.module.less +2 -2
  51. package/lib/components/FormItem/FormRadio/index.module.less +9 -9
  52. package/lib/components/FormItem/FormSegmented/index.module.less +2 -2
  53. package/lib/components/FormItem/FormUpload/index.module.less +4 -4
  54. package/lib/components/FormItem/ItemContainer/index.module.less +22 -22
  55. package/lib/components/Icon/index.js +9 -27
  56. package/lib/components/Input/Number/index.module.less +9 -9
  57. package/lib/components/Input/Password/index.module.less +3 -3
  58. package/lib/components/Input/Search/index.module.less +5 -5
  59. package/lib/components/Input/TextArea/index.module.less +5 -5
  60. package/lib/components/Input/index.module.less +4 -4
  61. package/lib/components/Modal/index.module.less +2 -2
  62. package/lib/components/Operate/index.module.less +2 -2
  63. package/lib/components/Panel/IframePanel/index.module.less +1 -1
  64. package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  65. package/lib/components/Search/index.module.less +2 -2
  66. package/lib/components/Select/AutoCompleteSelect/index.module.less +35 -35
  67. package/lib/components/Select/IconSelect/index.module.less +3 -3
  68. package/lib/components/Select/TreeSelect/index.module.less +17 -17
  69. package/lib/components/Select/index.module.less +34 -34
  70. package/lib/components/Slider/index.module.less +4 -4
  71. package/lib/components/Spreadsheet/index.module.less +4 -4
  72. package/lib/components/Table/_components/Pagination/index.module.less +23 -23
  73. package/lib/components/Table/index.module.less +61 -61
  74. package/lib/components/Tree/index.module.less +11 -11
  75. package/lib/components/Upload/index.module.less +3 -3
  76. package/lib/styles/antd-overload.less +1 -1
  77. package/package.json +1 -1
  78. package/src/components/Button/index.md +2 -3
  79. package/src/components/ChainGraph/index.md +66 -1
  80. package/src/components/ChainGraph/index.module.less +1 -1
  81. package/src/components/Chart/index.md +78 -1
  82. package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
  83. package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
  84. package/src/components/Chat/ChatInput/index.module.less +2 -2
  85. package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
  86. package/src/components/Chat/index.md +97 -1
  87. package/src/components/Checkbox/CheckboxGroup/index.module.less +16 -16
  88. package/src/components/Checkbox/index.md +53 -1
  89. package/src/components/Checkbox/index.module.less +13 -13
  90. package/src/components/CodeMirror/index.md +41 -1
  91. package/src/components/CodeMirror/index.module.less +4 -4
  92. package/src/components/DatePicker/RangePicker/index.module.less +1 -1
  93. package/src/components/DatePicker/StepPicker/index.module.less +1 -1
  94. package/src/components/DatePicker/index.md +43 -1
  95. package/src/components/DatePicker/index.module.less +1 -1
  96. package/src/components/Descriptions/index.md +45 -1
  97. package/src/components/Editor/index.md +40 -1
  98. package/src/components/FileCol/index.md +24 -1
  99. package/src/components/FilePreview/index.md +45 -1
  100. package/src/components/FlexFill/index.md +46 -1
  101. package/src/components/Form/DrawerForm/index.module.less +2 -2
  102. package/src/components/Form/index.md +92 -1
  103. package/src/components/FormItem/FormRadio/index.module.less +9 -9
  104. package/src/components/FormItem/FormSegmented/index.module.less +2 -2
  105. package/src/components/FormItem/FormUpload/index.module.less +4 -4
  106. package/src/components/FormItem/ItemContainer/index.module.less +22 -22
  107. package/src/components/FormItem/index.md +459 -1
  108. package/src/components/Icon/index.md +21 -3
  109. package/src/components/Icon/index.tsx +9 -37
  110. package/src/components/Input/Number/index.module.less +9 -9
  111. package/src/components/Input/Password/index.module.less +3 -3
  112. package/src/components/Input/Search/index.module.less +5 -5
  113. package/src/components/Input/TextArea/index.module.less +5 -5
  114. package/src/components/Input/index.md +35 -1
  115. package/src/components/Input/index.module.less +4 -4
  116. package/src/components/Markdown/index.md +71 -1
  117. package/src/components/Modal/index.md +43 -1
  118. package/src/components/Modal/index.module.less +2 -2
  119. package/src/components/Operate/index.md +43 -1
  120. package/src/components/Operate/index.module.less +2 -2
  121. package/src/components/Panel/IframePanel/index.module.less +1 -1
  122. package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
  123. package/src/components/Panel/index.md +146 -1
  124. package/src/components/Search/index.md +73 -1
  125. package/src/components/Search/index.module.less +2 -2
  126. package/src/components/SecondConf/index.md +39 -1
  127. package/src/components/Select/AutoCompleteSelect/index.module.less +35 -35
  128. package/src/components/Select/IconSelect/index.module.less +3 -3
  129. package/src/components/Select/TreeSelect/index.module.less +17 -17
  130. package/src/components/Select/index.md +47 -1
  131. package/src/components/Select/index.module.less +34 -34
  132. package/src/components/Slider/index.md +29 -1
  133. package/src/components/Slider/index.module.less +4 -4
  134. package/src/components/Spreadsheet/index.md +42 -1
  135. package/src/components/Spreadsheet/index.module.less +4 -4
  136. package/src/components/Switch/index.md +33 -1
  137. package/src/components/TabBar/index.md +53 -1
  138. package/src/components/Table/_components/Pagination/index.module.less +23 -23
  139. package/src/components/Table/index.md +60 -1
  140. package/src/components/Table/index.module.less +61 -61
  141. package/src/components/Tags/index.md +23 -1
  142. package/src/components/TextEllipsis/index.md +29 -1
  143. package/src/components/Tree/index.md +66 -1
  144. package/src/components/Tree/index.module.less +11 -11
  145. package/src/components/Upload/index.md +72 -1
  146. package/src/components/Upload/index.module.less +3 -3
  147. package/src/styles/antd-overload.less +1 -1
@@ -2,7 +2,7 @@
2
2
  width: 100%;
3
3
  height: 100%;
4
4
 
5
- .ant-spin-container {
5
+ :global(.ant-spin-container) {
6
6
  width: 100%;
7
7
  height: 100%;
8
8
  }
@@ -10,7 +10,7 @@
10
10
  border: none;
11
11
  border-radius: 4px;
12
12
 
13
- .ant-btn-icon {
13
+ :global(.ant-btn-icon) {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  justify-content: center;
@@ -4,7 +4,7 @@
4
4
 
5
5
  border-radius: 4px;
6
6
 
7
- .ant-btn-icon {
7
+ :global(.ant-btn-icon) {
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: center;
@@ -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;
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .answerBubble {
23
- .ant-bubble-dot {
23
+ :global(.ant-bubble-dot) {
24
24
  column-gap: var(--ant-margin-xxs);
25
25
  }
26
26
 
@@ -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
- &.ant-checkbox-checked {
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
- &.ant-checkbox-wrapper-disabled {
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
- &.ant-checkbox-checked {
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
- &.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
  }
@@ -20,7 +20,7 @@
20
20
  min-width: 80px;
21
21
  }
22
22
 
23
- .ant-picker {
23
+ :global(.ant-picker) {
24
24
  height: 100%;
25
25
  width: 100%;
26
26
 
@@ -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
  }
@@ -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
  }
@@ -8,7 +8,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import { Icon as Iconify } from "@iconify/react";
11
- import AntdIcon, * as AntdIcons from "@ant-design/icons";
11
+ import * as AntdIcons from "@ant-design/icons";
12
12
  import React, { useEffect, useRef } from "react";
13
13
  import classNames from "classnames";
14
14
  import styles from "./index.module.less";
@@ -46,33 +46,18 @@ var Icon = function Icon(props) {
46
46
  ref: ref
47
47
  }));
48
48
  }
49
- return /*#__PURE__*/_jsx(AntdIcon, _objectSpread(_objectSpread({}, iconConfig), {}, {
50
- // antd 缺省值一致;显式传入以消除开发态 viewBox 告警(子节点是 Iconify 自带 viewBox svg)
51
- viewBox: "0 0 1024 1024",
52
- className: classNames([styles.icon, className]),
53
- style: mergedStyle,
49
+
50
+ // iconify 图标:直接用 span 承载 Iconify 自带的 svg,避免把它嵌套进 antd Icon
51
+ // 的 svg(其 viewBox 会把内层 svg 缩放成极小值导致图标不可见)。
52
+ return /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread({}, iconConfig), {}, {
53
+ role: "img",
54
54
  ref: ref,
55
+ className: classNames(["anticon", styles.icon, className]),
56
+ style: mergedStyle,
55
57
  children: /*#__PURE__*/_jsx(Iconify, _objectSpread(_objectSpread({}, iconProps), {}, {
56
58
  icon: icon,
57
59
  width: "1em",
58
- height: "1em",
59
- onLoad: function onLoad() {
60
- setTimeout(function () {
61
- if (ref.current) {
62
- var svg = ref.current.childNodes[0];
63
- var svg_i = svg.childNodes[0];
64
- var _svg$getBoundingClien = svg.getBoundingClientRect(),
65
- height = _svg$getBoundingClien.height;
66
- var _svg_i$getBoundingCli = svg_i.getBoundingClientRect(),
67
- height_i = _svg_i$getBoundingCli.height;
68
- var viewBox_i = svg_i.getAttribute("viewBox");
69
- var viewBox_i_height = viewBox_i === null || viewBox_i === void 0 ? void 0 : viewBox_i.split(" ")[3];
70
- if (Number(viewBox_i_height) <= 24) return;
71
- var y_i = Number(viewBox_i_height) - (Number(height) - Number(height_i));
72
- svg_i.setAttribute("viewBox", "0 0 ".concat(viewBox_i === null || viewBox_i === void 0 ? void 0 : viewBox_i.split(" ")[2], " ").concat(y_i.toFixed(0)));
73
- }
74
- }, 1);
75
- }
60
+ height: "1em"
76
61
  }))
77
62
  }));
78
63
  };
@@ -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 变量来覆盖