@zat-design/sisyphus-react 3.2.2 → 3.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) 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/components/RenderField/index.js +6 -4
  10. package/es/ProEditTable/index.js +34 -20
  11. package/es/ProEditTable/style/index.less +57 -47
  12. package/es/ProEditTable/utils/config.d.ts +1 -1
  13. package/es/ProEditTable/utils/config.js +3 -3
  14. package/es/ProEnum/style/index.less +3 -0
  15. package/es/ProForm/components/base/DatePicker/index.d.ts +2 -2
  16. package/es/ProForm/components/base/DatePicker/index.js +5 -8
  17. package/es/ProForm/components/base/RangePicker/index.d.ts +3 -2
  18. package/es/ProForm/components/base/RangePicker/index.js +3 -5
  19. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  20. package/es/ProForm/components/base/TextArea/index.less +4 -3
  21. package/es/ProForm/components/base/TimePicker/index.js +3 -3
  22. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  23. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  24. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  25. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  26. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  27. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  28. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  29. package/es/ProForm/components/combination/ProModalSelect/index.js +22 -24
  30. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  31. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  32. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
  33. package/es/ProForm/components/combination/ProRangeLimit/index.js +6 -6
  34. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
  35. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
  36. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  37. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -4
  38. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  39. package/es/ProForm/components/old/ProCertValidity/index.js +16 -16
  40. package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
  41. package/es/ProForm/components/render/RenderFields.js +4 -5
  42. package/es/ProForm/style/index.less +46 -44
  43. package/es/ProIcon/style/index.less +4 -1
  44. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  45. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  46. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  47. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  48. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  49. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  50. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  51. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  52. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  53. package/es/ProLayout/components/ProHeader/index.js +4 -4
  54. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  55. package/es/ProLayout/style/index.less +10 -7
  56. package/es/ProSelect/index.less +3 -0
  57. package/es/ProStep/index.js +2 -2
  58. package/es/ProStep/style/index.less +3 -0
  59. package/es/ProTable/index.js +15 -7
  60. package/es/ProTable/style/index.less +76 -54
  61. package/es/ProTable/utils.d.ts +1 -1
  62. package/es/ProTable/utils.js +52 -33
  63. package/es/ProTabs/style/index.less +25 -23
  64. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  65. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  66. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  67. package/es/ProThemeTools/index.d.ts +1 -1
  68. package/es/ProThemeTools/index.js +7 -2
  69. package/es/ProThemeTools/propsType.d.ts +4 -0
  70. package/es/ProThemeTools/style/index.less +6 -3
  71. package/es/ProThemeTools/utils/index.d.ts +1 -1
  72. package/es/ProThemeTools/utils/index.js +2 -1
  73. package/es/ProTooltip/style/index.less +3 -0
  74. package/es/ProTree/components/CloseIcon.js +2 -4
  75. package/es/ProTree/components/ProTree.js +27 -11
  76. package/es/ProTree/components/Tree.js +1 -1
  77. package/es/ProTree/propsType.d.ts +2 -2
  78. package/es/ProTree/style/index.less +29 -26
  79. package/es/ProTree/utils.d.ts +6 -0
  80. package/es/ProTree/utils.js +11 -0
  81. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  82. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  83. package/es/ProTreeModal/components/Trigger.js +79 -19
  84. package/es/ProTreeModal/index.js +38 -6
  85. package/es/ProTreeModal/propsType.d.ts +5 -2
  86. package/es/ProTreeModal/style/index.less +11 -8
  87. package/es/ProTreeSelect/index.js +6 -4
  88. package/es/ProTreeSelect/propsType.d.ts +2 -0
  89. package/es/ProTreeSelect/style/index.less +25 -22
  90. package/es/ProUpload/components/DragRender.js +7 -4
  91. package/es/ProUpload/components/ImageRender.js +5 -1
  92. package/es/ProUpload/index.js +11 -7
  93. package/es/ProUpload/style/index.less +13 -4
  94. package/es/ProViewer/index.js +3 -1
  95. package/es/ProViewer/style/index.less +6 -3
  96. package/es/locale/en_US.d.ts +4 -0
  97. package/es/locale/en_US.js +5 -1
  98. package/es/locale/index.js +2 -2
  99. package/es/locale/zh_CN.d.ts +4 -0
  100. package/es/locale/zh_CN.js +6 -2
  101. package/es/old/ProCertValidity/index.js +16 -16
  102. package/es/old/ProCertValidity/propsType.d.ts +4 -4
  103. package/es/old/ProEditableTable/utils.d.ts +5 -5
  104. package/es/old/ProEditableTable/utils.js +5 -5
  105. package/es/style/core/compatible.less +6 -6
  106. package/es/style/theme/antd.less +272 -253
  107. package/lib/ProAction/index.less +3 -0
  108. package/lib/ProDownload/index.js +9 -6
  109. package/lib/ProDownload/style/index.less +5 -2
  110. package/lib/ProDrawerForm/index.js +0 -14
  111. package/lib/ProDrawerForm/style/index.less +76 -73
  112. package/lib/ProEditLabel/style/index.less +12 -9
  113. package/lib/ProEditTable/components/RenderField/index.js +6 -4
  114. package/lib/ProEditTable/index.js +32 -18
  115. package/lib/ProEditTable/style/index.less +57 -47
  116. package/lib/ProEditTable/utils/config.d.ts +1 -1
  117. package/lib/ProEditTable/utils/config.js +3 -3
  118. package/lib/ProEnum/style/index.less +3 -0
  119. package/lib/ProForm/components/base/DatePicker/index.d.ts +2 -2
  120. package/lib/ProForm/components/base/DatePicker/index.js +5 -8
  121. package/lib/ProForm/components/base/RangePicker/index.d.ts +3 -2
  122. package/lib/ProForm/components/base/RangePicker/index.js +4 -4
  123. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  124. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  125. package/lib/ProForm/components/base/TimePicker/index.js +3 -3
  126. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  127. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  128. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  129. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  130. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  131. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  132. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  133. package/lib/ProForm/components/combination/ProModalSelect/index.js +22 -24
  134. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  135. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  136. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
  137. package/lib/ProForm/components/combination/ProRangeLimit/index.js +6 -6
  138. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
  139. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
  140. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  141. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -4
  142. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  143. package/lib/ProForm/components/old/ProCertValidity/index.js +16 -16
  144. package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
  145. package/lib/ProForm/components/render/RenderFields.js +4 -5
  146. package/lib/ProForm/style/index.less +46 -44
  147. package/lib/ProIcon/style/index.less +4 -1
  148. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  149. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  150. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  151. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  152. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  153. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  154. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  155. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  156. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  157. package/lib/ProLayout/components/ProHeader/index.js +4 -4
  158. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  159. package/lib/ProLayout/style/index.less +10 -7
  160. package/lib/ProSelect/index.less +3 -0
  161. package/lib/ProStep/index.js +1 -1
  162. package/lib/ProStep/style/index.less +3 -0
  163. package/lib/ProTable/index.js +14 -6
  164. package/lib/ProTable/style/index.less +76 -54
  165. package/lib/ProTable/utils.d.ts +1 -1
  166. package/lib/ProTable/utils.js +52 -33
  167. package/lib/ProTabs/style/index.less +25 -23
  168. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  169. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  170. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  171. package/lib/ProThemeTools/index.d.ts +1 -1
  172. package/lib/ProThemeTools/index.js +7 -2
  173. package/lib/ProThemeTools/propsType.d.ts +4 -0
  174. package/lib/ProThemeTools/style/index.less +6 -3
  175. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  176. package/lib/ProThemeTools/utils/index.js +2 -1
  177. package/lib/ProTooltip/style/index.less +3 -0
  178. package/lib/ProTree/components/CloseIcon.js +2 -4
  179. package/lib/ProTree/components/ProTree.js +26 -10
  180. package/lib/ProTree/components/Tree.js +1 -1
  181. package/lib/ProTree/propsType.d.ts +2 -2
  182. package/lib/ProTree/style/index.less +29 -26
  183. package/lib/ProTree/utils.d.ts +6 -0
  184. package/lib/ProTree/utils.js +12 -0
  185. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  186. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  187. package/lib/ProTreeModal/components/Trigger.js +74 -18
  188. package/lib/ProTreeModal/index.js +38 -6
  189. package/lib/ProTreeModal/propsType.d.ts +5 -2
  190. package/lib/ProTreeModal/style/index.less +11 -8
  191. package/lib/ProTreeSelect/index.js +6 -4
  192. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  193. package/lib/ProTreeSelect/style/index.less +25 -22
  194. package/lib/ProUpload/components/DragRender.js +7 -4
  195. package/lib/ProUpload/components/ImageRender.js +5 -1
  196. package/lib/ProUpload/index.js +11 -7
  197. package/lib/ProUpload/style/index.less +13 -4
  198. package/lib/ProViewer/index.js +4 -3
  199. package/lib/ProViewer/style/index.less +6 -3
  200. package/lib/locale/en_US.d.ts +4 -0
  201. package/lib/locale/en_US.js +5 -1
  202. package/lib/locale/index.js +2 -2
  203. package/lib/locale/zh_CN.d.ts +4 -0
  204. package/lib/locale/zh_CN.js +6 -2
  205. package/lib/old/ProCertValidity/index.js +16 -16
  206. package/lib/old/ProCertValidity/propsType.d.ts +4 -4
  207. package/lib/old/ProEditableTable/utils.d.ts +5 -5
  208. package/lib/old/ProEditableTable/utils.js +5 -5
  209. package/lib/style/core/compatible.less +6 -6
  210. package/lib/style/theme/antd.less +272 -253
  211. package/package.json +3 -2
  212. package/typings.d.ts +0 -6
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-edit-table {
2
5
  .pro-edit-table-tooltip {
3
6
  display : inline-flex;
@@ -35,7 +38,7 @@
35
38
  justify-content: center;
36
39
  margin-top: var(--zaui-space-size-md, 16px);
37
40
 
38
- .ant-btn-link {
41
+ .@{ant-prefix}-btn-link {
39
42
  padding: 0;
40
43
  }
41
44
  }
@@ -47,7 +50,7 @@
47
50
  }
48
51
 
49
52
 
50
- .is-cell .ant-form-item .ant-form-item-row .ant-form-item-control .ant-form-item-control-input {
53
+ .is-cell .@{ant-prefix}-form-item .@{ant-prefix}-form-item-row .@{ant-prefix}-form-item-control .@{ant-prefix}-form-item-control-input {
51
54
  border: 1px solid transparent;
52
55
 
53
56
  &:hover {
@@ -66,15 +69,15 @@
66
69
  }
67
70
 
68
71
  &.pro-table-no-stripe {
69
- .ant-table-tbody tr:nth-child(n)>td {
72
+ .@{ant-prefix}-table-tbody tr:nth-child(n)>td {
70
73
  background-color: var(--zaui-base-bg, #fff);
71
74
  }
72
75
  }
73
76
 
74
- .ant-space {
77
+ .@{ant-prefix}-space {
75
78
  gap: var(--zaui-space-size-sm, 8px);
76
79
 
77
- .ant-btn-link {
80
+ .@{ant-prefix}-btn-link {
78
81
  padding: 0 var(--zaui-space-size-xs, 4px);
79
82
 
80
83
  &:first-child {
@@ -83,12 +86,12 @@
83
86
  }
84
87
  }
85
88
 
86
- .ant-table-header>table .ant-table-thead>tr>th.ant-table-selection-column {
89
+ .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th.@{ant-prefix}-table-selection-column {
87
90
  padding-left: var(--zaui-space-size-md, 16px);
88
91
  padding-right: var(--zaui-space-size-md, 16px);
89
92
  }
90
93
 
91
- .ant-table-header>table .ant-table-thead>tr>th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required {
94
+ .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th:not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan]).is-required {
92
95
  &::after {
93
96
  content: "";
94
97
  }
@@ -130,27 +133,29 @@
130
133
  }
131
134
  }
132
135
 
133
- .ant-table-content {
136
+ .@{ant-prefix}-table-scroll-horizontal {
137
+ .@{ant-prefix}-table-cell-fix-right-first {
138
+ &::after {
139
+ box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
140
+ }
141
+ }
142
+ }
143
+
144
+ .@{ant-prefix}-table-content {
134
145
  >table {
135
- .ant-table-summary {
146
+ .@{ant-prefix}-table-summary {
136
147
  background-color: var(--zaui-table-header-bg, #f2f3f5);
137
148
  color : var(--zaui-text, #343434);
138
149
  font-weight : 600;
139
150
 
140
- .ant-table-cell-fix-left,
141
- .ant-table-cell-fix-right {
151
+ .@{ant-prefix}-table-cell-fix-left,
152
+ .@{ant-prefix}-table-cell-fix-right {
142
153
  background-color: var(--zaui-table-header-bg, #f2f3f5);
143
154
 
144
155
  }
145
156
  }
146
157
 
147
- .ant-table-cell-fix-right-first {
148
- &::after {
149
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
150
- }
151
- }
152
-
153
- th.ant-table-selection-column {
158
+ th.@{ant-prefix}-table-selection-column {
154
159
  width: 48px;
155
160
  }
156
161
 
@@ -160,7 +165,7 @@
160
165
  }
161
166
  }
162
167
 
163
- .ant-table-thead>tr>th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required {
168
+ .@{ant-prefix}-table-thead>tr>th:not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan]).is-required {
164
169
  &::after {
165
170
  content: "";
166
171
  }
@@ -204,83 +209,88 @@
204
209
  }
205
210
  }
206
211
 
207
- .ant-table-cell {
208
- .ant-form-item {
212
+ .@{ant-prefix}-table-cell {
213
+ .@{ant-prefix}-form-item {
209
214
  margin-bottom: 0px !important;
210
215
  }
211
216
  }
212
217
 
213
- .ant-table.ant-table-bordered>.ant-table-container {
218
+ .@{ant-prefix}-table.@{ant-prefix}-table-bordered>.@{ant-prefix}-table-container {
214
219
  border: 0;
215
220
  }
216
221
 
217
- .ant-table-thead>tr>th {
222
+ .@{ant-prefix}-table-thead>tr>th {
218
223
  border : 0;
219
224
  white-space : nowrap;
220
225
  background-color: var(--zaui-table-header-bg, #f2f3f5);
221
226
  }
222
227
 
223
- .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
228
+ .@{ant-prefix}-table-thead>tr>th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
224
229
  height: 0;
225
230
  }
226
231
 
227
- .ant-table-tbody>tr:not(.ant-table-placeholder)>td {
232
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
228
233
  border-bottom: 0;
229
234
  border-right : 0;
230
235
  border-top : 0;
231
236
  }
232
237
 
233
- .ant-table-tbody>.is-editing:not(.ant-table-measure-row)>td {
238
+ .@{ant-prefix}-table-tbody>.is-editing:not(.@{ant-prefix}-table-measure-row)>td {
234
239
  border-bottom : 0;
235
240
  vertical-align: top;
236
241
  }
237
242
 
238
- .ant-table-tbody tr:nth-child(n)>td {
243
+ .@{ant-prefix}-table-tbody tr:nth-child(n)>td {
239
244
  background-color: var(--zaui-base-bg, #ffffff);
240
245
  }
241
246
 
242
- .ant-table-tbody tr:nth-child(2n)>td {
247
+ .@{ant-prefix}-table-tbody tr:nth-child(2n)>td {
243
248
  background-color: var(--zaui-table-strip-bg, #FAFAFA);
244
249
  }
245
250
 
246
- .ant-table-tbody>.ant-table-placeholder>td {
251
+ .@{ant-prefix}-table-tbody>.@{ant-prefix}-table-placeholder>td {
247
252
  background-color: var(--zaui-base-bg, #ffffff);
248
253
  }
249
254
 
250
- .ant-table-tbody {
255
+ .@{ant-prefix}-table-tbody {
251
256
 
252
- >tr:hover:not(.ant-table-expanded-row, .ant-table-placeholder)>td,
253
- .ant-table-row-hover,
254
- .ant-table-row-hover>td {
257
+ >tr:hover:not(.@{ant-prefix}-table-expanded-row)>td,
258
+ .@{ant-prefix}-table-row-hover,
259
+ .@{ant-prefix}-table-row-hover>td {
260
+ background: #FAFAFA;
261
+ }
262
+ >tr:hover:not(.@{ant-prefix}-table-placeholder)>td,
263
+ .@{ant-prefix}-table-row-hover,
264
+ .@{ant-prefix}-table-row-hover>td {
255
265
  background: #FAFAFA;
256
266
  }
257
267
  }
258
268
 
259
- .ant-table-fixed {
269
+ .@{ant-prefix}-table-fixed {
260
270
 
261
- .ant-table-row-hover,
262
- .ant-table-row-hover>td {
271
+ .@{ant-prefix}-table-row-hover,
272
+ .@{ant-prefix}-table-row-hover>td {
263
273
  background: #FAFAFA;
264
274
  }
265
275
  }
266
276
 
267
- .ant-table-fixed-header {
268
- .ant-table-tbody tr:nth-child(n)>td {
277
+ .@{ant-prefix}-table-fixed-header {
278
+ .@{ant-prefix}-table-tbody tr:nth-child(n)>td {
269
279
  background-color: #FAFAFA;
270
280
  }
271
281
 
272
- .ant-table-tbody tr:nth-child(2n)>td {
282
+ .@{ant-prefix}-table-tbody tr:nth-child(2n)>td {
273
283
  background-color: var(--zaui-base-bg, #ffffff);
274
284
  }
275
285
  }
276
286
 
277
- .ant-table-summary>tr>td {
287
+ .@{ant-prefix}-table-summary>tr>td {
278
288
  border-bottom: none;
279
289
  }
280
290
 
281
- .ant-table-pagination {
282
- .ant-pagination-options {
283
- .ant-select.ant-select-in-form-item {
291
+ .@{ant-prefix}-table-pagination {
292
+ .@{ant-prefix}-pagination-options {
293
+ .@{ant-prefix}-select.@{ant-prefix}-select-in-form-item {
284
294
  width: auto;
285
295
  }
286
296
  }
@@ -299,11 +309,11 @@
299
309
 
300
310
  .pro-edit-table-toolbar {
301
311
  margin-top: var(--zaui-space-size-md, 16px);
302
- .ant-space {
312
+ .@{ant-prefix}-space {
303
313
  gap: var(--zaui-space-size-sm, 8px);
304
314
 
305
- .ant-space-item {
306
- .ant-btn-link {
315
+ .@{ant-prefix}-space-item {
316
+ .@{ant-prefix}-btn-link {
307
317
  display: flex;
308
318
  align-items: center;
309
319
  padding: 0 var(--zaui-space-size-xs, 4px);
@@ -321,7 +331,7 @@
321
331
  }
322
332
 
323
333
  .pro-edit-table-drag {
324
- table tr th.ant-table-selection-column.ant-table-cell-fix-left{
334
+ table tr th.@{ant-prefix}-table-selection-column.@{ant-prefix}-table-cell-fix-left{
325
335
  text-align: right;
326
336
  }
327
337
  }
@@ -20,6 +20,6 @@ export declare const actions: {
20
20
  save: ({ record, editingKeys, setState, form, rowName, virtualRowName, result }: any) => Promise<void>;
21
21
  cancel: ({ name, record, editingKeys, setState, form, virtualRowName, virtualKey }: any) => void;
22
22
  delete: ({ name, record, editingKeys, setState, form, virtualKey, onlyOneLineMsg }: any) => boolean;
23
- add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, }: any) => Promise<boolean>;
23
+ add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, prefixCls, }: any) => Promise<boolean>;
24
24
  mulDelete: ({ form, name, virtualKey, setState, selectedRowKeys, editingKeys }: any) => void;
25
25
  };
@@ -174,11 +174,11 @@ var actions = exports.actions = {
174
174
  add: function () {
175
175
  var _add = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref5) {
176
176
  var _tableRef$current$que, _tableRef$current$que2;
177
- var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, nextData, rowKey, addData, nextEditingKeys;
177
+ var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
178
178
  return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
179
179
  while (1) switch (_context2.prev = _context2.next) {
180
180
  case 0:
181
- result = _ref5.result, insertType = _ref5.insertType, editingKeys = _ref5.editingKeys, setState = _ref5.setState, form = _ref5.form, name = _ref5.name, virtualName = _ref5.virtualName, virtualKey = _ref5.virtualKey, onlyOneLineMsg = _ref5.onlyOneLineMsg, tableRef = _ref5.tableRef;
181
+ result = _ref5.result, insertType = _ref5.insertType, editingKeys = _ref5.editingKeys, setState = _ref5.setState, form = _ref5.form, name = _ref5.name, virtualName = _ref5.virtualName, virtualKey = _ref5.virtualKey, onlyOneLineMsg = _ref5.onlyOneLineMsg, tableRef = _ref5.tableRef, _ref5$prefixCls = _ref5.prefixCls, prefixCls = _ref5$prefixCls === void 0 ? 'ant' : _ref5$prefixCls;
182
182
  nextData = (0, _toConsumableArray2.default)(form.getFieldValue(name) || []); // 单行编辑时,需要先保存,才能进行下面的编辑
183
183
  if (!(virtualKey && editingKeys.length >= 1)) {
184
184
  _context2.next = 5;
@@ -197,7 +197,7 @@ var actions = exports.actions = {
197
197
  }
198
198
  insertType === 'before' ? nextData.unshift(addData) : nextData.push(addData);
199
199
  form.setFieldValue(name, nextData);
200
- (_tableRef$current$que = tableRef.current.querySelector('.ant-table-body')) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
200
+ (_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
201
201
  top: 10000,
202
202
  behavior: 'smooth'
203
203
  });
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-enum {
2
5
  &-tag-root {
3
6
  display: flex;
@@ -1,12 +1,12 @@
1
1
  import { DatePickerProps, TimePickerProps } from 'antd';
2
- import { Moment } from 'moment';
2
+ import { Dayjs } from 'dayjs';
3
3
  import React from 'react';
4
4
  import { PickerPanelDateProps } from 'antd/lib/calendar/generateCalendar';
5
5
  export type Props = DatePickerProps & TimePickerProps & {
6
6
  isView?: boolean;
7
7
  viewEmpty?: React.ReactNode;
8
8
  format?: string;
9
- showTime?: PickerPanelDateProps<Moment>['showTime'];
9
+ showTime?: PickerPanelDateProps<Dayjs>['showTime'];
10
10
  showNow?: boolean;
11
11
  };
12
12
  declare const DatePicker: React.FC<Props>;
@@ -12,7 +12,7 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  var _antd = require("antd");
13
13
  var _lodash = require("lodash");
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
- var _moment = _interopRequireDefault(require("moment"));
15
+ var _dayjs = _interopRequireDefault(require("dayjs"));
16
16
  var _ProConfigProvider = require("../../../../ProConfigProvider");
17
17
  var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
18
18
  var _Container = _interopRequireDefault(require("../../Container"));
@@ -36,12 +36,12 @@ var DatePicker = function DatePicker(props) {
36
36
  var viewChildren = null;
37
37
  if (!value) {
38
38
  viewChildren = null;
39
- } else if (typeof format === 'string' && _moment.default.isMoment(value)) {
39
+ } else if (typeof format === 'string' && _dayjs.default.isDayjs(value)) {
40
40
  viewChildren = value.format(format);
41
41
  } else if ((0, _lodash.isFunction)(format)) {
42
42
  viewChildren = format(value);
43
43
  } else if ((0, _lodash.isString)(value)) {
44
- viewChildren = (0, _moment.default)(value).format(format);
44
+ viewChildren = (0, _dayjs.default)(value).format(format);
45
45
  }
46
46
  return (0, _jsxRuntime.jsx)(_Container.default, {
47
47
  viewEmpty: viewEmpty,
@@ -52,16 +52,13 @@ var DatePicker = function DatePicker(props) {
52
52
  var _rest = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
53
53
  showTime: rest.showTime === undefined && valueType === 'dateTime' || rest.showTime
54
54
  });
55
- if (_rest === null || _rest === void 0 ? void 0 : _rest.placeholder) {
56
- _rest === null || _rest === void 0 ? true : delete _rest.placeholder;
57
- }
58
55
  // 字符串时间格式兼容
59
56
  if ((0, _lodash.isString)(_rest.value)) {
60
- _rest.value = (0, _moment.default)(_rest.value);
57
+ _rest.value = (0, _dayjs.default)(_rest.value);
61
58
  }
62
59
  if (['dateStartTime', 'dateEndTime'].includes(valueType) && rest.showTime === undefined) {
63
60
  _rest.showTime = {
64
- value: (0, _moment.default)(valueType === 'dateStartTime' ? '00:00:00' : '23:59:59', 'HH:mm:ss'),
61
+ value: (0, _dayjs.default)(valueType === 'dateStartTime' ? '00:00:00' : '23:59:59', 'HH:mm:ss'),
65
62
  disabled: true
66
63
  };
67
64
  }
@@ -1,11 +1,12 @@
1
- import type { RangePickerProps } from 'antd/es/date-picker';
2
1
  import React from 'react';
2
+ import { Dayjs } from 'dayjs';
3
+ import { RangePickerProps } from 'antd/lib/date-picker/generatePicker';
3
4
  import { ProFormOtherProps } from '../../../propsType';
4
5
  export type Props = {
5
6
  otherProps?: ProFormOtherProps;
6
7
  separator?: any;
7
8
  showTime?: any;
8
9
  isView?: boolean;
9
- } & Omit<RangePickerProps, 'separator'>;
10
+ } & Omit<RangePickerProps<Dayjs>, 'separator'>;
10
11
  declare const RangePicker: React.FC<Props>;
11
12
  export default RangePicker;
@@ -10,11 +10,11 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _antd = require("antd");
12
12
  var _lodash = require("lodash");
13
- var _moment = _interopRequireDefault(require("moment"));
13
+ var _dayjs = _interopRequireDefault(require("dayjs"));
14
14
  var _ProConfigProvider = require("../../../../ProConfigProvider");
15
15
  var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
16
16
  var _Container = _interopRequireDefault(require("../../Container"));
17
- var _excluded = ["format", "otherProps", "separator"]; // @ts-check
17
+ var _excluded = ["format", "otherProps", "separator"];
18
18
  var AntRangePicker = _antd.DatePicker.RangePicker;
19
19
  var RangePicker = function RangePicker(props) {
20
20
  var _props$format = props.format,
@@ -56,9 +56,9 @@ var RangePicker = function RangePicker(props) {
56
56
  var _res = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
57
57
  showTime: !rest.showTime && valueType === 'dateTime' || rest.showTime
58
58
  });
59
- // 字符串时间格式兼容
59
+ // // 字符串时间格式兼容
60
60
  if (Array.isArray(_res.value) && (0, _lodash.isString)(_res.value[0]) && (0, _lodash.isString)(_res.value[1])) {
61
- _res.value = [(0, _moment.default)(_res.value[0]), (0, _moment.default)(_res.value[1])];
61
+ _res.value = [(0, _dayjs.default)(_res.value[0]), (0, _dayjs.default)(_res.value[1])];
62
62
  }
63
63
  return (0, _jsxRuntime.jsx)(AntRangePicker, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, initialConfig), (0, _lodash.omit)(_res, ['separator'])));
64
64
  };
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .switch-checkbox-view {
2
5
  display : flex;
3
6
  align-items: center;
@@ -1,7 +1,8 @@
1
- .pro-textarea {
2
- }
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
3
4
  div.pro-textarea-view {
4
- .ant-input-disabled {
5
+ .@{ant-prefix}-input-disabled {
5
6
  background: transparent !important;
6
7
  }
7
8
  &::after {
@@ -9,7 +9,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _antd = require("antd");
12
- var _moment = _interopRequireDefault(require("moment"));
12
+ var _dayjs = _interopRequireDefault(require("dayjs"));
13
13
  var _ProConfigProvider = require("../../../../ProConfigProvider");
14
14
  var _Container = _interopRequireDefault(require("../../Container"));
15
15
  var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
@@ -31,7 +31,7 @@ var TimePicker = function TimePicker(props) {
31
31
  var initialConfig = (0, _ProConfigProvider.useProConfig)('AntTimePicker');
32
32
  var handleChange = function handleChange(value) {
33
33
  if (valueType === 'dateTime') {
34
- onChange && onChange(value ? (0, _moment.default)(value).format(format) : undefined);
34
+ onChange && onChange(value ? (0, _dayjs.default)(value).format(format) : undefined);
35
35
  }
36
36
  };
37
37
  if (isView) {
@@ -41,7 +41,7 @@ var TimePicker = function TimePicker(props) {
41
41
  });
42
42
  }
43
43
  return (0, _jsxRuntime.jsx)(_antd.TimePicker, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
44
- value: value ? (0, _moment.default)(value, format) : undefined
44
+ value: value ? (0, _dayjs.default)(value, format) : undefined
45
45
  }, initialConfig), rest), {}, {
46
46
  format: format,
47
47
  onChange: handleChange
@@ -1,3 +1,6 @@
1
- .ant-picker {
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .@{ant-prefix}-picker {
2
5
  display: flex;
3
6
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-container {
2
5
 
3
6
  &.pro-container-diy {
@@ -9,7 +12,7 @@
9
12
  margin-right : -12px;
10
13
  margin-bottom: -22px;
11
14
 
12
- &>.ant-col {
15
+ &>.@{ant-prefix}-col {
13
16
  padding-left : 12px;
14
17
  padding-right: 12px;
15
18
  }
@@ -24,13 +27,13 @@
24
27
  margin-left : -12px;
25
28
  margin-right : -12px;
26
29
 
27
- &>.ant-col {
30
+ &>.@{ant-prefix}-col {
28
31
  padding-left : 12px;
29
32
  padding-right: 12px;
30
33
  }
31
34
  }
32
35
 
33
- .pro-collapse.ant-collapse .pro-collapse-panel {
36
+ .pro-collapse.@{ant-prefix}-collapse .pro-collapse-panel {
34
37
  margin-bottom: 0;
35
38
  }
36
39
  }
@@ -1,28 +1,23 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-form-list-block-title {
2
- height : 14px;
3
- margin : @zaui-space-size-xs 0;
5
+ height: 14px;
6
+ margin: @zaui-space-size-xs 0;
4
7
  padding-left: @zaui-space-size-sm;
5
- font-weight : 600;
6
- line-height : 14px;
7
- border-left : 4px solid @zaui-brand;
8
+ font-weight: 600;
9
+ line-height: 14px;
10
+ border-left: 4px solid @zaui-brand;
8
11
  }
9
12
 
10
13
  .pro-form-list {
11
- display : flex;
14
+ display: flex;
12
15
  padding-bottom: 0;
13
16
 
14
- &.pro-form-list-last {
15
-
16
- .pro-form-list-drag-handle,
17
- .ant-form-item {
18
- margin-bottom: 0 !important;
19
- }
20
- }
21
-
22
17
  .single-delete {
23
- width : 14px !important;
18
+ width: 14px !important;
24
19
  height: 14px !important;
25
- color : @zaui-placeholder;
20
+ color: @zaui-placeholder;
26
21
 
27
22
  &:hover {
28
23
  color: @zaui-aide-text;
@@ -36,24 +31,25 @@
36
31
  .pro-form-list-action {
37
32
  padding-bottom: var(--zaui-height-size-md, 16px);
38
33
 
39
- &>.ant-space-item:first-child>.ant-btn-link {
34
+ & > .@{ant-prefix}-space-item:first-child > .@{ant-prefix}-btn-link {
40
35
  margin-left: @zaui-space-size-sm;
41
36
  }
42
37
  }
43
38
 
44
39
  .pro-form-list-drag-handle {
45
- display : flex;
46
- align-items : center;
47
- height : 32px;
40
+ display: flex;
41
+ align-items: center;
42
+ height: 32px;
48
43
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
49
- padding : 0;
44
+ padding: 0;
50
45
  padding-right: @zaui-space-size-sm;
51
- border : none;
46
+ border: none;
52
47
  }
53
48
  }
54
49
 
55
50
  .pro-form-list-line {
56
51
  padding: var(--zaui-height-size-md, 16px);
52
+ padding-bottom: 0;
57
53
 
58
54
  &:hover {
59
55
  background: rgba(0, 0, 0, 0.018);
@@ -62,11 +58,11 @@
62
58
 
63
59
  .pro-form-list-toolbar,
64
60
  .pro-form-list-action {
65
- .ant-btn-link {
61
+ .@{ant-prefix}-btn-link {
66
62
  padding: @zaui-space-size-xs 0;
67
63
  }
68
64
 
69
- .ant-btn-text:hover {
65
+ .@{ant-prefix}-btn-text:hover {
70
66
  background: transparent;
71
67
  }
72
68
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .border-radius(@start-end: 0, @end-end: 0, @start-start: 0, @end-start: 0) {
2
5
  border-start-end-radius : @start-end;
3
6
  border-end-end-radius : @end-end;
@@ -19,38 +22,38 @@
19
22
  width: unset !important;
20
23
 
21
24
  &.pro-group-diy-width {
22
- .ant-space .ant-space-item {
25
+ .@{ant-prefix}-space .@{ant-prefix}-space-item {
23
26
  width: auto;
24
27
 
25
- .ant-space-item {
28
+ .@{ant-prefix}-space-item {
26
29
  width: auto;
27
30
  }
28
31
  }
29
32
  }
30
33
 
31
- .ant-space {
34
+ .@{ant-prefix}-space {
32
35
  width: 100%;
33
36
 
34
- .ant-space-item {
37
+ .@{ant-prefix}-space-item {
35
38
  width: 100%;
36
39
  }
37
40
 
38
- .ant-form-item {
41
+ .@{ant-prefix}-form-item {
39
42
 
40
43
  margin-bottom: 0 !important;
41
44
  }
42
45
  }
43
46
 
44
- .ant-form-item-label {
47
+ .@{ant-prefix}-form-item-label {
45
48
  display: none;
46
49
  }
47
50
 
48
- .ant-space-compact {
51
+ .@{ant-prefix}-space-compact {
49
52
  align-items: center;
50
53
  flex : auto;
51
54
  width : 100%;
52
55
 
53
- .ant-form-item {
56
+ .@{ant-prefix}-form-item {
54
57
  margin-bottom: 0 !important;
55
58
  }
56
59
 
@@ -62,8 +65,8 @@
62
65
  }
63
66
 
64
67
  // 定制内敛合并样式
65
- .ant-input-affix-wrapper,
66
- .ant-select {
68
+ .@{ant-prefix}-input-affix-wrapper,
69
+ .@{ant-prefix}-select {
67
70
  .border-radius(0, 0, 0, 0);
68
71
 
69
72
  &:nth-child(n+2) {
@@ -79,19 +82,19 @@
79
82
  }
80
83
  }
81
84
 
82
- .ant-select {
83
- .ant-select-selector {
85
+ .@{ant-prefix}-select {
86
+ .@{ant-prefix}-select-selector {
84
87
  .border-radius(0, 0, 0, 0);
85
88
  }
86
89
 
87
90
  &:first-child {
88
- .ant-select-selector {
91
+ .@{ant-prefix}-select-selector {
89
92
  .start-radius()
90
93
  }
91
94
  }
92
95
 
93
96
  &:last-child {
94
- .ant-select-selector {
97
+ .@{ant-prefix}-select-selector {
95
98
  .end-radius()
96
99
  }
97
100
  }
@@ -99,7 +102,7 @@
99
102
  }
100
103
 
101
104
  // 报错样式定制
102
- .ant-input-affix-wrapper-status-error~.group-separator {
105
+ .@{ant-prefix}-input-affix-wrapper-status-error~.group-separator {
103
106
  border-color: var(--ant-error-color);
104
107
  color : var(--ant-error-color);
105
108
  }