@zat-design/sisyphus-react 3.2.2-beta.1 → 3.2.2-beta.11

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 (141) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +47 -5
  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/style/index.less +17 -14
  7. package/es/ProEditLabel/style/index.less +12 -9
  8. package/es/ProEditTable/index.js +8 -4
  9. package/es/ProEditTable/style/index.less +50 -42
  10. package/es/ProEditTable/utils/config.d.ts +1 -1
  11. package/es/ProEditTable/utils/config.js +3 -3
  12. package/es/ProEnum/style/index.less +3 -0
  13. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  14. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  15. package/es/ProForm/components/base/TextArea/index.less +4 -3
  16. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  17. package/es/ProForm/components/combination/Container/style/index.less +3 -3
  18. package/es/ProForm/components/combination/FormList/style/index.less +3 -3
  19. package/es/ProForm/components/combination/Group/style/index.less +15 -15
  20. package/es/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  21. package/es/ProForm/components/combination/ProCombination/style/index.less +2 -2
  22. package/es/ProForm/components/combination/ProModalSelect/style/index.less +29 -11
  23. package/es/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  24. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  25. package/es/ProForm/components/render/RenderFields.js +3 -3
  26. package/es/ProForm/style/index.less +46 -44
  27. package/es/ProIcon/style/index.less +4 -1
  28. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  29. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  30. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  31. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  32. package/es/ProLayout/components/ProCollapse/style/index.less +24 -24
  33. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  34. package/es/ProLayout/components/ProHeader/style/index.less +10 -11
  35. package/es/ProLayout/style/index.less +10 -7
  36. package/es/ProSelect/index.less +3 -0
  37. package/es/ProStep/style/index.less +3 -0
  38. package/es/ProTable/index.js +3 -3
  39. package/es/ProTable/style/index.less +68 -54
  40. package/es/ProTabs/style/index.less +14 -11
  41. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  42. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  43. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  44. package/es/ProThemeTools/index.d.ts +1 -1
  45. package/es/ProThemeTools/index.js +7 -2
  46. package/es/ProThemeTools/propsType.d.ts +4 -0
  47. package/es/ProThemeTools/style/index.less +6 -3
  48. package/es/ProThemeTools/utils/index.d.ts +1 -1
  49. package/es/ProThemeTools/utils/index.js +2 -1
  50. package/es/ProTooltip/style/index.less +3 -0
  51. package/es/ProTree/components/CloseIcon.js +2 -4
  52. package/es/ProTree/style/index.less +29 -26
  53. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  54. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  55. package/es/ProTreeModal/components/Trigger.js +79 -19
  56. package/es/ProTreeModal/index.js +24 -3
  57. package/es/ProTreeModal/propsType.d.ts +5 -2
  58. package/es/ProTreeModal/style/index.less +11 -8
  59. package/es/ProTreeSelect/style/index.less +25 -22
  60. package/es/ProUpload/components/DragRender.js +7 -4
  61. package/es/ProUpload/components/ImageRender.js +5 -1
  62. package/es/ProUpload/index.js +11 -7
  63. package/es/ProUpload/style/index.less +13 -4
  64. package/es/ProViewer/index.js +3 -1
  65. package/es/ProViewer/style/index.less +6 -3
  66. package/es/locale/en_US.d.ts +3 -0
  67. package/es/locale/en_US.js +3 -0
  68. package/es/locale/zh_CN.d.ts +3 -0
  69. package/es/locale/zh_CN.js +4 -1
  70. package/es/style/core/compatible.less +6 -6
  71. package/es/style/theme/antd.less +172 -157
  72. package/lib/ProAction/index.less +3 -0
  73. package/lib/ProDownload/index.js +9 -6
  74. package/lib/ProDownload/style/index.less +5 -2
  75. package/lib/ProDrawerForm/style/index.less +17 -14
  76. package/lib/ProEditLabel/style/index.less +12 -9
  77. package/lib/ProEditTable/index.js +6 -2
  78. package/lib/ProEditTable/style/index.less +50 -42
  79. package/lib/ProEditTable/utils/config.d.ts +1 -1
  80. package/lib/ProEditTable/utils/config.js +3 -3
  81. package/lib/ProEnum/style/index.less +3 -0
  82. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  83. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  84. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  85. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  86. package/lib/ProForm/components/combination/Container/style/index.less +3 -3
  87. package/lib/ProForm/components/combination/FormList/style/index.less +3 -3
  88. package/lib/ProForm/components/combination/Group/style/index.less +15 -15
  89. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  90. package/lib/ProForm/components/combination/ProCombination/style/index.less +2 -2
  91. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +29 -11
  92. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  93. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  94. package/lib/ProForm/components/render/RenderFields.js +3 -3
  95. package/lib/ProForm/style/index.less +46 -44
  96. package/lib/ProIcon/style/index.less +4 -1
  97. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  98. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  99. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  100. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  101. package/lib/ProLayout/components/ProCollapse/style/index.less +24 -24
  102. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  103. package/lib/ProLayout/components/ProHeader/style/index.less +10 -11
  104. package/lib/ProLayout/style/index.less +10 -7
  105. package/lib/ProSelect/index.less +3 -0
  106. package/lib/ProStep/style/index.less +3 -0
  107. package/lib/ProTable/index.js +3 -3
  108. package/lib/ProTable/style/index.less +68 -54
  109. package/lib/ProTabs/style/index.less +14 -11
  110. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  111. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  112. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  113. package/lib/ProThemeTools/index.d.ts +1 -1
  114. package/lib/ProThemeTools/index.js +7 -2
  115. package/lib/ProThemeTools/propsType.d.ts +4 -0
  116. package/lib/ProThemeTools/style/index.less +6 -3
  117. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  118. package/lib/ProThemeTools/utils/index.js +2 -1
  119. package/lib/ProTooltip/style/index.less +3 -0
  120. package/lib/ProTree/components/CloseIcon.js +2 -4
  121. package/lib/ProTree/style/index.less +29 -26
  122. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  123. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  124. package/lib/ProTreeModal/components/Trigger.js +74 -18
  125. package/lib/ProTreeModal/index.js +24 -3
  126. package/lib/ProTreeModal/propsType.d.ts +5 -2
  127. package/lib/ProTreeModal/style/index.less +11 -8
  128. package/lib/ProTreeSelect/style/index.less +25 -22
  129. package/lib/ProUpload/components/DragRender.js +7 -4
  130. package/lib/ProUpload/components/ImageRender.js +5 -1
  131. package/lib/ProUpload/index.js +11 -7
  132. package/lib/ProUpload/style/index.less +13 -4
  133. package/lib/ProViewer/index.js +4 -3
  134. package/lib/ProViewer/style/index.less +6 -3
  135. package/lib/locale/en_US.d.ts +3 -0
  136. package/lib/locale/en_US.js +3 -0
  137. package/lib/locale/zh_CN.d.ts +3 -0
  138. package/lib/locale/zh_CN.js +4 -1
  139. package/lib/style/core/compatible.less +6 -6
  140. package/lib/style/theme/antd.less +172 -157
  141. package/package.json +1 -1
@@ -1,3 +1,5 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  @import './index';
2
4
 
3
5
  @zat-disabled-color: #bcbcbc;
@@ -5,22 +7,22 @@
5
7
  /* antd 默认样式重置 */
6
8
 
7
9
  // 表单
8
- .ant-form,
9
- .ant-drawer,
10
- .ant-modal {
11
- .ant-input-textarea-show-count.ant-input-textarea-in-form-item {
10
+ .@{ant-prefix}-form,
11
+ .@{ant-prefix}-drawer,
12
+ .@{ant-prefix}-modal {
13
+ .@{ant-prefix}-input-textarea-show-count.@{ant-prefix}-input-textarea-in-form-item {
12
14
  &::after {
13
15
  background: transparent;
14
16
  }
15
17
  }
16
18
 
17
- .ant-form-item {
18
- &.ant-form-item-with-help {
19
+ .@{ant-prefix}-form-item {
20
+ &.@{ant-prefix}-form-item-with-help {
19
21
  transition: none;
20
22
  }
21
23
 
22
24
  // label 超过130px换行
23
- .ant-form-item-label {
25
+ .@{ant-prefix}-form-item-label {
24
26
  flex: 0 0 @zaui-form-label-width;
25
27
  padding-right: @zaui-space-size-sm;
26
28
  overflow: initial;
@@ -28,7 +30,7 @@
28
30
  white-space: pre-wrap;
29
31
  text-align: @zaui-form-align;
30
32
 
31
- .ant-form-item-required {
33
+ .@{ant-prefix}-form-item-required {
32
34
  &::after {
33
35
  display: block;
34
36
  }
@@ -43,16 +45,16 @@
43
45
  }
44
46
  }
45
47
 
46
- & .ant-form-item-required::before {
48
+ & .@{ant-prefix}-form-item-required::before {
47
49
  display: inline-block;
48
50
  }
49
51
 
50
- &.ant-form-item-label-left {
51
- & > .ant-form-item-required::before {
52
+ &.@{ant-prefix}-form-item-label-left {
53
+ & > .@{ant-prefix}-form-item-required::before {
52
54
  display: none;
53
55
  }
54
56
 
55
- & > .ant-form-item-required::after {
57
+ & > .@{ant-prefix}-form-item-required::after {
56
58
  margin-top: 1px;
57
59
  color: #ff4d4f;
58
60
  font-size: var(--zaui-font-size, 14px);
@@ -61,55 +63,58 @@
61
63
  }
62
64
  }
63
65
 
64
- &:not(.ant-form-item-label-left) {
65
- & > .ant-form-item-required::after {
66
+ &:not(.@{ant-prefix}-form-item-label-left) {
67
+ & > .@{ant-prefix}-form-item-required::after {
66
68
  display: none;
67
69
  }
68
70
  }
69
71
  }
70
72
 
71
- .ant-form-item-explain-error {
73
+ .@{ant-prefix}-form-item-explain-error {
72
74
  .set-text-size();
73
75
  }
74
76
  }
75
77
 
76
78
  // 字体颜色
77
- .ant-form-item-label > label,
78
- .ant-picker-input > input,
79
- .ant-input,
80
- .ant-input-number,
81
- .ant-select,
82
- .ant-select-dropdown {
79
+ .@{ant-prefix}-form-item-label > label,
80
+ .@{ant-prefix}-picker-input > input,
81
+ .@{ant-prefix}-input,
82
+ .@{ant-prefix}-input-number,
83
+ .@{ant-prefix}-select,
84
+ .@{ant-prefix}-select-dropdown {
83
85
  .set-text-color();
84
86
  .set-text-size();
85
87
  }
86
88
 
87
- .ant-form-item {
89
+ .@{ant-prefix}-form-item {
88
90
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
89
91
  }
90
92
  }
91
93
 
92
- .ant-input[disabled],
93
- .ant-select-disabled,
94
- .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
95
- .ant-input-number-disabled,
96
- .ant-picker-input > input[disabled],
97
- .ant-select-disabled.ant-select-multiple .ant-select-selection-item {
94
+ .@{ant-prefix}-input[disabled],
95
+ .@{ant-prefix}-select-disabled,
96
+ .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector,
97
+ .@{ant-prefix}-input-number-disabled,
98
+ .@{ant-prefix}-picker-input > input[disabled],
99
+ .@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple .@{ant-prefix}-select-selection-item {
98
100
  .set-disabled-color();
99
101
  }
100
102
 
101
103
  // ant-table
102
- .ant-table {
104
+ .@{ant-prefix}-table {
105
+ .@{ant-prefix}-empty-normal {
106
+ margin: calc(var(--zaui-space-size-lg; 32px) * var(--zaui-size; 1)) 0;
107
+ }
103
108
  &.pro-table-no-stripe {
104
- .ant-table-tbody {
105
- .ant-table-row {
109
+ .@{ant-prefix}-table-tbody {
110
+ .@{ant-prefix}-table-row {
106
111
  background: #fff !important;
107
112
  }
108
113
  }
109
114
  }
110
115
 
111
116
  // 空态图白色
112
- .ant-table-placeholder {
117
+ .@{ant-prefix}-table-placeholder {
113
118
  td {
114
119
  background: #ffffff !important;
115
120
  }
@@ -118,19 +123,19 @@
118
123
  .set-text-size();
119
124
  color: @zaui-text;
120
125
 
121
- .ant-table-thead {
122
- .ant-table-cell {
126
+ .@{ant-prefix}-table-thead {
127
+ .@{ant-prefix}-table-cell {
123
128
  &::before {
124
129
  display: none;
125
130
  }
126
131
  }
127
132
  }
128
133
 
129
- .ant-table-thead > tr > th {
134
+ .@{ant-prefix}-table-thead > tr > th {
130
135
  background: @zaui-table-header-bg;
131
136
  border-bottom: none;
132
137
 
133
- .ant-dropdown-trigger {
138
+ .@{ant-prefix}-dropdown-trigger {
134
139
  .anticon-down {
135
140
  width: 0;
136
141
  height: 0;
@@ -147,12 +152,12 @@
147
152
  }
148
153
  }
149
154
 
150
- .ant-table-tbody {
151
- .ant-table-row:nth-child(even) {
155
+ .@{ant-prefix}-table-tbody {
156
+ .@{ant-prefix}-table-row:nth-child(even) {
152
157
  background-color: @zaui-table-strip-bg;
153
158
  }
154
159
 
155
- tr.ant-table-row:hover td {
160
+ tr.@{ant-prefix}-table-row:hover td {
156
161
  background-color: @zaui-table-hover-bg !important;
157
162
  }
158
163
 
@@ -160,7 +165,7 @@
160
165
  border-bottom: none;
161
166
  }
162
167
 
163
- tr.ant-table-row-selected {
168
+ tr.@{ant-prefix}-table-row-selected {
164
169
  &:hover > td {
165
170
  background: @zaui-table-selected-hover-bg;
166
171
  }
@@ -171,74 +176,84 @@
171
176
  }
172
177
  }
173
178
 
174
- .ant-table-thead > tr > th,
175
- .ant-table-footer {
179
+ .@{ant-prefix}-table-thead > tr > th,
180
+ .@{ant-prefix}-table-footer {
176
181
  .set-text-color();
177
182
  .set-text-size();
178
183
  }
179
184
 
180
- .ant-table-tbody > tr > td {
185
+ .@{ant-prefix}-table-tbody > tr > td {
181
186
  .set-text-size();
182
187
 
183
- .ant-btn {
188
+ .@{ant-prefix}-btn {
184
189
  .set-text-size();
185
190
  }
186
191
  }
187
192
 
188
193
  // 表格空显示-
189
- .ant-table-content {
190
- .ant-table-tbody {
191
- .ant-table-cell:empty:before {
194
+ .@{ant-prefix}-table-content {
195
+ .@{ant-prefix}-table-tbody {
196
+ .@{ant-prefix}-table-cell:empty:before {
192
197
  content: '-';
193
198
  }
194
199
  }
195
200
 
196
- .ant-table-cell-fix-right {
197
- &.ant-table-cell:empty:before {
201
+ .@{ant-prefix}-table-cell-fix-right {
202
+ &.@{ant-prefix}-table-cell:empty:before {
198
203
  content: none;
199
204
  }
200
205
  }
201
206
  }
202
207
 
203
- &.ant-table-scroll-horizontal {
204
- table .ant-table-tbody .ant-table-row:nth-child(even) td {
208
+ &.@{ant-prefix}-table-scroll-horizontal {
209
+ table .@{ant-prefix}-table-tbody .@{ant-prefix}-table-row:nth-child(even) td {
205
210
  background: @zaui-table-strip-bg;
206
211
  }
207
212
  }
208
213
 
209
214
  & table {
210
- .ant-table-thead > tr > th,
211
- .ant-table-tbody > tr > td,
212
- .ant-table tfoot > tr > th,
213
- .ant-table tfoot > tr > td {
214
- padding: calc(5px + var(--zaui-size) * 8px) 16px;
215
+ .@{ant-prefix}-table-thead > tr > th,
216
+ .@{ant-prefix}-table-tbody > tr > td,
217
+ .@{ant-prefix}-table tfoot > tr > th,
218
+ .@{ant-prefix}-table tfoot > tr > td {
219
+ padding: calc(4px + var(--zaui-size) * 8px);
220
+ }
221
+ .@{ant-prefix}-table-tbody > tr > td > .@{ant-prefix}-table-wrapper:only-child .@{ant-prefix}-table,
222
+ .@{ant-prefix}-table-tbody
223
+ > tr
224
+ > td
225
+ > .@{ant-prefix}-table-expanded-row-fixed
226
+ > .@{ant-prefix}-table-wrapper:only-child
227
+ .@{ant-prefix}-table {
228
+ margin-top: calc(var(--zaui-size) * -16px);
229
+ margin-bottom: calc(var(--zaui-size) * -16px);
215
230
  }
216
231
  }
217
232
 
218
- &.ant-table-scroll-horizontal table {
219
- .ant-table-thead > tr > th,
220
- .ant-table-tbody > tr > td,
221
- .ant-table tfoot > tr > th,
222
- .ant-table tfoot > tr > td {
223
- padding: calc(5px + var(--zaui-size) * 8px) 16px;
233
+ &.@{ant-prefix}-table-scroll-horizontal table {
234
+ .@{ant-prefix}-table-thead > tr > th,
235
+ .@{ant-prefix}-table-tbody > tr > td,
236
+ .@{ant-prefix}-table tfoot > tr > th,
237
+ .@{ant-prefix}-table tfoot > tr > td {
238
+ padding: calc(4px + var(--zaui-size) * 8px);
224
239
  }
225
240
 
226
241
  // 偶数行背景色设置
227
- .ant-table-tbody {
228
- .ant-table-row:nth-child(even) {
242
+ .@{ant-prefix}-table-tbody {
243
+ .@{ant-prefix}-table-row:nth-child(even) {
229
244
  background-color: @zaui-table-strip-bg;
230
245
 
231
- & td.ant-table-cell-fix-right,
232
- & td.ant-table-cell-fix-left {
246
+ & td.@{ant-prefix}-table-cell-fix-right,
247
+ & td.@{ant-prefix}-table-cell-fix-left {
233
248
  background-color: @zaui-table-strip-bg;
234
249
  }
235
250
  }
236
251
 
237
- .ant-table-row:hover > td {
252
+ .@{ant-prefix}-table-row:hover > td {
238
253
  background-color: @zaui-table-strip-bg;
239
254
  }
240
255
 
241
- tr.ant-table-row-selected {
256
+ tr.@{ant-prefix}-table-row-selected {
242
257
  &:hover > td {
243
258
  background: @zaui-table-selected-bg !important;
244
259
  }
@@ -255,17 +270,17 @@
255
270
  }
256
271
 
257
272
  // 开启scroll时,会新增一行tr影响偶数行底色
258
- &.ant-table-scroll-horizontal {
273
+ &.@{ant-prefix}-table-scroll-horizontal {
259
274
  table {
260
- .ant-table-tbody {
261
- .ant-table-row:nth-child(even) {
275
+ .@{ant-prefix}-table-tbody {
276
+ .@{ant-prefix}-table-row:nth-child(even) {
262
277
  &:hover td {
263
278
  background-color: @zaui-table-hover-bg;
264
279
  }
265
280
 
266
281
  & td,
267
- & td.ant-table-cell-fix-right,
268
- & td.ant-table-cell-fix-left {
282
+ & td.@{ant-prefix}-table-cell-fix-right,
283
+ & td.@{ant-prefix}-table-cell-fix-left {
269
284
  background-color: #fff !important;
270
285
  }
271
286
 
@@ -274,7 +289,7 @@
274
289
  }
275
290
  }
276
291
 
277
- .ant-table-row:nth-child(odd) {
292
+ .@{ant-prefix}-table-row:nth-child(odd) {
278
293
  background-color: @zaui-table-strip-bg !important;
279
294
 
280
295
  & td {
@@ -285,8 +300,8 @@
285
300
  }
286
301
  }
287
302
 
288
- .ant-table-cell {
289
- .ant-btn-link {
303
+ .@{ant-prefix}-table-cell {
304
+ .@{ant-prefix}-btn-link {
290
305
  height: auto;
291
306
  padding: 0;
292
307
  user-select: text;
@@ -298,15 +313,15 @@
298
313
  }
299
314
  }
300
315
 
301
- &.ant-table-fixed-header {
302
- .ant-table-tbody {
303
- .ant-table-row:nth-child(even) {
316
+ &.@{ant-prefix}-table-fixed-header {
317
+ .@{ant-prefix}-table-tbody {
318
+ .@{ant-prefix}-table-row:nth-child(even) {
304
319
  td {
305
320
  background: #ffffff !important;
306
321
  }
307
322
  }
308
323
 
309
- .ant-table-row:nth-child(odd) {
324
+ .@{ant-prefix}-table-row:nth-child(odd) {
310
325
  background-color: @zaui-table-strip-bg;
311
326
 
312
327
  td {
@@ -318,60 +333,60 @@
318
333
  }
319
334
 
320
335
  // ant-tabs
321
- .ant-tabs {
336
+ .@{ant-prefix}-tabs {
322
337
  overflow: inherit !important;
323
338
  .set-text-color();
324
339
 
325
- .ant-tabs-nav-list {
326
- &.ant-tabs-card {
327
- .ant-tabs-tab {
340
+ .@{ant-prefix}-tabs-nav-list {
341
+ &.@{ant-prefix}-tabs-card {
342
+ .@{ant-prefix}-tabs-tab {
328
343
  margin-right: 10px;
329
344
  padding: 8px var(--zaui-space-size-md, 16px);
330
345
  }
331
346
  }
332
347
 
333
- .ant-tabs-tab {
348
+ .@{ant-prefix}-tabs-tab {
334
349
  .set-text-size();
335
350
  margin-left: 0;
336
351
  padding: 12px var(--zaui-space-size-md, 16px);
337
352
  }
338
353
  }
339
354
 
340
- .ant-tabs-nav {
355
+ .@{ant-prefix}-tabs-nav {
341
356
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
342
357
  }
343
358
 
344
- .ant-tabs-nav .ant-tabs-tab-btn {
359
+ .@{ant-prefix}-tabs-nav .@{ant-prefix}-tabs-tab-btn {
345
360
  font-size: var(--zaui-font-size-lg, 16px);
346
361
  }
347
362
 
348
- &.ant-tabs-card {
349
- .ant-tabs-tab {
363
+ &.@{ant-prefix}-tabs-card {
364
+ .@{ant-prefix}-tabs-tab {
350
365
  margin-right: 10px !important;
351
366
  padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
352
367
  }
353
368
 
354
- .ant-tabs-nav .ant-tabs-tab-btn {
369
+ .@{ant-prefix}-tabs-nav .@{ant-prefix}-tabs-tab-btn {
355
370
  font-size: var(--zaui-font-size, 14px);
356
371
  }
357
372
  }
358
373
  }
359
374
 
360
375
  // 按钮
361
- .ant-btn {
376
+ .@{ant-prefix}-btn {
362
377
  .set-text-color();
363
378
  font-size: @zaui-font-size;
364
379
 
365
- .ant-btn-primary {
380
+ .@{ant-prefix}-btn-primary {
366
381
  color: #fff;
367
382
  background: @zaui-brand;
368
383
  border-color: @zaui-brand;
369
384
  }
370
385
 
371
- &.ant-btn-primary[disabled],
372
- &.ant-btn-primary[disabled]:hover,
373
- &.ant-btn-primary[disabled]:focus,
374
- &.ant-btn-primary[disabled]:active {
386
+ &.@{ant-prefix}-btn-primary[disabled],
387
+ &.@{ant-prefix}-btn-primary[disabled]:hover,
388
+ &.@{ant-prefix}-btn-primary[disabled]:focus,
389
+ &.@{ant-prefix}-btn-primary[disabled]:active {
375
390
  color: #fff;
376
391
  text-shadow: none;
377
392
  background: @zaui-brand;
@@ -380,10 +395,10 @@
380
395
  opacity: 0.6;
381
396
  }
382
397
 
383
- &.ant-btn-link[disabled],
384
- &.ant-btn-link[disabled]:hover,
385
- &.ant-btn-link[disabled]:focus,
386
- &.ant-btn-link[disabled]:active {
398
+ &.@{ant-prefix}-btn-link[disabled],
399
+ &.@{ant-prefix}-btn-link[disabled]:hover,
400
+ &.@{ant-prefix}-btn-link[disabled]:focus,
401
+ &.@{ant-prefix}-btn-link[disabled]:active {
387
402
  color: @zat-disabled-color;
388
403
  text-shadow: none;
389
404
  background: none;
@@ -392,21 +407,21 @@
392
407
  opacity: 0.6;
393
408
  }
394
409
 
395
- &.ant-btn-link {
410
+ &.@{ant-prefix}-btn-link {
396
411
  .set-brand-color();
397
412
  }
398
413
  }
399
414
 
400
415
  // 分割线
401
- .ant-divider {
402
- .ant-divider-inner-text {
416
+ .@{ant-prefix}-divider {
417
+ .@{ant-prefix}-divider-inner-text {
403
418
  .set-text-color();
404
419
  .set-text-size();
405
420
  }
406
421
  }
407
422
 
408
423
  // 卡片
409
- .ant-card {
424
+ .@{ant-prefix}-card {
410
425
  margin-bottom: @zaui-space-size-md;
411
426
 
412
427
  &:last-child {
@@ -415,15 +430,15 @@
415
430
  }
416
431
 
417
432
  // 分页
418
- .ant-pagination {
433
+ .@{ant-prefix}-pagination {
419
434
  color: @zaui-text !important;
420
435
  font-size: @zaui-font-size !important;
421
436
 
422
- &.ant-table-pagination {
437
+ &.@{ant-prefix}-table-pagination {
423
438
  margin: @zaui-height-size-md 0;
424
439
  }
425
440
 
426
- .ant-pagination-item {
441
+ .@{ant-prefix}-pagination-item {
427
442
  min-width: 32px;
428
443
  height: 32px;
429
444
  margin-right: 8px;
@@ -442,25 +457,25 @@
442
457
  }
443
458
  }
444
459
 
445
- .ant-pagination-options-size-changer.ant-select-show-arrow {
460
+ .@{ant-prefix}-pagination-options-size-changer.@{ant-prefix}-select-show-arrow {
446
461
  margin-right: 5px;
447
462
  }
448
463
 
449
- .ant-pagination-item-active a {
464
+ .@{ant-prefix}-pagination-item-active a {
450
465
  color: #fff;
451
466
  background: @zaui-brand;
452
467
  border-radius: @zaui-border-radius;
453
468
  }
454
469
 
455
- .ant-pagination-item-active:focus-visible a,
456
- .ant-pagination-item-active:hover a {
470
+ .@{ant-prefix}-pagination-item-active:focus-visible a,
471
+ .@{ant-prefix}-pagination-item-active:hover a {
457
472
  color: #fff;
458
473
  }
459
474
 
460
- .ant-pagination-prev,
461
- .ant-pagination-next,
462
- .ant-pagination-jump-prev,
463
- .ant-pagination-jump-next {
475
+ .@{ant-prefix}-pagination-prev,
476
+ .@{ant-prefix}-pagination-next,
477
+ .@{ant-prefix}-pagination-jump-prev,
478
+ .@{ant-prefix}-pagination-jump-next {
464
479
  min-width: 32px;
465
480
  height: 32px;
466
481
  line-height: 30px;
@@ -469,8 +484,8 @@
469
484
  border-radius: @zaui-border-radius;
470
485
  }
471
486
 
472
- .ant-pagination-prev,
473
- .ant-pagination-next {
487
+ .@{ant-prefix}-pagination-prev,
488
+ .@{ant-prefix}-pagination-next {
474
489
  svg {
475
490
  .set-text-color();
476
491
  .set-text-size();
@@ -483,8 +498,8 @@
483
498
  }
484
499
  }
485
500
 
486
- .ant-pagination-prev .ant-pagination-item-link,
487
- .ant-pagination-next .ant-pagination-item-link {
501
+ .@{ant-prefix}-pagination-prev .@{ant-prefix}-pagination-item-link,
502
+ .@{ant-prefix}-pagination-next .@{ant-prefix}-pagination-item-link {
488
503
  min-width: 32px;
489
504
  height: 32px;
490
505
  line-height: 32px;
@@ -493,7 +508,7 @@
493
508
  border-radius: @zaui-border-radius;
494
509
  }
495
510
 
496
- .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
511
+ .@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
497
512
  .set-text-color();
498
513
  .set-text-size();
499
514
  width: 100%;
@@ -501,59 +516,59 @@
501
516
  padding: 0 12px;
502
517
  }
503
518
 
504
- .ant-select:not(.ant-select-customize-input) .ant-select-selector {
519
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
505
520
  position: relative;
506
521
  background-color: #fafafa;
507
522
  border: 0;
508
523
  border-radius: @zaui-border-radius;
509
524
  }
510
525
 
511
- .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
512
- .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {
526
+ .@{ant-prefix}-pagination-jump-prev .@{ant-prefix}-pagination-item-container .@{ant-prefix}-pagination-item-link-icon,
527
+ .@{ant-prefix}-pagination-jump-next .@{ant-prefix}-pagination-item-container .@{ant-prefix}-pagination-item-link-icon {
513
528
  color: @zaui-brand;
514
529
  }
515
530
  }
516
531
 
517
532
  // ant-descriptions
518
- .ant-descriptions {
519
- .ant-descriptions-item-label,
520
- .ant-descriptions-item-content {
533
+ .@{ant-prefix}-descriptions {
534
+ .@{ant-prefix}-descriptions-item-label,
535
+ .@{ant-prefix}-descriptions-item-content {
521
536
  .set-text-color();
522
537
  .set-text-size();
523
538
  }
524
539
  }
525
540
 
526
541
  // ant-breadcrumb
527
- .ant-breadcrumb {
542
+ .@{ant-prefix}-breadcrumb {
528
543
  .set-text-size();
529
544
 
530
- .ant-breadcrumb-link {
545
+ .@{ant-prefix}-breadcrumb-link {
531
546
  .set-lg-text-size();
532
547
  }
533
548
  }
534
549
 
535
550
  // ant-menu
536
- .ant-menu {
551
+ .@{ant-prefix}-menu {
537
552
  color: @zaui-text !important;
538
553
  font-size: @zaui-font-size !important;
539
554
 
540
- .ant-menu-item a {
555
+ .@{ant-prefix}-menu-item a {
541
556
  .set-text-color();
542
557
  }
543
558
 
544
- .ant-menu-item-selected a,
545
- .ant-menu-item-selected a:hover {
559
+ .@{ant-prefix}-menu-item-selected a,
560
+ .@{ant-prefix}-menu-item-selected a:hover {
546
561
  .set-brand-color();
547
562
  }
548
563
  }
549
564
 
550
- .ant-btn-primary {
565
+ .@{ant-prefix}-btn-primary {
551
566
  color: #fff;
552
567
  }
553
568
 
554
569
  // 下拉框三角样式替换
555
- .ant-select {
556
- .ant-select-arrow {
570
+ .@{ant-prefix}-select {
571
+ .@{ant-prefix}-select-arrow {
557
572
  .anticon-down {
558
573
  width: 0;
559
574
  height: 0;
@@ -570,13 +585,13 @@
570
585
  }
571
586
 
572
587
  // 多选样式重置
573
- &.ant-select-multiple {
574
- .ant-select-selection-item {
588
+ &.@{ant-prefix}-select-multiple {
589
+ .@{ant-prefix}-select-selection-item {
575
590
  align-items: center;
576
591
  padding-right: 7px;
577
592
  background: #f2f3f5;
578
593
 
579
- .ant-select-selection-item-remove {
594
+ .@{ant-prefix}-select-selection-item-remove {
580
595
  display: flex;
581
596
  align-items: center;
582
597
  justify-content: center;
@@ -595,42 +610,42 @@
595
610
  }
596
611
 
597
612
  // 表格样式重置
598
- .ant-form {
613
+ .@{ant-prefix}-form {
599
614
  .pro-form-control {
600
- .ant-btn-primary {
615
+ .@{ant-prefix}-btn-primary {
601
616
  margin-right: @zaui-height-size-md;
602
617
  }
603
618
 
604
- .ant-btn-default {
619
+ .@{ant-prefix}-btn-default {
605
620
  margin-left: 0;
606
621
  }
607
622
  }
608
623
  }
609
624
 
610
625
  // 弹窗
611
- .ant-modal {
612
- .ant-modal-header {
626
+ .@{ant-prefix}-modal {
627
+ .@{ant-prefix}-modal-header {
613
628
  border-bottom: none;
614
629
  }
615
630
 
616
- .ant-modal-footer {
631
+ .@{ant-prefix}-modal-footer {
617
632
  border-top: none;
618
633
  }
619
634
  }
620
635
 
621
636
  // 数字输入框
622
- .ant-input-number {
637
+ .@{ant-prefix}-input-number {
623
638
  width: 100%;
624
639
  }
625
640
 
626
- .ant-input-textarea {
641
+ .@{ant-prefix}-input-textarea {
627
642
  position: relative;
628
643
 
629
- textarea.ant-input {
644
+ textarea.@{ant-prefix}-input {
630
645
  padding-bottom: 20px;
631
646
  }
632
647
 
633
- &.ant-input-textarea-show-count.ant-input-textarea-in-form-item {
648
+ &.@{ant-prefix}-input-textarea-show-count.@{ant-prefix}-input-textarea-in-form-item {
634
649
  &::after {
635
650
  background: transparent;
636
651
  }
@@ -654,39 +669,39 @@
654
669
  }
655
670
 
656
671
  // 间隔
657
- .ant-space {
658
- &.ant-space-vertical {
672
+ .@{ant-prefix}-space {
673
+ &.@{ant-prefix}-space-vertical {
659
674
  display: flex;
660
675
  width: 100%;
661
676
  }
662
677
  }
663
678
 
664
679
  // Cascader级联选择
665
- .ant-cascader {
666
- .ant-cascader-menu {
680
+ .@{ant-prefix}-cascader {
681
+ .@{ant-prefix}-cascader-menu {
667
682
  height: auto;
668
683
  max-height: 326px;
669
684
  }
670
685
  }
671
686
 
672
- .ant-select-dropdown {
687
+ .@{ant-prefix}-select-dropdown {
673
688
  // tree select 样式重置
674
- .ant-select-tree .ant-select-tree-node-content-wrapper {
689
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-node-content-wrapper {
675
690
  min-height: 0px;
676
691
  line-height: initial;
677
692
  }
678
693
 
679
- .ant-select-tree .ant-select-tree-treenode {
694
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-treenode {
680
695
  padding-top: 4px;
681
696
  padding-bottom: 4px;
682
697
  }
683
698
 
684
- .ant-select-tree .ant-select-tree-treenode {
699
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-treenode {
685
700
  align-items: center;
686
701
  }
687
702
  }
688
703
 
689
704
  // 气泡框样式
690
- .ant-popover {
705
+ .@{ant-prefix}-popover {
691
706
  width: max-content;
692
707
  }