@zat-design/sisyphus-react 3.2.1 → 3.2.2-beta.10

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 (239) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +106 -39
  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 +76 -73
  7. package/es/ProEditLabel/style/index.less +12 -9
  8. package/es/ProEditTable/components/RenderField/index.js +66 -21
  9. package/es/ProEditTable/index.js +18 -7
  10. package/es/ProEditTable/propsType.d.ts +11 -1
  11. package/es/ProEditTable/style/index.less +50 -42
  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/Checkbox/index.d.ts +1 -0
  16. package/es/ProForm/components/base/Checkbox/index.js +5 -3
  17. package/es/ProForm/components/base/DatePicker/index.js +3 -5
  18. package/es/ProForm/components/base/Input/index.js +4 -2
  19. package/es/ProForm/components/base/Input/propsType.d.ts +1 -0
  20. package/es/ProForm/components/base/InputNumber/index.d.ts +1 -0
  21. package/es/ProForm/components/base/InputNumber/index.js +5 -3
  22. package/es/ProForm/components/base/ProCascader/index.js +6 -6
  23. package/es/ProForm/components/base/Radio/index.d.ts +1 -0
  24. package/es/ProForm/components/base/Radio/index.js +4 -2
  25. package/es/ProForm/components/base/RangePicker/index.d.ts +1 -0
  26. package/es/ProForm/components/base/RangePicker/index.js +5 -3
  27. package/es/ProForm/components/base/Select/index.d.ts +1 -0
  28. package/es/ProForm/components/base/Select/index.js +4 -2
  29. package/es/ProForm/components/base/Switch/index.d.ts +1 -0
  30. package/es/ProForm/components/base/Switch/index.js +4 -2
  31. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
  32. package/es/ProForm/components/base/SwitchCheckbox/index.js +4 -2
  33. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  34. package/es/ProForm/components/base/TextArea/index.d.ts +1 -0
  35. package/es/ProForm/components/base/TextArea/index.js +4 -3
  36. package/es/ProForm/components/base/TextArea/index.less +4 -3
  37. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -0
  38. package/es/ProForm/components/base/TimePicker/index.js +4 -2
  39. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  40. package/es/ProForm/components/combination/Container/index.js +7 -5
  41. package/es/ProForm/components/combination/Container/style/index.less +3 -3
  42. package/es/ProForm/components/combination/FormList/index.js +6 -5
  43. package/es/ProForm/components/combination/FormList/style/index.less +17 -24
  44. package/es/ProForm/components/combination/Group/index.js +6 -3
  45. package/es/ProForm/components/combination/Group/style/index.less +15 -15
  46. package/es/ProForm/components/combination/ProAddressBar/index.js +29 -30
  47. package/es/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  48. package/es/ProForm/components/combination/ProCombination/index.js +11 -11
  49. package/es/ProForm/components/combination/ProCombination/style/index.less +2 -2
  50. package/es/ProForm/components/combination/ProModalSelect/index.js +4 -5
  51. package/es/ProForm/components/combination/ProModalSelect/style/index.less +30 -12
  52. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
  53. package/es/ProForm/components/combination/ProNumberRange/index.js +7 -7
  54. package/es/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  55. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
  56. package/es/ProForm/components/combination/ProRangeLimit/index.js +4 -2
  57. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
  58. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -2
  59. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  60. package/es/ProForm/components/render/Render.js +54 -20
  61. package/es/ProForm/components/render/RenderFields.d.ts +1 -0
  62. package/es/ProForm/components/render/RenderFields.js +13 -12
  63. package/es/ProForm/index.js +5 -2
  64. package/es/ProForm/propsType.d.ts +1 -0
  65. package/es/ProForm/style/index.less +89 -80
  66. package/es/ProForm/utils/contrastOriginal.d.ts +10 -1
  67. package/es/ProForm/utils/contrastOriginal.js +15 -18
  68. package/es/ProForm/utils/useChanged.d.ts +15 -1
  69. package/es/ProForm/utils/useChanged.js +27 -8
  70. package/es/ProIcon/style/index.less +4 -1
  71. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  72. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  73. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  74. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  75. package/es/ProLayout/components/ProCollapse/style/index.less +24 -24
  76. package/es/ProLayout/components/ProFooter/style/index.less +8 -7
  77. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  78. package/es/ProLayout/components/ProHeader/index.js +1 -0
  79. package/es/ProLayout/components/ProHeader/style/index.less +17 -11
  80. package/es/ProLayout/style/index.less +10 -7
  81. package/es/ProSelect/index.js +6 -3
  82. package/es/ProSelect/index.less +3 -0
  83. package/es/ProStep/components/Item/index.js +1 -4
  84. package/es/ProStep/style/index.less +3 -0
  85. package/es/ProTable/components/RenderColumn/index.js +1 -1
  86. package/es/ProTable/index.js +3 -3
  87. package/es/ProTable/style/index.less +72 -52
  88. package/es/ProTabs/style/index.less +26 -24
  89. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  90. package/es/ProThemeTools/component/PrdTools/index.js +28 -26
  91. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  92. package/es/ProThemeTools/index.d.ts +1 -1
  93. package/es/ProThemeTools/index.js +9 -3
  94. package/es/ProThemeTools/propsType.d.ts +4 -0
  95. package/es/ProThemeTools/style/index.less +6 -3
  96. package/es/ProThemeTools/utils/index.d.ts +1 -1
  97. package/es/ProThemeTools/utils/index.js +2 -1
  98. package/es/ProTooltip/style/index.less +3 -0
  99. package/es/ProTree/components/CloseIcon.js +2 -4
  100. package/es/ProTree/components/Tree.js +43 -42
  101. package/es/ProTree/style/index.less +29 -32
  102. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  103. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  104. package/es/ProTreeModal/components/Trigger.js +79 -19
  105. package/es/ProTreeModal/index.js +38 -6
  106. package/es/ProTreeModal/propsType.d.ts +5 -2
  107. package/es/ProTreeModal/style/index.less +11 -8
  108. package/es/ProTreeSelect/index.js +3 -2
  109. package/es/ProTreeSelect/style/index.less +25 -22
  110. package/es/ProUpload/components/DragRender.js +7 -4
  111. package/es/ProUpload/index.js +11 -7
  112. package/es/ProUpload/style/index.less +7 -4
  113. package/es/ProViewer/index.js +3 -1
  114. package/es/ProViewer/style/index.less +6 -3
  115. package/es/locale/en_US.d.ts +18 -1
  116. package/es/locale/en_US.js +20 -3
  117. package/es/locale/zh_CN.d.ts +18 -1
  118. package/es/locale/zh_CN.js +19 -2
  119. package/es/style/core/compatible.less +6 -6
  120. package/es/style/theme/antd.less +277 -253
  121. package/lib/ProAction/index.less +3 -0
  122. package/lib/ProDownload/index.js +9 -6
  123. package/lib/ProDownload/style/index.less +5 -2
  124. package/lib/ProDrawerForm/style/index.less +76 -73
  125. package/lib/ProEditLabel/style/index.less +12 -9
  126. package/lib/ProEditTable/components/RenderField/index.js +61 -20
  127. package/lib/ProEditTable/index.js +17 -5
  128. package/lib/ProEditTable/propsType.d.ts +11 -1
  129. package/lib/ProEditTable/style/index.less +50 -42
  130. package/lib/ProEditTable/utils/config.d.ts +1 -1
  131. package/lib/ProEditTable/utils/config.js +3 -3
  132. package/lib/ProEnum/style/index.less +3 -0
  133. package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -0
  134. package/lib/ProForm/components/base/Checkbox/index.js +5 -3
  135. package/lib/ProForm/components/base/DatePicker/index.js +3 -5
  136. package/lib/ProForm/components/base/Input/index.js +4 -2
  137. package/lib/ProForm/components/base/Input/propsType.d.ts +1 -0
  138. package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -0
  139. package/lib/ProForm/components/base/InputNumber/index.js +5 -3
  140. package/lib/ProForm/components/base/ProCascader/index.js +6 -6
  141. package/lib/ProForm/components/base/Radio/index.d.ts +1 -0
  142. package/lib/ProForm/components/base/Radio/index.js +4 -2
  143. package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -0
  144. package/lib/ProForm/components/base/RangePicker/index.js +5 -3
  145. package/lib/ProForm/components/base/Select/index.d.ts +1 -0
  146. package/lib/ProForm/components/base/Select/index.js +4 -2
  147. package/lib/ProForm/components/base/Switch/index.d.ts +1 -0
  148. package/lib/ProForm/components/base/Switch/index.js +4 -2
  149. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
  150. package/lib/ProForm/components/base/SwitchCheckbox/index.js +4 -2
  151. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  152. package/lib/ProForm/components/base/TextArea/index.d.ts +1 -0
  153. package/lib/ProForm/components/base/TextArea/index.js +4 -3
  154. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  155. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -0
  156. package/lib/ProForm/components/base/TimePicker/index.js +4 -2
  157. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  158. package/lib/ProForm/components/combination/Container/index.js +7 -5
  159. package/lib/ProForm/components/combination/Container/style/index.less +3 -3
  160. package/lib/ProForm/components/combination/FormList/index.js +6 -5
  161. package/lib/ProForm/components/combination/FormList/style/index.less +17 -24
  162. package/lib/ProForm/components/combination/Group/index.js +6 -3
  163. package/lib/ProForm/components/combination/Group/style/index.less +15 -15
  164. package/lib/ProForm/components/combination/ProAddressBar/index.js +29 -30
  165. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  166. package/lib/ProForm/components/combination/ProCombination/index.js +11 -11
  167. package/lib/ProForm/components/combination/ProCombination/style/index.less +2 -2
  168. package/lib/ProForm/components/combination/ProModalSelect/index.js +4 -5
  169. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +30 -12
  170. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
  171. package/lib/ProForm/components/combination/ProNumberRange/index.js +7 -7
  172. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  173. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
  174. package/lib/ProForm/components/combination/ProRangeLimit/index.js +4 -2
  175. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
  176. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -2
  177. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  178. package/lib/ProForm/components/render/Render.js +53 -21
  179. package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
  180. package/lib/ProForm/components/render/RenderFields.js +13 -12
  181. package/lib/ProForm/index.js +5 -2
  182. package/lib/ProForm/propsType.d.ts +1 -0
  183. package/lib/ProForm/style/index.less +89 -80
  184. package/lib/ProForm/utils/contrastOriginal.d.ts +10 -1
  185. package/lib/ProForm/utils/contrastOriginal.js +14 -17
  186. package/lib/ProForm/utils/useChanged.d.ts +15 -1
  187. package/lib/ProForm/utils/useChanged.js +27 -8
  188. package/lib/ProIcon/style/index.less +4 -1
  189. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  190. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  191. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  192. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  193. package/lib/ProLayout/components/ProCollapse/style/index.less +24 -24
  194. package/lib/ProLayout/components/ProFooter/style/index.less +8 -7
  195. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  196. package/lib/ProLayout/components/ProHeader/index.js +1 -0
  197. package/lib/ProLayout/components/ProHeader/style/index.less +17 -11
  198. package/lib/ProLayout/style/index.less +10 -7
  199. package/lib/ProSelect/index.js +6 -3
  200. package/lib/ProSelect/index.less +3 -0
  201. package/lib/ProStep/components/Item/index.js +1 -4
  202. package/lib/ProStep/style/index.less +3 -0
  203. package/lib/ProTable/components/RenderColumn/index.js +1 -1
  204. package/lib/ProTable/index.js +3 -3
  205. package/lib/ProTable/style/index.less +72 -52
  206. package/lib/ProTabs/style/index.less +26 -24
  207. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  208. package/lib/ProThemeTools/component/PrdTools/index.js +28 -26
  209. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  210. package/lib/ProThemeTools/index.d.ts +1 -1
  211. package/lib/ProThemeTools/index.js +9 -3
  212. package/lib/ProThemeTools/propsType.d.ts +4 -0
  213. package/lib/ProThemeTools/style/index.less +6 -3
  214. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  215. package/lib/ProThemeTools/utils/index.js +2 -1
  216. package/lib/ProTooltip/style/index.less +3 -0
  217. package/lib/ProTree/components/CloseIcon.js +2 -4
  218. package/lib/ProTree/components/Tree.js +42 -41
  219. package/lib/ProTree/style/index.less +29 -32
  220. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  221. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  222. package/lib/ProTreeModal/components/Trigger.js +74 -18
  223. package/lib/ProTreeModal/index.js +38 -6
  224. package/lib/ProTreeModal/propsType.d.ts +5 -2
  225. package/lib/ProTreeModal/style/index.less +11 -8
  226. package/lib/ProTreeSelect/index.js +3 -2
  227. package/lib/ProTreeSelect/style/index.less +25 -22
  228. package/lib/ProUpload/components/DragRender.js +7 -4
  229. package/lib/ProUpload/index.js +11 -7
  230. package/lib/ProUpload/style/index.less +7 -4
  231. package/lib/ProViewer/index.js +4 -3
  232. package/lib/ProViewer/style/index.less +6 -3
  233. package/lib/locale/en_US.d.ts +18 -1
  234. package/lib/locale/en_US.js +20 -3
  235. package/lib/locale/zh_CN.d.ts +18 -1
  236. package/lib/locale/zh_CN.js +19 -2
  237. package/lib/style/core/compatible.less +6 -6
  238. package/lib/style/theme/antd.less +277 -253
  239. package/package.json +1 -1
@@ -1,38 +1,41 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-table {
2
5
  &.pro-table-bordered {
3
- .ant-table .ant-table-thead>tr>th {
6
+ .@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
4
7
  border-bottom: 1px solid #f0f0f0
5
8
  }
6
9
 
7
- .ant-table>.ant-table-container>.ant-table-content>table,
8
- .ant-table>.ant-table-container>.ant-table-header>table {
10
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table,
11
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table {
9
12
  border-top: 1px solid rgba(0, 0, 0, 0.06);
10
13
  }
11
14
 
12
- .ant-table>.ant-table-container>.ant-table-content>table>thead>tr>th,
13
- .ant-table>.ant-table-container>.ant-table-header>table>thead>tr>th,
14
- .ant-table>.ant-table-container>.ant-table-body>table>thead>tr>th,
15
- .ant-table>.ant-table-container>.ant-table-summary>table>thead>tr>th,
16
- .ant-table>.ant-table-container>.ant-table-content>table>tbody>tr>td,
17
- .ant-table>.ant-table-container>.ant-table-header>table>tbody>tr>td,
18
- .ant-table>.ant-table-container>.ant-table-body>table>tbody>tr>td,
19
- .ant-table>.ant-table-container>.ant-table-summary>table>tbody>tr>td,
20
- .ant-table>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
21
- .ant-table>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
22
- .ant-table>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
23
- .ant-table>.ant-table-container>.ant-table-summary>table>tfoot>tr>th,
24
- .ant-table>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
25
- .ant-table>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
26
- .ant-table>.ant-table-container>.ant-table-body>table>tfoot>tr>td,
27
- .ant-table>.ant-table-container>.ant-table-summary>table>tfoot>tr>td {
15
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>thead>tr>th,
16
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>thead>tr>th,
17
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>thead>tr>th,
18
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>thead>tr>th,
19
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tbody>tr>td,
20
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tbody>tr>td,
21
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tbody>tr>td,
22
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tbody>tr>td,
23
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>th,
24
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>th,
25
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>th,
26
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>th,
27
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>td,
28
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>td,
29
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>td,
30
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>td {
28
31
  border-right: 1px solid rgba(0, 0, 0, 0.06);
29
32
  }
30
33
 
31
- .ant-table .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
34
+ .@{ant-prefix}-table .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
32
35
  border-bottom: 1px solid #f0f0f0;
33
36
  }
34
37
 
35
- .ant-table>.ant-table-container {
38
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container {
36
39
  border-left: 1px solid rgba(0, 0, 0, 0.06);
37
40
  }
38
41
  }
@@ -54,8 +57,14 @@
54
57
  }
55
58
  }
56
59
 
57
- .ant-table-body {
58
- .ant-table-cell .varied-cell {
60
+ .@{ant-prefix}-table-tbody {
61
+ .@{ant-prefix}-table-cell-fix-left, .@{ant-prefix}-table-cell-fix-right {
62
+ background: unset !important;
63
+ }
64
+ }
65
+
66
+ .@{ant-prefix}-table-body {
67
+ .@{ant-prefix}-table-cell .varied-cell {
59
68
  margin-left: -8px;
60
69
  background: var(--zaui-contract-bg, #fffaa1);
61
70
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
@@ -70,7 +79,7 @@
70
79
  .copyable-table-cell {
71
80
 
72
81
 
73
- .ant-typography {
82
+ .@{ant-prefix}-typography {
74
83
  margin-bottom: 0;
75
84
  display : flex;
76
85
  align-items : center;
@@ -83,7 +92,7 @@
83
92
  }
84
93
  }
85
94
 
86
- .ant-typography-copy-success {
95
+ .@{ant-prefix}-typography-copy-success {
87
96
  svg {
88
97
  fill: var(--zaui-success, #00ae4d);
89
98
  }
@@ -98,14 +107,14 @@
98
107
  }
99
108
 
100
109
  &.pro-table-no-stripe {
101
- .ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(n)>td {
110
+ .@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal .@{ant-prefix}-table-tbody .@{ant-prefix}-table-row:nth-child(n)>td {
102
111
  background: var(--zaui-base-bg, #ffffff);
103
112
  }
104
113
  }
105
114
 
106
- .ant-table-thead {
107
- .ant-dropdown-trigger {
108
- &.ant-dropdown-open {
115
+ .@{ant-prefix}-table-thead {
116
+ .@{ant-prefix}-dropdown-trigger {
117
+ &.@{ant-prefix}-dropdown-open {
109
118
 
110
119
  .anticon-down {
111
120
  transition: transform 0.3s;
@@ -128,7 +137,7 @@
128
137
  }
129
138
  }
130
139
 
131
- .ant-table-thead {
140
+ .@{ant-prefix}-table-thead {
132
141
  tr th {
133
142
  &:last-child {
134
143
  .react-resizable-handle {
@@ -138,11 +147,11 @@
138
147
  }
139
148
  }
140
149
 
141
- .ant-space {
150
+ .@{ant-prefix}-space {
142
151
  gap: var(--zaui-space-size-sm, 8px) !important;
143
152
  }
144
153
 
145
- .ant-btn-link {
154
+ .@{ant-prefix}-btn-link {
146
155
  padding: 0 var(--zaui-space-size-xs, 4px);
147
156
 
148
157
  &:first-child {
@@ -159,7 +168,7 @@
159
168
  display : flex;
160
169
  align-items: center;
161
170
 
162
- >.ant-btn {
171
+ >.@{ant-prefix}-btn {
163
172
 
164
173
  &:hover,
165
174
  &:visited,
@@ -176,11 +185,22 @@
176
185
  }
177
186
  }
178
187
 
179
- .ant-empty .ant-empty-image {
180
- height: 80px;
188
+ .pro-table-empty {
189
+ margin: var(--zaui-space-size-lg, 32px) 0;
190
+ color: rgba(0, 0, 0, 0.25);
191
+ font-size: var(--zaui-font-size-md, 14px);
192
+ text-align: center;
193
+
194
+ .empty-image {
195
+ height: 80px;
196
+
197
+ img {
198
+ height: 100%;
199
+ }
200
+ }
181
201
  }
182
202
 
183
- .ant-table .ant-table-thead>tr>th {
203
+ .@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
184
204
  border-bottom: 0;
185
205
  white-space : nowrap;
186
206
  background : var(--zaui-table-header-bg, #f2f3f5);
@@ -223,29 +243,29 @@
223
243
  }
224
244
  }
225
245
 
226
- .ant-table.ant-table-bordered {
227
- .ant-table-thead>tr>th {
246
+ .@{ant-prefix}-table.@{ant-prefix}-table-bordered {
247
+ .@{ant-prefix}-table-thead>tr>th {
228
248
  border-bottom: 1px solid #f0f0f0;
229
249
  }
230
250
 
231
- .ant-table-tbody>tr:not(.ant-table-placeholder)>td {
251
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
232
252
  border-bottom: 1px solid #f0f0f0;
233
253
  }
234
254
 
235
- .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
255
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
236
256
  border-bottom: 1px solid #f0f0f0;
237
257
  }
238
258
  }
239
259
 
240
- .ant-table-tbody .ant-table-placeholder {
260
+ .@{ant-prefix}-table-tbody .@{ant-prefix}-table-placeholder {
241
261
  background: var(--zaui-base-bg, #ffffff) !important;
242
262
  }
243
263
 
244
- .ant-table-tbody>tr:not(.ant-table-placeholder)>td {
264
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
245
265
  border-bottom: 0;
246
266
  }
247
267
 
248
- .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
268
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
249
269
  border-bottom: 0;
250
270
  }
251
271
 
@@ -253,7 +273,7 @@
253
273
  position : relative;
254
274
  background-clip: padding-box;
255
275
 
256
- .ant-table-filter-trigger {
276
+ .@{ant-prefix}-table-filter-trigger {
257
277
  margin-right: 0;
258
278
  }
259
279
  }
@@ -289,20 +309,20 @@
289
309
  }
290
310
  }
291
311
 
292
- .ant-table-tbody tr td .ant-checkbox-wrapper-checked.checkbox-disabled {
312
+ .@{ant-prefix}-table-tbody tr td .@{ant-prefix}-checkbox-wrapper-checked.checkbox-disabled {
293
313
  pointer-events: none;
294
314
  cursor : not-allowed;
295
315
  opacity : 0.5;
296
316
  }
297
317
 
298
- .ant-pagination-options-quick-jumper input {
318
+ .@{ant-prefix}-pagination-options-quick-jumper input {
299
319
  border : unset;
300
320
  background: #FAFAFA;
301
321
  min-width : 32px;
302
322
  height : 32px;
303
323
  }
304
324
 
305
- .ant-pagination .ant-pagination-item-active a {
325
+ .@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
306
326
  color : #ffffff;
307
327
  background : var(--zaui-brand, #006aff) !important;
308
328
  border-radius: var(--zaui-border-radius, 4px);
@@ -318,10 +338,10 @@
318
338
  }
319
339
  }
320
340
 
321
- .ant-table-summary {
341
+ .@{ant-prefix}-table-summary {
322
342
  background-color: var(--zaui-table-header-bg, #f2f3f5);
323
343
 
324
- .ant-table-cell {
344
+ .@{ant-prefix}-table-cell {
325
345
  font-weight : 500;
326
346
  background-color: var(--zaui-table-header-bg, #f2f3f5);
327
347
  border : none;
@@ -329,10 +349,10 @@
329
349
  }
330
350
  }
331
351
 
332
- .ant-dropdown-placement-bottomLeft {
333
- .ant-dropdown-menu-vertical.ant-dropdown-menu-light {
352
+ .@{ant-prefix}-dropdown-placement-bottomLeft {
353
+ .@{ant-prefix}-dropdown-menu-vertical.@{ant-prefix}-dropdown-menu-light {
334
354
 
335
- .ant-dropdown-menu-item-only-child {
355
+ .@{ant-prefix}-dropdown-menu-item-only-child {
336
356
  &:hover {
337
357
  background: rgba(0, 106, 255, 0.08);
338
358
  }
@@ -1,18 +1,20 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-tabs {
2
- .ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
3
- padding: 0;
5
+ .@{ant-prefix}-tabs .@{ant-prefix}-tabs-nav-list .@{ant-prefix}-tabs-tab {
6
+ padding: 0 !important;
4
7
  }
5
8
 
6
- .ant-tabs-top>.ant-tabs-nav::before,
7
- .ant-tabs-bottom>.ant-tabs-nav::before,
8
- .ant-tabs-top>div>.ant-tabs-nav::before,
9
- .ant-tabs-bottom>div>.ant-tabs-nav::before {
9
+ .@{ant-prefix}-tabs-top > .@{ant-prefix}-tabs-nav::before,
10
+ .@{ant-prefix}-tabs-bottom > .@{ant-prefix}-tabs-nav::before,
11
+ .@{ant-prefix}-tabs-top > div > .@{ant-prefix}-tabs-nav::before,
12
+ .@{ant-prefix}-tabs-bottom > div > .@{ant-prefix}-tabs-nav::before {
10
13
  border: none;
11
14
  }
12
15
 
13
-
14
- .ant-tabs-nav-list {
15
- .ant-tabs-tab {
16
+ .@{ant-prefix}-tabs-nav-list {
17
+ .@{ant-prefix}-tabs-tab {
16
18
  &:first-child {
17
19
  .pro-tabs-card {
18
20
  border-left: 1px solid var(--zaui-line, #dddddd);
@@ -21,37 +23,37 @@
21
23
  }
22
24
  }
23
25
 
24
- .ant-tabs-tab-active {
26
+ .@{ant-prefix}-tabs-tab-active {
25
27
  .pro-tabs-card {
26
28
  background: var(--ant-primary-color-active-deprecated-f-30, rgba(230, 247, 255, 0.3));
27
29
  }
28
30
  }
29
31
 
30
- .ant-tabs-ink-bar {
31
- top : 0;
32
+ .@{ant-prefix}-tabs-ink-bar {
33
+ top: 0;
32
34
  height: 3px !important;
33
35
  }
34
36
 
35
37
  .pro-tabs-card {
36
- width : 200px;
37
- padding : 14px 16px 14px 24px;
38
- border : 1px solid var(--zaui-line, #dddddd);
38
+ width: 200px;
39
+ padding: calc(9px * var(--zaui-size; 1)) 16px calc(9px * var(--zaui-size; 1)) 24px;
40
+ border: 1px solid var(--zaui-line, #dddddd);
39
41
  border-left: none;
40
42
 
41
43
  .pro-tabs-card-left {
42
- width : 104px;
44
+ width: 104px;
43
45
  text-shadow: none;
44
46
 
45
47
  .pro-tabs-card-left-total {
46
- font-size : var(--zaui-font-size-lg-title, 24px);
48
+ color: var(--zaui-text, #343434);
47
49
  font-weight: 600;
48
- color : var(--zaui-text, #343434);
50
+ font-size: var(--zaui-font-size-lg-title, 24px);
49
51
  }
50
52
 
51
53
  .pro-tabs-card-left-label {
52
- font-size : var(--zaui-font-size, 14px);
54
+ color: var(--aui-text, #343434);
53
55
  font-weight: 400;
54
- color : var(--aui-text, #343434);
56
+ font-size: var(--zaui-font-size, 14px);
55
57
  }
56
58
  }
57
59
 
@@ -67,13 +69,13 @@
67
69
 
68
70
  .pro-tabs-tab {
69
71
  .pro-tabs-card {
70
- .ant-tag {
72
+ .@{ant-prefix}-tag {
73
+ margin-right: 0;
74
+ padding: 0 var(--zaui-space-size-xs, 4px);
71
75
  border-radius: 10px;
72
- padding : 0 var(--zaui-space-size-xs, 4px);
73
- margin-right : 0;
74
76
  }
75
77
 
76
- .ant-space-item {
78
+ .@{ant-prefix}-space-item {
77
79
  display: flex;
78
80
  }
79
81
  }
@@ -1,3 +1,3 @@
1
1
  import type { DevToolsPropsType } from '../../propsType';
2
- declare const PrdTools: ({ onReset, onClose, setState, visible, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
2
+ declare const PrdTools: ({ onReset, onClose, setState, visible, state, tableBorder, tableStripe, prefixCls, }: DevToolsPropsType) => JSX.Element;
3
3
  export default PrdTools;
@@ -12,6 +12,7 @@ var _icons = require("@ant-design/icons");
12
12
  var _antd = require("antd");
13
13
  var _react = require("react");
14
14
  var _index = require("../../utils/index");
15
+ var _locale = _interopRequireDefault(require("../../../locale"));
15
16
  var connect = function connect(Component) {
16
17
  var ComponentWrapper = function ComponentWrapper(props) {
17
18
  return (0, _jsxRuntime.jsx)(Component, (0, _objectSpread2.default)({}, props));
@@ -26,7 +27,8 @@ var PrdTools = function PrdTools(_ref) {
26
27
  visible = _ref.visible,
27
28
  state = _ref.state,
28
29
  tableBorder = _ref.tableBorder,
29
- tableStripe = _ref.tableStripe;
30
+ tableStripe = _ref.tableStripe,
31
+ prefixCls = _ref.prefixCls;
30
32
  var _useState = (0, _react.useState)([{
31
33
  color: '#006AFF',
32
34
  active: true
@@ -62,8 +64,8 @@ var PrdTools = function PrdTools(_ref) {
62
64
  }, []);
63
65
  return (0, _jsxRuntime.jsxs)(NewDrawer, {
64
66
  className: "pro-theme-prd-tools-drawer",
65
- width: 320,
66
- title: "\u5168\u5C40\u6837\u5F0F\u81EA\u5B9A\u4E49",
67
+ width: 400,
68
+ title: "".concat(_locale.default.ProThemeTools.title),
67
69
  placement: "right",
68
70
  onClose: onClose,
69
71
  open: visible,
@@ -77,7 +79,7 @@ var PrdTools = function PrdTools(_ref) {
77
79
  }), (0, _jsxRuntime.jsxs)("div", {
78
80
  className: "pro-theme-tools-space",
79
81
  children: [(0, _jsxRuntime.jsx)("p", {
80
- children: "\u4E3B\u9898\u8272"
82
+ children: "".concat(_locale.default.ProThemeTools.themeColor)
81
83
  }), (0, _jsxRuntime.jsx)("ul", {
82
84
  className: "pro-theme-color",
83
85
  children: active.map(function (item, index) {
@@ -108,7 +110,7 @@ var PrdTools = function PrdTools(_ref) {
108
110
  children: [(0, _jsxRuntime.jsx)("div", {
109
111
  className: "pro-theme-tools-item",
110
112
  children: (0, _jsxRuntime.jsx)("p", {
111
- children: "\u5E03\u5C40"
113
+ children: "".concat(_locale.default.ProThemeTools.layout)
112
114
  })
113
115
  }), (0, _jsxRuntime.jsx)("div", {
114
116
  className: "pro-theme-tools-item",
@@ -124,13 +126,13 @@ var PrdTools = function PrdTools(_ref) {
124
126
  },
125
127
  children: [(0, _jsxRuntime.jsx)(_antd.Radio.Button, {
126
128
  value: 0.5,
127
- children: "\u7D27\u51D1"
129
+ children: "".concat(_locale.default.ProThemeTools.layoutMode[0])
128
130
  }), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
129
131
  value: 1,
130
- children: "\u5E38\u89C4"
132
+ children: "".concat(_locale.default.ProThemeTools.layoutMode[1])
131
133
  }), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
132
134
  value: 1.5,
133
- children: "\u5BBD\u677E"
135
+ children: "".concat(_locale.default.ProThemeTools.layoutMode[2])
134
136
  })]
135
137
  })
136
138
  })]
@@ -139,7 +141,7 @@ var PrdTools = function PrdTools(_ref) {
139
141
  children: [(0, _jsxRuntime.jsx)("div", {
140
142
  className: "pro-theme-tools-item",
141
143
  children: (0, _jsxRuntime.jsx)("p", {
142
- children: "\u8868\u5355\u6807\u9898"
144
+ children: "".concat(_locale.default.ProThemeTools.formLabel)
143
145
  })
144
146
  }), (0, _jsxRuntime.jsx)("div", {
145
147
  className: "pro-theme-tools-item",
@@ -149,18 +151,18 @@ var PrdTools = function PrdTools(_ref) {
149
151
  var after = e.target.value === 'left' ? 'inline' : 'none';
150
152
  var before = e.target.value === 'right' ? 'inline' : 'none';
151
153
  // 遍历添加className
152
- var formItemLabels = document.querySelectorAll('.ant-form-item-label');
154
+ var formItemLabels = document.querySelectorAll(".".concat(prefixCls, "-form-item-label"));
153
155
  // 遍历元素列表,为每个元素添加新的 class
154
156
  formItemLabels.forEach(function (label) {
155
157
  var _label$classList, _label$classList$valu, _label$classList2, _label$classList2$val;
156
158
  if (!label) {
157
159
  return false;
158
160
  }
159
- if (e.target.value === 'left' && !((_label$classList = label.classList) === null || _label$classList === void 0 ? void 0 : (_label$classList$valu = _label$classList.value) === null || _label$classList$valu === void 0 ? void 0 : _label$classList$valu.includes('ant-form-item-label-left'))) {
160
- label.classList.add('ant-form-item-label-left');
161
+ if (e.target.value === 'left' && !((_label$classList = label.classList) === null || _label$classList === void 0 ? void 0 : (_label$classList$valu = _label$classList.value) === null || _label$classList$valu === void 0 ? void 0 : _label$classList$valu.includes("".concat(prefixCls, "-form-item-label-left")))) {
162
+ label.classList.add("".concat(prefixCls, "-form-item-label-left"));
161
163
  }
162
- if (e.target.value === 'right' && ((_label$classList2 = label.classList) === null || _label$classList2 === void 0 ? void 0 : (_label$classList2$val = _label$classList2.value) === null || _label$classList2$val === void 0 ? void 0 : _label$classList2$val.includes('ant-form-item-label-left'))) {
163
- label.classList.remove('ant-form-item-label-left');
164
+ if (e.target.value === 'right' && ((_label$classList2 = label.classList) === null || _label$classList2 === void 0 ? void 0 : (_label$classList2$val = _label$classList2.value) === null || _label$classList2$val === void 0 ? void 0 : _label$classList2$val.includes("".concat(prefixCls, "-form-item-label-left")))) {
165
+ label.classList.remove("".concat(prefixCls, "-form-item-label-left"));
164
166
  }
165
167
  });
166
168
  setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
@@ -176,10 +178,10 @@ var PrdTools = function PrdTools(_ref) {
176
178
  },
177
179
  children: [(0, _jsxRuntime.jsx)(_antd.Radio.Button, {
178
180
  value: "left",
179
- children: "\u5DE6\u5BF9\u9F50"
181
+ children: "".concat(_locale.default.ProThemeTools.flex[0])
180
182
  }), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
181
183
  value: "right",
182
- children: "\u53F3\u5BF9\u9F50"
184
+ children: "".concat(_locale.default.ProThemeTools.flex[1])
183
185
  })]
184
186
  })
185
187
  })]
@@ -188,13 +190,13 @@ var PrdTools = function PrdTools(_ref) {
188
190
  children: [(0, _jsxRuntime.jsx)("div", {
189
191
  className: "pro-theme-tools-item",
190
192
  children: (0, _jsxRuntime.jsx)("p", {
191
- children: "\u5927\u5B57\u53F7\u6A21\u5F0F"
193
+ children: "".concat(_locale.default.ProThemeTools.bigText)
192
194
  })
193
195
  }), (0, _jsxRuntime.jsx)("div", {
194
196
  className: "pro-theme-tools-item",
195
197
  children: (0, _jsxRuntime.jsx)(_antd.Switch, {
196
- checkedChildren: "\u5F00",
197
- unCheckedChildren: "\u5173",
198
+ checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
199
+ unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
198
200
  checked: state.zauiBigText,
199
201
  onClick: function onClick(value) {
200
202
  setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
@@ -212,13 +214,13 @@ var PrdTools = function PrdTools(_ref) {
212
214
  children: [(0, _jsxRuntime.jsx)("div", {
213
215
  className: "pro-theme-tools-item",
214
216
  children: (0, _jsxRuntime.jsx)("p", {
215
- children: "\u8868\u683C\u8FB9\u6846"
217
+ children: "".concat(_locale.default.ProThemeTools.tableBorder)
216
218
  })
217
219
  }), (0, _jsxRuntime.jsx)("div", {
218
220
  className: "pro-theme-tools-item",
219
221
  children: (0, _jsxRuntime.jsx)(_antd.Switch, {
220
- checkedChildren: "\u5F00",
221
- unCheckedChildren: "\u5173",
222
+ checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
223
+ unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
222
224
  checked: state.zauiTableBorder,
223
225
  onClick: function onClick(value) {
224
226
  setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
@@ -235,13 +237,13 @@ var PrdTools = function PrdTools(_ref) {
235
237
  children: [(0, _jsxRuntime.jsx)("div", {
236
238
  className: "pro-theme-tools-item",
237
239
  children: (0, _jsxRuntime.jsx)("p", {
238
- children: "\u8868\u683C\u6591\u9A6C\u7EB9"
240
+ children: "".concat(_locale.default.ProThemeTools.tableStripe)
239
241
  })
240
242
  }), (0, _jsxRuntime.jsx)("div", {
241
243
  className: "pro-theme-tools-item",
242
244
  children: (0, _jsxRuntime.jsx)(_antd.Switch, {
243
- checkedChildren: "\u5F00",
244
- unCheckedChildren: "\u5173",
245
+ checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
246
+ unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
245
247
  checked: state.zauiStripe,
246
248
  onClick: function onClick(value) {
247
249
  setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
@@ -272,7 +274,7 @@ var PrdTools = function PrdTools(_ref) {
272
274
  }]);
273
275
  onReset();
274
276
  },
275
- children: "\u91CD\u7F6E"
277
+ children: "".concat(_locale.default.ProThemeTools.reset)
276
278
  })]
277
279
  });
278
280
  };
@@ -1,17 +1,17 @@
1
1
  .pro-theme-prd-tools-drawer {
2
- .ant-drawer-header {
2
+ .@{ant-prefix}-drawer-header {
3
3
  border-bottom: none;
4
4
  }
5
5
 
6
- .ant-drawer-title {
6
+ .@{ant-prefix}-drawer-title {
7
7
  font-size: var(--zaui-font-size-xl, 18px);
8
8
  }
9
9
 
10
- .ant-drawer-body {
10
+ .@{ant-prefix}-drawer-body {
11
11
  padding: 0 32px 32px;
12
12
  }
13
13
 
14
- .ant-space-vertical {
14
+ .@{ant-prefix}-space-vertical {
15
15
  gap: var(--zaui-space-size-sm, 8px) !important;
16
16
  }
17
17
 
@@ -118,12 +118,12 @@
118
118
  }
119
119
  }
120
120
 
121
- .ant-radio-button-wrapper {
121
+ .@{ant-prefix}-radio-button-wrapper {
122
122
  padding: 0 28px;
123
123
  }
124
124
 
125
125
  .pro-theme-tools-form {
126
- .ant-radio-button-wrapper {
126
+ .@{ant-prefix}-radio-button-wrapper {
127
127
  padding: 0 42px;
128
128
  }
129
129
  }
@@ -1,6 +1,6 @@
1
1
  import type { ProThemeToolsProps } from './propsType';
2
2
  declare const ProThemeTools: {
3
- ({ size, className, cacheTime, color, mode, iconFollowTheme, tableBorder, tableStripe, theme, ...props }: ProThemeToolsProps): JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, ...props }: ProThemeToolsProps): JSX.Element;
4
4
  defaultProps: {
5
5
  size: number;
6
6
  mode: string;
@@ -16,7 +16,8 @@ var _react = require("react");
16
16
  var _classnames2 = _interopRequireDefault(require("classnames"));
17
17
  var _index = require("./utils/index");
18
18
  var _component = require("./component");
19
- var _excluded = ["size", "className", "cacheTime", "color", "mode", "iconFollowTheme", "tableBorder", "tableStripe", "theme"];
19
+ var _locale = _interopRequireDefault(require("../locale"));
20
+ var _excluded = ["size", "className", "cacheTime", "color", "mode", "iconFollowTheme", "prefixCls", "tableBorder", "tableStripe", "theme"];
20
21
  /* eslint-disable prefer-const */
21
22
  var defaultCacheTime = 1; // 配置保存时间为一天
22
23
  var defaultThemeConfig = {
@@ -41,6 +42,8 @@ var ProThemeTools = function ProThemeTools(_ref) {
41
42
  color = _ref.color,
42
43
  mode = _ref.mode,
43
44
  iconFollowTheme = _ref.iconFollowTheme,
45
+ _ref$prefixCls = _ref.prefixCls,
46
+ prefixCls = _ref$prefixCls === void 0 ? 'ant' : _ref$prefixCls,
44
47
  _ref$tableBorder = _ref.tableBorder,
45
48
  tableBorder = _ref$tableBorder === void 0 ? false : _ref$tableBorder,
46
49
  _ref$tableStripe = _ref.tableStripe,
@@ -93,7 +96,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
93
96
  input.select();
94
97
  if (document.execCommand('copy')) {
95
98
  document.execCommand('copy');
96
- _antd.message.success('复制成功!');
99
+ _antd.message.success("".concat(_locale.default.ProThemeTools.copySuccess));
97
100
  }
98
101
  document.body.removeChild(input);
99
102
  };
@@ -120,6 +123,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
120
123
  setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), localThemeConfig));
121
124
  (0, _index.setThemes)(cssVariables);
122
125
  _antd.ConfigProvider.config({
126
+ prefixCls: prefixCls,
123
127
  theme: {
124
128
  primaryColor: (_localThemeConfig = localThemeConfig) === null || _localThemeConfig === void 0 ? void 0 : _localThemeConfig.zauiBrand
125
129
  }
@@ -127,6 +131,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
127
131
  } else {
128
132
  (0, _index.setThemes)((0, _index.getMapKebabCase)(state));
129
133
  _antd.ConfigProvider.config({
134
+ prefixCls: prefixCls,
130
135
  theme: {
131
136
  primaryColor: state === null || state === void 0 ? void 0 : state.zauiBrand
132
137
  }
@@ -149,7 +154,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
149
154
  }, [zauiBrand]);
150
155
  // 斑马纹设置
151
156
  (0, _react.useEffect)(function () {
152
- (0, _index.setTableNoStripe)(zauiStripe);
157
+ (0, _index.setTableNoStripe)(zauiStripe, prefixCls);
153
158
  }, [zauiStripe]);
154
159
  // 表格边框设置
155
160
  (0, _react.useEffect)(function () {
@@ -181,6 +186,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
181
186
  showDrawer();
182
187
  }
183
188
  }), (0, _jsxRuntime.jsx)(_component.PrdTools, {
189
+ prefixCls: prefixCls,
184
190
  onReset: onReset,
185
191
  onClose: onClose,
186
192
  onCopy: onCopy,
@@ -9,6 +9,8 @@ export interface DevToolsPropsType {
9
9
  tableBorder?: boolean;
10
10
  /** 是否有斑马纹 */
11
11
  tableStripe?: boolean;
12
+ /** 统一样式前缀, 默认ant */
13
+ prefixCls?: string;
12
14
  }
13
15
  export interface ProThemeToolsProps {
14
16
  size?: number;
@@ -23,6 +25,8 @@ export interface ProThemeToolsProps {
23
25
  tableBorder?: boolean;
24
26
  /** 是否有斑马纹 */
25
27
  tableStripe?: boolean;
28
+ /** 统一样式前缀, 默认ant */
29
+ prefixCls?: string;
26
30
  [key: string]: any;
27
31
  }
28
32
  export interface LocalThemeConfigPropsType {