@zat-design/sisyphus-react 3.2.2 → 3.3.0

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 (170) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +82 -37
  3. package/es/ProAction/index.less +3 -0
  4. package/es/ProDownload/index.js +9 -6
  5. package/es/ProDownload/style/index.less +5 -2
  6. package/es/ProDrawerForm/index.js +1 -15
  7. package/es/ProDrawerForm/style/index.less +76 -73
  8. package/es/ProEditLabel/style/index.less +12 -9
  9. package/es/ProEditTable/index.js +8 -4
  10. package/es/ProEditTable/style/index.less +57 -47
  11. package/es/ProEditTable/utils/config.d.ts +1 -1
  12. package/es/ProEditTable/utils/config.js +3 -3
  13. package/es/ProEnum/style/index.less +3 -0
  14. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  15. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  16. package/es/ProForm/components/base/TextArea/index.less +4 -3
  17. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  18. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  19. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  20. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  21. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  22. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  23. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  24. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  25. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  26. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  27. package/es/ProForm/components/render/RenderFields.js +4 -5
  28. package/es/ProForm/style/index.less +46 -44
  29. package/es/ProIcon/style/index.less +4 -1
  30. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  31. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  32. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  33. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  34. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  35. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  36. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  37. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  38. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  39. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  40. package/es/ProLayout/style/index.less +10 -7
  41. package/es/ProSelect/index.less +3 -0
  42. package/es/ProStep/style/index.less +3 -0
  43. package/es/ProTable/index.js +15 -7
  44. package/es/ProTable/style/index.less +76 -54
  45. package/es/ProTable/utils.d.ts +1 -1
  46. package/es/ProTable/utils.js +38 -19
  47. package/es/ProTabs/style/index.less +25 -23
  48. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  49. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  50. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  51. package/es/ProThemeTools/index.d.ts +1 -1
  52. package/es/ProThemeTools/index.js +7 -2
  53. package/es/ProThemeTools/propsType.d.ts +4 -0
  54. package/es/ProThemeTools/style/index.less +6 -3
  55. package/es/ProThemeTools/utils/index.d.ts +1 -1
  56. package/es/ProThemeTools/utils/index.js +2 -1
  57. package/es/ProTooltip/style/index.less +3 -0
  58. package/es/ProTree/components/CloseIcon.js +2 -4
  59. package/es/ProTree/components/ProTree.js +27 -11
  60. package/es/ProTree/components/Tree.js +1 -1
  61. package/es/ProTree/propsType.d.ts +2 -2
  62. package/es/ProTree/style/index.less +29 -26
  63. package/es/ProTree/utils.d.ts +6 -0
  64. package/es/ProTree/utils.js +11 -0
  65. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  66. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  67. package/es/ProTreeModal/components/Trigger.js +79 -19
  68. package/es/ProTreeModal/index.js +38 -6
  69. package/es/ProTreeModal/propsType.d.ts +5 -2
  70. package/es/ProTreeModal/style/index.less +11 -8
  71. package/es/ProTreeSelect/index.js +6 -4
  72. package/es/ProTreeSelect/propsType.d.ts +2 -0
  73. package/es/ProTreeSelect/style/index.less +25 -22
  74. package/es/ProUpload/components/DragRender.js +7 -4
  75. package/es/ProUpload/components/ImageRender.js +5 -1
  76. package/es/ProUpload/index.js +11 -7
  77. package/es/ProUpload/style/index.less +13 -4
  78. package/es/ProViewer/index.js +3 -1
  79. package/es/ProViewer/style/index.less +6 -3
  80. package/es/locale/en_US.d.ts +4 -0
  81. package/es/locale/en_US.js +5 -1
  82. package/es/locale/zh_CN.d.ts +4 -0
  83. package/es/locale/zh_CN.js +6 -2
  84. package/es/style/core/compatible.less +6 -6
  85. package/es/style/theme/antd.less +272 -253
  86. package/lib/ProAction/index.less +3 -0
  87. package/lib/ProDownload/index.js +9 -6
  88. package/lib/ProDownload/style/index.less +5 -2
  89. package/lib/ProDrawerForm/index.js +0 -14
  90. package/lib/ProDrawerForm/style/index.less +76 -73
  91. package/lib/ProEditLabel/style/index.less +12 -9
  92. package/lib/ProEditTable/index.js +6 -2
  93. package/lib/ProEditTable/style/index.less +57 -47
  94. package/lib/ProEditTable/utils/config.d.ts +1 -1
  95. package/lib/ProEditTable/utils/config.js +3 -3
  96. package/lib/ProEnum/style/index.less +3 -0
  97. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  98. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  99. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  100. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  101. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  102. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  103. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  104. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  105. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  106. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  107. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  108. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  109. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  110. package/lib/ProForm/components/render/RenderFields.js +4 -5
  111. package/lib/ProForm/style/index.less +46 -44
  112. package/lib/ProIcon/style/index.less +4 -1
  113. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  114. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  115. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  116. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  117. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  118. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  119. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  120. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  121. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  122. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  123. package/lib/ProLayout/style/index.less +10 -7
  124. package/lib/ProSelect/index.less +3 -0
  125. package/lib/ProStep/style/index.less +3 -0
  126. package/lib/ProTable/index.js +14 -6
  127. package/lib/ProTable/style/index.less +76 -54
  128. package/lib/ProTable/utils.d.ts +1 -1
  129. package/lib/ProTable/utils.js +38 -19
  130. package/lib/ProTabs/style/index.less +25 -23
  131. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  132. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  133. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  134. package/lib/ProThemeTools/index.d.ts +1 -1
  135. package/lib/ProThemeTools/index.js +7 -2
  136. package/lib/ProThemeTools/propsType.d.ts +4 -0
  137. package/lib/ProThemeTools/style/index.less +6 -3
  138. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  139. package/lib/ProThemeTools/utils/index.js +2 -1
  140. package/lib/ProTooltip/style/index.less +3 -0
  141. package/lib/ProTree/components/CloseIcon.js +2 -4
  142. package/lib/ProTree/components/ProTree.js +26 -10
  143. package/lib/ProTree/components/Tree.js +1 -1
  144. package/lib/ProTree/propsType.d.ts +2 -2
  145. package/lib/ProTree/style/index.less +29 -26
  146. package/lib/ProTree/utils.d.ts +6 -0
  147. package/lib/ProTree/utils.js +12 -0
  148. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  149. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  150. package/lib/ProTreeModal/components/Trigger.js +74 -18
  151. package/lib/ProTreeModal/index.js +38 -6
  152. package/lib/ProTreeModal/propsType.d.ts +5 -2
  153. package/lib/ProTreeModal/style/index.less +11 -8
  154. package/lib/ProTreeSelect/index.js +6 -4
  155. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  156. package/lib/ProTreeSelect/style/index.less +25 -22
  157. package/lib/ProUpload/components/DragRender.js +7 -4
  158. package/lib/ProUpload/components/ImageRender.js +5 -1
  159. package/lib/ProUpload/index.js +11 -7
  160. package/lib/ProUpload/style/index.less +13 -4
  161. package/lib/ProViewer/index.js +4 -3
  162. package/lib/ProViewer/style/index.less +6 -3
  163. package/lib/locale/en_US.d.ts +4 -0
  164. package/lib/locale/en_US.js +5 -1
  165. package/lib/locale/zh_CN.d.ts +4 -0
  166. package/lib/locale/zh_CN.js +6 -2
  167. package/lib/style/core/compatible.less +6 -6
  168. package/lib/style/theme/antd.less +272 -253
  169. package/package.json +1 -1
  170. package/typings.d.ts +0 -6
@@ -1,3 +1,5 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  @import '../components/base/SwitchCheckbox/style/index.less';
2
4
  @import '../components/base/TextArea/index.less';
3
5
  @import '../components/combination/FormList/style/index.less';
@@ -11,8 +13,8 @@
11
13
  @import '../components/old/EnumSelect/style/index.less';
12
14
 
13
15
  .pro-form {
14
- &.ant-form-vertical {
15
- .ant-form-item .ant-form-item-label {
16
+ &.@{ant-prefix}-form-vertical {
17
+ .@{ant-prefix}-form-item .@{ant-prefix}-form-item-label {
16
18
  flex: none !important;
17
19
  }
18
20
 
@@ -23,66 +25,66 @@
23
25
  margin-bottom: 0;
24
26
  padding-top: 6px;
25
27
 
26
- .ant-space-align-center {
28
+ .@{ant-prefix}-space-align-center {
27
29
  align-items: normal;
28
30
  }
29
31
  }
30
32
  }
31
33
 
32
- &.ant-form {
34
+ &.@{ant-prefix}-form {
33
35
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
34
36
  }
35
37
 
36
38
  .pro-collapse-level2 {
37
- .ant-collapse-item {
39
+ .@{ant-prefix}-collapse-item {
38
40
  margin-bottom: 0 !important;
39
41
  }
40
42
  }
41
43
 
42
- .ant-form-item-control-input {
44
+ .@{ant-prefix}-form-item-control-input {
43
45
  flex-grow: 1;
44
46
  max-width: 100%;
45
47
  }
46
48
 
47
- span.ant-input-clear-icon {
49
+ span.@{ant-prefix}-input-clear-icon {
48
50
  display: unset;
49
51
  visibility: hidden;
50
52
  }
51
53
 
52
- .ant-input-affix-wrapper:hover span.ant-input-clear-icon {
54
+ .@{ant-prefix}-input-affix-wrapper:hover span.@{ant-prefix}-input-clear-icon {
53
55
  display: unset;
54
56
  visibility: unset;
55
57
  }
56
58
 
57
- .ant-input-affix-wrapper:hover span.ant-input-clear-icon[class~='ant-input-clear-icon-hidden'] {
59
+ .@{ant-prefix}-input-affix-wrapper:hover span.@{ant-prefix}-input-clear-icon[class~='ant-input-clear-icon-hidden'] {
58
60
  display: unset;
59
61
  visibility: hidden;
60
62
  }
61
63
 
62
64
  &.pro-form-view {
63
- .ant-form-item-label {
65
+ .@{ant-prefix}-form-item-label {
64
66
  label {
65
67
  color: var(--zaui-aide-text, #939599);
66
68
  }
67
69
  }
68
70
 
69
- .ant-form-item {
71
+ .@{ant-prefix}-form-item {
70
72
  margin-bottom: 0 !important;
71
73
  }
72
74
 
73
- .ant-form-item {
74
- .ant-tree-icon-hide input {
75
+ .@{ant-prefix}-form-item {
76
+ .@{ant-prefix}-tree-icon-hide input {
75
77
  display: none !important;
76
78
  }
77
79
  }
78
80
  }
79
81
 
80
- .ant-picker-range {
82
+ .@{ant-prefix}-picker-range {
81
83
  width: 100%;
82
84
  }
83
85
 
84
86
  .pro-form-list-line {
85
- .ant-row {
87
+ .@{ant-prefix}-row {
86
88
  width: 100%;
87
89
  }
88
90
  }
@@ -101,20 +103,20 @@
101
103
  }
102
104
  }
103
105
 
104
- .ant-form-item {
106
+ .@{ant-prefix}-form-item {
105
107
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
106
108
 
107
109
  &.pro-form-item-width-auto {
108
- .ant-form-item-control-input {
110
+ .@{ant-prefix}-form-item-control-input {
109
111
  flex-grow: inherit;
110
112
  }
111
113
 
112
- .ant-form-item-control-input-content {
114
+ .@{ant-prefix}-form-item-control-input-content {
113
115
  flex: initial;
114
116
  }
115
117
  }
116
118
 
117
- .ant-form-item-tooltip {
119
+ .@{ant-prefix}-form-item-tooltip {
118
120
  svg {
119
121
  width: 14px;
120
122
  height: 14px;
@@ -125,53 +127,53 @@
125
127
 
126
128
  // 比较原始值场景下 不同时候的样式
127
129
  &.pro-form-item-changed {
128
- span.ant-input-affix-wrapper,
129
- .ant-select-selector,
130
- .ant-picker {
130
+ span.@{ant-prefix}-input-affix-wrapper,
131
+ .@{ant-prefix}-select-selector,
132
+ .@{ant-prefix}-picker {
131
133
  background: @zaui-contract-bg !important;
132
134
 
133
135
  input {
134
136
  background: @zaui-contract-bg;
135
137
  }
136
- .ant-select-selection-placeholder {
138
+ .@{ant-prefix}-select-selection-placeholder {
137
139
  z-index: 9;
138
140
  }
139
141
  }
140
142
 
141
- .ant-form-item-control-input-content > span {
143
+ .@{ant-prefix}-form-item-control-input-content > span {
142
144
  background: @zaui-contract-bg;
143
145
  padding: 4px 8px;
144
146
  border-radius: 4px;
145
147
  }
146
148
  }
147
149
 
148
- .ant-row {
150
+ .@{ant-prefix}-row {
149
151
  width: 100%;
150
152
  }
151
153
 
152
- .ant-col.ant-col-0 {
154
+ .@{ant-prefix}-col.@{ant-prefix}-col-0 {
153
155
  display: none;
154
156
  }
155
157
 
156
- .ant-form-item-explain {
158
+ .@{ant-prefix}-form-item-explain {
157
159
  height: auto;
158
160
 
159
- .ant-form-item-explain-error {
161
+ .@{ant-prefix}-form-item-explain-error {
160
162
  font-size: var(--zaui-font-size, 14px);
161
163
  }
162
164
  }
163
165
 
164
- .ant-input-number {
166
+ .@{ant-prefix}-input-number {
165
167
  width: 100%;
166
168
  }
167
169
 
168
170
  .pro-number-range {
169
- .ant-input-number {
171
+ .@{ant-prefix}-input-number {
170
172
  width: calc(50% - 20px);
171
173
  }
172
174
 
173
175
  .range-right {
174
- .ant-input-number {
176
+ .@{ant-prefix}-input-number {
175
177
  border-left: none;
176
178
  }
177
179
 
@@ -185,11 +187,11 @@
185
187
  }
186
188
  }
187
189
 
188
- .ant-form-item-hidden {
190
+ .@{ant-prefix}-form-item-hidden {
189
191
  display: none;
190
192
  }
191
193
 
192
- .ant-form-item-label {
194
+ .@{ant-prefix}-form-item-label {
193
195
  > label {
194
196
  white-space: pre-wrap;
195
197
  }
@@ -199,7 +201,7 @@
199
201
  margin-left: @zaui-space-size-sm;
200
202
  }
201
203
 
202
- .ant-form-item-has-error {
204
+ .@{ant-prefix}-form-item-has-error {
203
205
  .group-separator {
204
206
  color: var(--ant-error-color);
205
207
  border-color: var(--ant-error-color);
@@ -229,16 +231,16 @@
229
231
  border-left-width: 1px;
230
232
  }
231
233
 
232
- & .ant-input-rtl.site-input-right {
234
+ & .@{ant-prefix}-input-rtl.site-input-right {
233
235
  border-right-width: 0;
234
236
  }
235
237
 
236
- & .ant-input-rtl.site-input-right:hover,
237
- & .ant-input-rtl.site-input-right:focus {
238
+ & .@{ant-prefix}-input-rtl.site-input-right:hover,
239
+ & .@{ant-prefix}-input-rtl.site-input-right:focus {
238
240
  border-right-width: 1px;
239
241
  }
240
242
 
241
- .ant-form-item {
243
+ .@{ant-prefix}-form-item {
242
244
  margin-bottom: 0;
243
245
  }
244
246
 
@@ -248,18 +250,18 @@
248
250
  }
249
251
 
250
252
  .site-input-left {
251
- .ant-input-number {
253
+ .@{ant-prefix}-input-number {
252
254
  border-right: none;
253
255
  }
254
256
  }
255
257
 
256
258
  .site-input-right {
257
- .ant-input-number {
259
+ .@{ant-prefix}-input-number {
258
260
  border-left: none;
259
261
  }
260
262
  }
261
263
 
262
- &.ant-input-group.ant-input-group-compact > *:not(:last-child) {
264
+ &.@{ant-prefix}-input-group.@{ant-prefix}-input-group-compact > *:not(:last-child) {
263
265
  margin-right: 0;
264
266
  }
265
267
 
@@ -267,7 +269,7 @@
267
269
  border-top-right-radius: 0 !important;
268
270
  border-bottom-right-radius: 0 !important;
269
271
 
270
- > .ant-select-selector {
272
+ > .@{ant-prefix}-select-selector {
271
273
  border-top-right-radius: 0 !important;
272
274
  border-bottom-right-radius: 0 !important;
273
275
  }
@@ -277,14 +279,14 @@
277
279
  border-top-left-radius: 0 !important;
278
280
  border-bottom-left-radius: 0 !important;
279
281
 
280
- > .ant-select-selector {
282
+ > .@{ant-prefix}-select-selector {
281
283
  border-top-left-radius: 0 !important;
282
284
  border-bottom-left-radius: 0 !important;
283
285
  }
284
286
  }
285
287
  }
286
288
 
287
- .ant-input-group.ant-input-group-compact > * {
289
+ .@{ant-prefix}-input-group.@{ant-prefix}-input-group-compact > * {
288
290
  float: none;
289
291
  vertical-align: top;
290
292
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-icon {
2
5
  cursor: pointer;
3
6
 
@@ -17,7 +20,7 @@
17
20
  display: inline-block;
18
21
  }
19
22
 
20
- &.ant-btn-icon-only {
23
+ &.@{ant-prefix}-btn-icon-only {
21
24
  width : auto;
22
25
  height : auto;
23
26
  padding: 0;
@@ -15,7 +15,7 @@
15
15
  box-shadow : 0px 1px 2px 0px rgba(0, 55, 93, 0.1) !important;
16
16
 
17
17
  .pro-layout-header-actions {
18
- .ant-avatar {
18
+ .@{ant-prefix}-avatar {
19
19
  background: var(--zaui-brand, #006aff);
20
20
  }
21
21
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-layout-menu-fold-list {
2
5
  padding-top: 4px;
3
6
  overflow-y : auto;
@@ -73,28 +76,28 @@
73
76
  top: 80px !important
74
77
  }
75
78
 
76
- .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.ant-popover-placement-rightBottom,
77
- .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.ant-popover-placement-rightTop {
79
+ .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightBottom,
80
+ .pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightTop {
78
81
  left: 220px !important
79
82
  }
80
83
 
81
- .pro-layout-menu-tooltip.ant-popover-placement-rightBottom,
82
- .pro-layout-menu-tooltip.ant-popover-placement-rightTop {
84
+ .pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightBottom,
85
+ .pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightTop {
83
86
  position : fixed;
84
87
  z-index : 1001;
85
88
  left : 49px !important;
86
89
  padding-left: 0
87
90
  }
88
91
 
89
- .pro-layout-menu-tooltip .ant-popover-inner-content {
92
+ .pro-layout-menu-tooltip .@{ant-prefix}-popover-inner-content {
90
93
  padding: 0
91
94
  }
92
95
 
93
- .pro-layout-menu-tooltip .ant-popover-content>.ant-popover-arrow {
96
+ .pro-layout-menu-tooltip .@{ant-prefix}-popover-content>.@{ant-prefix}-popover-arrow {
94
97
  display: none
95
98
  }
96
99
 
97
- .pro-layout-menu-tooltip .ant-popover-content .ant-popover-inner {
100
+ .pro-layout-menu-tooltip .@{ant-prefix}-popover-content .@{ant-prefix}-popover-inner {
98
101
  padding : 0;
99
102
  box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
100
103
  }
@@ -1,27 +1,30 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-layout-open-menu {
2
5
  color: #fff;
3
6
 
4
- .ant-menu-root {
7
+ .@{ant-prefix}-menu-root {
5
8
  overflow-y: auto !important;
6
9
 
7
- &>.ant-menu-submenu>.ant-menu-submenu-title,
8
- &>.ant-menu-item.ant-menu-item-only-child {
10
+ &>.@{ant-prefix}-menu-submenu>.@{ant-prefix}-menu-submenu-title,
11
+ &>.@{ant-prefix}-menu-item.@{ant-prefix}-menu-item-only-child {
9
12
  padding-left: 16px !important;
10
13
  }
11
14
 
12
- &>.ant-menu-submenu {
13
- .ant-menu-sub {
15
+ &>.@{ant-prefix}-menu-submenu {
16
+ .@{ant-prefix}-menu-sub {
14
17
  background: #1A202D;
15
18
  }
16
19
 
17
- &>.ant-menu-sub>.ant-menu-submenu>.ant-menu-submenu-title,
18
- &>.ant-menu-item-only-child,
19
- &>.ant-menu-sub>.ant-menu-item-only-child {
20
+ &>.@{ant-prefix}-menu-sub>.@{ant-prefix}-menu-submenu>.@{ant-prefix}-menu-submenu-title,
21
+ &>.@{ant-prefix}-menu-item-only-child,
22
+ &>.@{ant-prefix}-menu-sub>.@{ant-prefix}-menu-item-only-child {
20
23
  padding-left: 16px !important;
21
24
  }
22
25
  }
23
26
 
24
- &>.ant-menu-item-only-child {
27
+ &>.@{ant-prefix}-menu-item-only-child {
25
28
  min-height : 48px;
26
29
  padding-top : 12px;
27
30
  padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
@@ -35,7 +38,7 @@
35
38
  }
36
39
  }
37
40
 
38
- .ant-menu-item {
41
+ .@{ant-prefix}-menu-item {
39
42
  padding-left: 30px !important;
40
43
 
41
44
  &::after {
@@ -45,14 +48,14 @@
45
48
 
46
49
  }
47
50
 
48
- .ant-menu-inline {
49
- .ant-menu-submenu-title {
51
+ .@{ant-prefix}-menu-inline {
52
+ .@{ant-prefix}-menu-submenu-title {
50
53
  margin: 0;
51
54
  }
52
55
  }
53
56
 
54
- .ant-menu-item,
55
- .ant-menu-submenu-title {
57
+ .@{ant-prefix}-menu-item,
58
+ .@{ant-prefix}-menu-submenu-title {
56
59
  &:hover {
57
60
  background: var(--ant-primary-8, #003eb3);
58
61
 
@@ -64,11 +67,11 @@
64
67
  }
65
68
 
66
69
 
67
- .ant-menu.ant-menu-dark {
70
+ .@{ant-prefix}-menu.@{ant-prefix}-menu-dark {
68
71
  background: #1A202D;
69
72
  overflow-x: hidden;
70
73
 
71
- .ant-menu-item-only-child {
74
+ .@{ant-prefix}-menu-item-only-child {
72
75
  &:hover {
73
76
  background: var(--ant-primary-8, #003eb3);
74
77
 
@@ -79,7 +82,7 @@
79
82
  }
80
83
  }
81
84
 
82
- .ant-menu-item-selected {
85
+ .@{ant-prefix}-menu-item-selected {
83
86
  background: var(--zaui-brand, #006aff) !important;
84
87
 
85
88
  h2 {
@@ -87,8 +90,8 @@
87
90
  }
88
91
  }
89
92
 
90
- .ant-menu-sub.ant-menu-inline>.ant-menu-item,
91
- .ant-menu-submenu-title {
93
+ .@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline>.@{ant-prefix}-menu-item,
94
+ .@{ant-prefix}-menu-submenu-title {
92
95
  white-space: pre-wrap;
93
96
  line-height: initial !important;
94
97
  height : auto !important;
@@ -97,7 +100,7 @@
97
100
  min-height : 48px;
98
101
  }
99
102
 
100
- .ant-menu-title-content {
103
+ .@{ant-prefix}-menu-title-content {
101
104
 
102
105
 
103
106
  div {
@@ -135,19 +138,19 @@
135
138
  transition: all 0.1s ease-in;
136
139
  }
137
140
 
138
- .ant-menu-submenu-open {
141
+ .@{ant-prefix}-menu-submenu-open {
139
142
  .anticon-caret-down {
140
143
  transform: rotateZ(180deg);
141
144
  color : #fff;
142
145
  }
143
146
 
144
- .ant-menu-submenu-inline {
147
+ .@{ant-prefix}-menu-submenu-inline {
145
148
  .anticon-caret-down {
146
149
  transform: rotateZ(0deg);
147
150
  color : #CACACA;
148
151
  }
149
152
 
150
- &.ant-menu-submenu-open {
153
+ &.@{ant-prefix}-menu-submenu-open {
151
154
  .anticon-caret-down {
152
155
  transform: rotateZ(180deg);
153
156
  color : #fff;
@@ -156,13 +159,13 @@
156
159
  }
157
160
  }
158
161
 
159
- .ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon {
162
+ .@{ant-prefix}-menu-submenu:hover>.@{ant-prefix}-menu-submenu-title>.@{ant-prefix}-menu-submenu-expand-icon {
160
163
  color: #fff;
161
164
  }
162
165
 
163
- .ant-menu-submenu-selected {
164
- &>.ant-menu-submenu-title {
165
- .ant-menu-title-content div {
166
+ .@{ant-prefix}-menu-submenu-selected {
167
+ &>.@{ant-prefix}-menu-submenu-title {
168
+ .@{ant-prefix}-menu-title-content div {
166
169
  .pro-layout-icon {
167
170
  color: #fff;
168
171
  }
@@ -175,7 +178,7 @@
175
178
 
176
179
  }
177
180
 
178
- .ant-menu-item-only-child .ant-menu-title-content div {
181
+ .@{ant-prefix}-menu-item-only-child .@{ant-prefix}-menu-title-content div {
179
182
  .pro-layout-icon {
180
183
  color: #CACACA;
181
184
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-layout-sider-menu {
2
5
  width : 220px;
3
6
  background: #fff;
@@ -17,7 +20,7 @@
17
20
  &.pro-layout-sider-menu-list {
18
21
  overflow-y: auto;
19
22
 
20
- .ant-menu-item-selected {
23
+ .@{ant-prefix}-menu-item-selected {
21
24
  background-color: var(--ant-primary-1, #e6f4ff) !important;
22
25
 
23
26
  h2 {
@@ -29,8 +32,8 @@
29
32
  }
30
33
  }
31
34
 
32
- .ant-menu {
33
- .ant-menu-title-content {
35
+ .@{ant-prefix}-menu {
36
+ .@{ant-prefix}-menu-title-content {
34
37
  div h2 {
35
38
  color : var(--zaui-text);
36
39
  padding: 0;
@@ -44,7 +47,7 @@
44
47
  }
45
48
  }
46
49
 
47
- .ant-menu-title-content div .pro-layout-icon {
50
+ .@{ant-prefix}-menu-title-content div .pro-layout-icon {
48
51
  margin-right: 12px;
49
52
 
50
53
  &.pro-layout-icon-empty {
@@ -61,7 +64,7 @@
61
64
  color: var(--zaui-text, #343434) !important;
62
65
  }
63
66
 
64
- &.ant-menu-sub {
67
+ &.@{ant-prefix}-menu-sub {
65
68
  overflow : hidden;
66
69
  background: #fff;
67
70
  }
@@ -69,13 +72,13 @@
69
72
  overflow-x: hidden;
70
73
  overflow-y: auto;
71
74
 
72
- .ant-menu-submenu-title:hover,
73
- .ant-menu-item:hover {
75
+ .@{ant-prefix}-menu-submenu-title:hover,
76
+ .@{ant-prefix}-menu-item:hover {
74
77
  background-color: #f2f2f2;
75
78
  color : #fff;
76
79
  }
77
80
 
78
- .ant-menu-item {
81
+ .@{ant-prefix}-menu-item {
79
82
  margin: 0;
80
83
  }
81
84
 
@@ -83,9 +86,9 @@
83
86
  color: #909090;
84
87
  }
85
88
 
86
- .ant-menu-submenu-title,
87
- &.ant-menu-root>.ant-menu-item-only-child,
88
- &.ant-menu-sub.ant-menu-inline>.ant-menu-item {
89
+ .@{ant-prefix}-menu-submenu-title,
90
+ &.@{ant-prefix}-menu-root>.@{ant-prefix}-menu-item-only-child,
91
+ &.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline>.@{ant-prefix}-menu-item {
89
92
  padding-top : 10px;
90
93
  padding-bottom: 10px;
91
94
  min-height : 40px;
@@ -1,3 +1,5 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  @import "../FoldMenu/style/index.less";
2
4
  @import "../OpenMenu/style/index.less";
3
5
  @import "../SideMenu/style/index.less";
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  /** 告知区 */
2
5
  .pro-layout-header-notice {
3
6
  position : fixed;