@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,115 +1,120 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  @import './index';
2
4
 
3
- @zat-disabled-color : #BCBCBC;
5
+ @zat-disabled-color: #bcbcbc;
4
6
 
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 {
24
- flex : 0 0 @zaui-form-label-width;
25
- overflow : initial;
26
- line-height : 1;
27
- text-align : @zaui-form-align;
28
- white-space : pre-wrap;
25
+ .@{ant-prefix}-form-item-label {
26
+ flex: 0 0 @zaui-form-label-width;
29
27
  padding-right: @zaui-space-size-sm;
28
+ overflow: initial;
29
+ line-height: 1;
30
+ white-space: pre-wrap;
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
  }
35
37
  }
36
38
 
37
- &>label {
39
+ & > label {
38
40
  word-break: break-word;
39
41
 
40
42
  &::after {
41
- margin : 0;
42
43
  display: none;
44
+ margin: 0;
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 {
56
- margin-top : 1px;
57
- color : #ff4d4f;
58
- font-size : var(--zaui-font-size, 14px);
57
+ & > .@{ant-prefix}-form-item-required::after {
58
+ margin-top: 1px;
59
+ color: #ff4d4f;
60
+ font-size: var(--zaui-font-size, 14px);
59
61
  line-height: 1;
60
- content : '*';
62
+ content: '*';
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,27 +123,27 @@
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 {
130
- background : @zaui-table-header-bg;
134
+ .@{ant-prefix}-table-thead > tr > th {
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
- width : 0;
136
- height : 0;
137
- margin : 0 0 1px 4px;
138
- border-top : 6px solid #909090;
140
+ width: 0;
141
+ height: 0;
142
+ margin: 0 0 1px 4px;
143
+ border-top: 6px solid #909090;
139
144
  border-right: 5px solid transparent;
140
- border-left : 5px solid transparent;
141
- transition : transform 0.8s;
145
+ border-left: 5px solid transparent;
146
+ transition: transform 0.8s;
142
147
 
143
148
  svg {
144
149
  display: none;
@@ -147,21 +152,21 @@
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 {
156
- background-color: @zaui-table-hover-bg !important;
160
+ tr.@{ant-prefix}-table-row:hover td {
161
+ background-color: @zaui-table-hover-bg !important;
157
162
  }
158
163
 
159
- &>tr>td {
164
+ & > tr > td {
160
165
  border-bottom: none;
161
166
  }
162
167
 
163
- tr.ant-table-row-selected {
164
- &:hover>td {
168
+ tr.@{ant-prefix}-table-row-selected {
169
+ &:hover > td {
165
170
  background: @zaui-table-selected-hover-bg;
166
171
  }
167
172
 
@@ -171,72 +176,90 @@
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
- &.ant-table-scroll-horizontal table {
214
+ & table {
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);
230
+ }
231
+ }
210
232
 
211
- .ant-table-thead>tr>th,
212
- .ant-table-tbody>tr>td,
213
- .ant-table tfoot>tr>th,
214
- .ant-table tfoot>tr>td {
215
- 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);
216
239
  }
217
240
 
218
241
  // 偶数行背景色设置
219
- .ant-table-tbody {
220
- .ant-table-row:nth-child(even) {
242
+ .@{ant-prefix}-table-tbody {
243
+ .@{ant-prefix}-table-row:nth-child(even) {
221
244
  background-color: @zaui-table-strip-bg;
222
245
 
223
- & td.ant-table-cell-fix-right,
224
- & td.ant-table-cell-fix-left {
246
+ & td.@{ant-prefix}-table-cell-fix-right,
247
+ & td.@{ant-prefix}-table-cell-fix-left {
225
248
  background-color: @zaui-table-strip-bg;
226
249
  }
227
250
  }
228
251
 
229
- .ant-table-row:hover>td {
252
+ .@{ant-prefix}-table-row:hover > td {
230
253
  background-color: @zaui-table-strip-bg;
231
254
  }
232
255
 
233
- tr.ant-table-row-selected {
234
- &:hover>td {
235
- background: @zaui-table-selected-bg !important;
256
+ tr.@{ant-prefix}-table-row-selected {
257
+ &:hover > td {
258
+ background: @zaui-table-selected-bg !important;
236
259
  }
237
260
 
238
261
  td {
239
- background: @zaui-table-selected-bg !important;
262
+ background: @zaui-table-selected-bg !important;
240
263
  }
241
264
  }
242
265
 
@@ -247,17 +270,17 @@
247
270
  }
248
271
 
249
272
  // 开启scroll时,会新增一行tr影响偶数行底色
250
- &.ant-table-scroll-horizontal {
273
+ &.@{ant-prefix}-table-scroll-horizontal {
251
274
  table {
252
- .ant-table-tbody {
253
- .ant-table-row:nth-child(even) {
275
+ .@{ant-prefix}-table-tbody {
276
+ .@{ant-prefix}-table-row:nth-child(even) {
254
277
  &:hover td {
255
278
  background-color: @zaui-table-hover-bg;
256
279
  }
257
280
 
258
281
  & td,
259
- & td.ant-table-cell-fix-right,
260
- & td.ant-table-cell-fix-left {
282
+ & td.@{ant-prefix}-table-cell-fix-right,
283
+ & td.@{ant-prefix}-table-cell-fix-left {
261
284
  background-color: #fff !important;
262
285
  }
263
286
 
@@ -266,8 +289,8 @@
266
289
  }
267
290
  }
268
291
 
269
- .ant-table-row:nth-child(odd) {
270
- background-color: @zaui-table-strip-bg !important;
292
+ .@{ant-prefix}-table-row:nth-child(odd) {
293
+ background-color: @zaui-table-strip-bg !important;
271
294
 
272
295
  & td {
273
296
  background-color: @zaui-table-strip-bg !important;
@@ -277,29 +300,28 @@
277
300
  }
278
301
  }
279
302
 
280
- .ant-table-cell {
281
- .ant-btn-link {
282
- padding : 0;
283
- height : auto;
303
+ .@{ant-prefix}-table-cell {
304
+ .@{ant-prefix}-btn-link {
305
+ height: auto;
306
+ padding: 0;
284
307
  user-select: text;
285
308
  }
286
309
 
287
310
  a {
311
+ color: var(--zaui-brand, #006aff);
288
312
  user-select: text;
289
- color : var(--zaui-brand, #006aFF);
290
313
  }
291
314
  }
292
315
 
293
- &.ant-table-fixed-header {
294
- .ant-table-tbody {
295
- .ant-table-row:nth-child(even) {
296
-
316
+ &.@{ant-prefix}-table-fixed-header {
317
+ .@{ant-prefix}-table-tbody {
318
+ .@{ant-prefix}-table-row:nth-child(even) {
297
319
  td {
298
320
  background: #ffffff !important;
299
321
  }
300
322
  }
301
323
 
302
- .ant-table-row:nth-child(odd) {
324
+ .@{ant-prefix}-table-row:nth-child(odd) {
303
325
  background-color: @zaui-table-strip-bg;
304
326
 
305
327
  td {
@@ -311,95 +333,95 @@
311
333
  }
312
334
 
313
335
  // ant-tabs
314
- .ant-tabs {
336
+ .@{ant-prefix}-tabs {
315
337
  overflow: inherit !important;
316
338
  .set-text-color();
317
339
 
318
- .ant-tabs-nav-list {
319
- &.ant-tabs-card {
320
- .ant-tabs-tab {
321
- padding : 8px var(--zaui-space-size-md, 16px);
340
+ .@{ant-prefix}-tabs-nav-list {
341
+ &.@{ant-prefix}-tabs-card {
342
+ .@{ant-prefix}-tabs-tab {
322
343
  margin-right: 10px;
344
+ padding: 8px var(--zaui-space-size-md, 16px);
323
345
  }
324
346
  }
325
347
 
326
- .ant-tabs-tab {
348
+ .@{ant-prefix}-tabs-tab {
327
349
  .set-text-size();
328
- padding : 12px var(--zaui-space-size-md, 16px);
329
350
  margin-left: 0;
351
+ padding: 12px var(--zaui-space-size-md, 16px);
330
352
  }
331
353
  }
332
354
 
333
- .ant-tabs-nav {
355
+ .@{ant-prefix}-tabs-nav {
334
356
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
335
357
  }
336
358
 
337
- .ant-tabs-nav .ant-tabs-tab-btn {
359
+ .@{ant-prefix}-tabs-nav .@{ant-prefix}-tabs-tab-btn {
338
360
  font-size: var(--zaui-font-size-lg, 16px);
339
361
  }
340
362
 
341
- &.ant-tabs-card {
342
- .ant-tabs-tab {
343
- padding : 8px calc(var(--zaui-space-size-md, 16px)*var(--zaui-size, 1)) !important;
363
+ &.@{ant-prefix}-tabs-card {
364
+ .@{ant-prefix}-tabs-tab {
344
365
  margin-right: 10px !important;
366
+ padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
345
367
  }
346
368
 
347
- .ant-tabs-nav .ant-tabs-tab-btn {
369
+ .@{ant-prefix}-tabs-nav .@{ant-prefix}-tabs-tab-btn {
348
370
  font-size: var(--zaui-font-size, 14px);
349
371
  }
350
372
  }
351
373
  }
352
374
 
353
375
  // 按钮
354
- .ant-btn {
376
+ .@{ant-prefix}-btn {
355
377
  .set-text-color();
356
378
  font-size: @zaui-font-size;
357
379
 
358
- .ant-btn-primary {
359
- color : #fff;
360
- background : @zaui-brand;
380
+ .@{ant-prefix}-btn-primary {
381
+ color: #fff;
382
+ background: @zaui-brand;
361
383
  border-color: @zaui-brand;
362
384
  }
363
385
 
364
- &.ant-btn-primary[disabled],
365
- &.ant-btn-primary[disabled]:hover,
366
- &.ant-btn-primary[disabled]:focus,
367
- &.ant-btn-primary[disabled]:active {
368
- color : #fff;
369
- text-shadow : none;
370
- background : @zaui-brand;
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 {
390
+ color: #fff;
391
+ text-shadow: none;
392
+ background: @zaui-brand;
371
393
  border-color: @zaui-brand;
372
- box-shadow : none;
373
- opacity : 0.6;
394
+ box-shadow: none;
395
+ opacity: 0.6;
374
396
  }
375
397
 
376
- &.ant-btn-link[disabled],
377
- &.ant-btn-link[disabled]:hover,
378
- &.ant-btn-link[disabled]:focus,
379
- &.ant-btn-link[disabled]:active {
380
- color : @zat-disabled-color;
381
- text-shadow : none;
382
- background : none;
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 {
402
+ color: @zat-disabled-color;
403
+ text-shadow: none;
404
+ background: none;
383
405
  border-color: none;
384
- box-shadow : none;
385
- opacity : 0.6;
406
+ box-shadow: none;
407
+ opacity: 0.6;
386
408
  }
387
409
 
388
- &.ant-btn-link {
410
+ &.@{ant-prefix}-btn-link {
389
411
  .set-brand-color();
390
412
  }
391
413
  }
392
414
 
393
415
  // 分割线
394
- .ant-divider {
395
- .ant-divider-inner-text {
416
+ .@{ant-prefix}-divider {
417
+ .@{ant-prefix}-divider-inner-text {
396
418
  .set-text-color();
397
419
  .set-text-size();
398
420
  }
399
421
  }
400
422
 
401
423
  // 卡片
402
- .ant-card {
424
+ .@{ant-prefix}-card {
403
425
  margin-bottom: @zaui-space-size-md;
404
426
 
405
427
  &:last-child {
@@ -408,23 +430,23 @@
408
430
  }
409
431
 
410
432
  // 分页
411
- .ant-pagination {
412
- color : @zaui-text !important;
413
- font-size: @zaui-font-size !important;
433
+ .@{ant-prefix}-pagination {
434
+ color: @zaui-text !important;
435
+ font-size: @zaui-font-size !important;
414
436
 
415
- &.ant-table-pagination {
437
+ &.@{ant-prefix}-table-pagination {
416
438
  margin: @zaui-height-size-md 0;
417
439
  }
418
440
 
419
- .ant-pagination-item {
420
- min-width : 32px;
421
- height : 32px;
422
- margin-right : 8px;
423
- font-size : @zaui-font-size;
424
- line-height : 32px;
441
+ .@{ant-prefix}-pagination-item {
442
+ min-width: 32px;
443
+ height: 32px;
444
+ margin-right: 8px;
445
+ font-size: @zaui-font-size;
446
+ line-height: 32px;
425
447
  background-color: #f7f9fa;
426
- border : 0;
427
- border-radius : @zaui-border-radius;
448
+ border: 0;
449
+ border-radius: @zaui-border-radius;
428
450
 
429
451
  a {
430
452
  .set-text-color();
@@ -435,35 +457,35 @@
435
457
  }
436
458
  }
437
459
 
438
- .ant-pagination-options-size-changer.ant-select-show-arrow {
460
+ .@{ant-prefix}-pagination-options-size-changer.@{ant-prefix}-select-show-arrow {
439
461
  margin-right: 5px;
440
462
  }
441
463
 
442
- .ant-pagination-item-active a {
443
- color : #fff;
444
- background : @zaui-brand;
464
+ .@{ant-prefix}-pagination-item-active a {
465
+ color: #fff;
466
+ background: @zaui-brand;
445
467
  border-radius: @zaui-border-radius;
446
468
  }
447
469
 
448
- .ant-pagination-item-active:focus-visible a,
449
- .ant-pagination-item-active:hover a {
470
+ .@{ant-prefix}-pagination-item-active:focus-visible a,
471
+ .@{ant-prefix}-pagination-item-active:hover a {
450
472
  color: #fff;
451
473
  }
452
474
 
453
- .ant-pagination-prev,
454
- .ant-pagination-next,
455
- .ant-pagination-jump-prev,
456
- .ant-pagination-jump-next {
457
- min-width : 32px;
458
- height : 32px;
459
- line-height : 30px;
475
+ .@{ant-prefix}-pagination-prev,
476
+ .@{ant-prefix}-pagination-next,
477
+ .@{ant-prefix}-pagination-jump-prev,
478
+ .@{ant-prefix}-pagination-jump-next {
479
+ min-width: 32px;
480
+ height: 32px;
481
+ line-height: 30px;
460
482
  background-color: #f7f9fa;
461
- border : 0;
462
- border-radius : @zaui-border-radius;
483
+ border: 0;
484
+ border-radius: @zaui-border-radius;
463
485
  }
464
486
 
465
- .ant-pagination-prev,
466
- .ant-pagination-next {
487
+ .@{ant-prefix}-pagination-prev,
488
+ .@{ant-prefix}-pagination-next {
467
489
  svg {
468
490
  .set-text-color();
469
491
  .set-text-size();
@@ -476,86 +498,85 @@
476
498
  }
477
499
  }
478
500
 
479
- .ant-pagination-prev .ant-pagination-item-link,
480
- .ant-pagination-next .ant-pagination-item-link {
481
- min-width : 32px;
482
- height : 32px;
483
- line-height : 32px;
501
+ .@{ant-prefix}-pagination-prev .@{ant-prefix}-pagination-item-link,
502
+ .@{ant-prefix}-pagination-next .@{ant-prefix}-pagination-item-link {
503
+ min-width: 32px;
504
+ height: 32px;
505
+ line-height: 32px;
484
506
  background-color: #fafafa;
485
- border : 0;
486
- border-radius : @zaui-border-radius;
507
+ border: 0;
508
+ border-radius: @zaui-border-radius;
487
509
  }
488
510
 
489
- .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 {
490
512
  .set-text-color();
491
513
  .set-text-size();
492
- width : 100%;
493
- height : 32px;
514
+ width: 100%;
515
+ height: 32px;
494
516
  padding: 0 12px;
495
517
  }
496
518
 
497
- .ant-select:not(.ant-select-customize-input) .ant-select-selector {
498
- position : relative;
519
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
520
+ position: relative;
499
521
  background-color: #fafafa;
500
- border : 0;
501
- border-radius : @zaui-border-radius;
522
+ border: 0;
523
+ border-radius: @zaui-border-radius;
502
524
  }
503
525
 
504
- .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
505
- .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 {
506
528
  color: @zaui-brand;
507
529
  }
508
530
  }
509
531
 
510
532
  // ant-descriptions
511
- .ant-descriptions {
512
-
513
- .ant-descriptions-item-label,
514
- .ant-descriptions-item-content {
533
+ .@{ant-prefix}-descriptions {
534
+ .@{ant-prefix}-descriptions-item-label,
535
+ .@{ant-prefix}-descriptions-item-content {
515
536
  .set-text-color();
516
537
  .set-text-size();
517
538
  }
518
539
  }
519
540
 
520
541
  // ant-breadcrumb
521
- .ant-breadcrumb {
542
+ .@{ant-prefix}-breadcrumb {
522
543
  .set-text-size();
523
544
 
524
- .ant-breadcrumb-link {
545
+ .@{ant-prefix}-breadcrumb-link {
525
546
  .set-lg-text-size();
526
547
  }
527
548
  }
528
549
 
529
550
  // ant-menu
530
- .ant-menu {
531
- color : @zaui-text !important;
532
- font-size: @zaui-font-size !important;
551
+ .@{ant-prefix}-menu {
552
+ color: @zaui-text !important;
553
+ font-size: @zaui-font-size !important;
533
554
 
534
- .ant-menu-item a {
555
+ .@{ant-prefix}-menu-item a {
535
556
  .set-text-color();
536
557
  }
537
558
 
538
- .ant-menu-item-selected a,
539
- .ant-menu-item-selected a:hover {
559
+ .@{ant-prefix}-menu-item-selected a,
560
+ .@{ant-prefix}-menu-item-selected a:hover {
540
561
  .set-brand-color();
541
562
  }
542
563
  }
543
564
 
544
- .ant-btn-primary {
565
+ .@{ant-prefix}-btn-primary {
545
566
  color: #fff;
546
567
  }
547
568
 
548
569
  // 下拉框三角样式替换
549
- .ant-select {
550
- .ant-select-arrow {
570
+ .@{ant-prefix}-select {
571
+ .@{ant-prefix}-select-arrow {
551
572
  .anticon-down {
552
- width : 0;
553
- height : 0;
573
+ width: 0;
574
+ height: 0;
554
575
  vertical-align: middle;
555
- border-top : 6px solid #909090;
556
- border-right : 5px solid transparent;
557
- border-left : 5px solid transparent;
558
- transition : transform 0.3s;
576
+ border-top: 6px solid #909090;
577
+ border-right: 5px solid transparent;
578
+ border-left: 5px solid transparent;
579
+ transition: transform 0.3s;
559
580
 
560
581
  svg {
561
582
  display: none;
@@ -564,24 +585,24 @@
564
585
  }
565
586
 
566
587
  // 多选样式重置
567
- &.ant-select-multiple {
568
- .ant-select-selection-item {
569
- align-items : center;
588
+ &.@{ant-prefix}-select-multiple {
589
+ .@{ant-prefix}-select-selection-item {
590
+ align-items: center;
570
591
  padding-right: 7px;
571
- background : #f2f3f5;
592
+ background: #f2f3f5;
572
593
 
573
- .ant-select-selection-item-remove {
574
- display : flex;
575
- align-items : center;
594
+ .@{ant-prefix}-select-selection-item-remove {
595
+ display: flex;
596
+ align-items: center;
576
597
  justify-content: center;
577
- width : 14px;
578
- height : 14px;
579
- background : #e0e1e7;
580
- border-radius : 100%;
598
+ width: 14px;
599
+ height: 14px;
600
+ background: #e0e1e7;
601
+ border-radius: 100%;
581
602
 
582
603
  .anticon-close {
583
604
  margin-top: 2px;
584
- color : #4e5969;
605
+ color: #4e5969;
585
606
  }
586
607
  }
587
608
  }
@@ -589,43 +610,42 @@
589
610
  }
590
611
 
591
612
  // 表格样式重置
592
- .ant-form {
613
+ .@{ant-prefix}-form {
593
614
  .pro-form-control {
594
- .ant-btn-primary {
615
+ .@{ant-prefix}-btn-primary {
595
616
  margin-right: @zaui-height-size-md;
596
617
  }
597
618
 
598
- .ant-btn-default {
619
+ .@{ant-prefix}-btn-default {
599
620
  margin-left: 0;
600
621
  }
601
622
  }
602
623
  }
603
624
 
604
625
  // 弹窗
605
- .ant-modal {
606
- .ant-modal-header {
626
+ .@{ant-prefix}-modal {
627
+ .@{ant-prefix}-modal-header {
607
628
  border-bottom: none;
608
629
  }
609
630
 
610
- .ant-modal-footer {
631
+ .@{ant-prefix}-modal-footer {
611
632
  border-top: none;
612
633
  }
613
634
  }
614
635
 
615
636
  // 数字输入框
616
- .ant-input-number {
637
+ .@{ant-prefix}-input-number {
617
638
  width: 100%;
618
639
  }
619
640
 
620
- .ant-input-textarea {
641
+ .@{ant-prefix}-input-textarea {
621
642
  position: relative;
622
643
 
623
- textarea.ant-input {
644
+ textarea.@{ant-prefix}-input {
624
645
  padding-bottom: 20px;
625
646
  }
626
647
 
627
-
628
- &.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 {
629
649
  &::after {
630
650
  background: transparent;
631
651
  }
@@ -637,52 +657,51 @@
637
657
  }
638
658
 
639
659
  &::after {
640
- position : absolute;
641
- right : 16px;
642
- bottom : 1px;
660
+ position: absolute;
661
+ right: 16px;
662
+ bottom: 1px;
663
+ width: calc(100% - 18px);
643
664
  margin-bottom: 0;
644
- background : #fff;
645
- width : calc(100% - 18px);
646
- text-align : right;
665
+ text-align: right;
666
+ background: #fff;
647
667
  }
648
668
  }
649
669
  }
650
670
 
651
671
  // 间隔
652
- .ant-space {
653
- &.ant-space-vertical {
672
+ .@{ant-prefix}-space {
673
+ &.@{ant-prefix}-space-vertical {
654
674
  display: flex;
655
- width : 100%;
675
+ width: 100%;
656
676
  }
657
677
  }
658
678
 
659
679
  // Cascader级联选择
660
- .ant-cascader {
661
- .ant-cascader-menu {
662
- height : auto;
680
+ .@{ant-prefix}-cascader {
681
+ .@{ant-prefix}-cascader-menu {
682
+ height: auto;
663
683
  max-height: 326px;
664
684
  }
665
685
  }
666
686
 
667
- .ant-select-dropdown {
668
-
687
+ .@{ant-prefix}-select-dropdown {
669
688
  // tree select 样式重置
670
- .ant-select-tree .ant-select-tree-node-content-wrapper {
671
- min-height : 0px;
689
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-node-content-wrapper {
690
+ min-height: 0px;
672
691
  line-height: initial;
673
692
  }
674
693
 
675
- .ant-select-tree .ant-select-tree-treenode {
676
- padding-top : 4px;
694
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-treenode {
695
+ padding-top: 4px;
677
696
  padding-bottom: 4px;
678
697
  }
679
698
 
680
- .ant-select-tree .ant-select-tree-treenode {
699
+ .@{ant-prefix}-select-tree .@{ant-prefix}-select-tree-treenode {
681
700
  align-items: center;
682
701
  }
683
702
  }
684
703
 
685
704
  // 气泡框样式
686
- .ant-popover {
705
+ .@{ant-prefix}-popover {
687
706
  width: max-content;
688
707
  }