@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,4 +1,7 @@
1
- .pro-tree-modal-container .ant-modal-content .ant-modal-body {
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .pro-tree-modal-container .@{ant-prefix}-modal-content .@{ant-prefix}-modal-body {
2
5
  max-height: 498px;
3
6
  }
4
7
 
@@ -13,16 +16,16 @@
13
16
  height : 482px;
14
17
  margin-bottom : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
15
18
 
16
- .ant-tree-checkbox {
19
+ .@{ant-prefix}-tree-checkbox {
17
20
  margin-top: 2px;
18
21
  }
19
22
 
20
- .ant-tree-switcher {
23
+ .@{ant-prefix}-tree-switcher {
21
24
  width : 20px;
22
25
  line-height: 20px;
23
26
  }
24
27
 
25
- .ant-tree-treenode {
28
+ .@{ant-prefix}-tree-treenode {
26
29
  width : 100%;
27
30
  padding : 0;
28
31
  padding-bottom: var(--zaui-font-size-sm, 12px);
@@ -31,12 +34,12 @@
31
34
  line-height : 20px;
32
35
  }
33
36
 
34
- .ant-tree-node-content-wrapper {
37
+ .@{ant-prefix}-tree-node-content-wrapper {
35
38
  min-height : 20px;
36
39
  line-height: 20px;
37
40
  }
38
41
 
39
- .ant-tree-node-content-wrapper {
42
+ .@{ant-prefix}-tree-node-content-wrapper {
40
43
  width: 100%;
41
44
  }
42
45
  }
@@ -113,7 +116,7 @@
113
116
  color: #616161;
114
117
  }
115
118
 
116
- .ant-btn-link {
119
+ .@{ant-prefix}-btn-link {
117
120
  padding: 0;
118
121
  }
119
122
  }
@@ -223,7 +226,7 @@
223
226
  margin-top: 0;
224
227
  }
225
228
 
226
- .ant-tag {
229
+ .@{ant-prefix}-tag {
227
230
  display : flex;
228
231
  align-items : center;
229
232
  justify-content: space-between;
@@ -145,9 +145,10 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
145
145
  _message.error(msg);
146
146
  return;
147
147
  }
148
+ var resultData = transferDataSource(data, showCodeName);
148
149
  setState({
149
- selectList: data || [],
150
- origDataSource: data || []
150
+ selectList: resultData || [],
151
+ origDataSource: resultData || []
151
152
  });
152
153
  };
153
154
  // 配置了异步数据源,拉取枚举数据逻辑 如果有code不掉接口从local里根据code取值
@@ -1,13 +1,16 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-tree-select{
2
- .ant-select-selector{
5
+ .@{ant-prefix}-select-selector{
3
6
  // 单选树选择结果框里title不用待后缀
4
7
  .check-mark-icon{
5
8
  display: none;
6
9
  }
7
10
  }
8
- .ant-select.ant-select-single.ant-select-show-arrow:not(.ant-select-show-search){
9
- &.ant-select-open{
10
- .ant-select-arrow{
11
+ .@{ant-prefix}-select.@{ant-prefix}-select-single.@{ant-prefix}-select-show-arrow:not(.@{ant-prefix}-select-show-search){
12
+ &.@{ant-prefix}-select-open{
13
+ .@{ant-prefix}-select-arrow{
11
14
  transition: transform 300ms ease-in-out;
12
15
  transform: rotate(180deg);
13
16
  }
@@ -15,20 +18,20 @@
15
18
  }
16
19
  }
17
20
  .pro-tree-select-drop-down-container{
18
- &.ant-select-dropdown{
21
+ &.@{ant-prefix}-select-dropdown{
19
22
  .highlight-search-text{
20
23
  color: @zaui-brand;
21
24
  }
22
- .ant-select-tree-list-holder-inner{
25
+ .@{ant-prefix}-select-tree-list-holder-inner{
23
26
  position: relative!important;
24
27
  }
25
- &.ant-tree-select-dropdown{
28
+ &.@{ant-prefix}-tree-select-dropdown{
26
29
  width: auto!important;
27
30
  padding: 0px;
28
31
  }
29
32
  &.singal-tree,&.checkable-tree{
30
- .ant-select-tree{
31
- .ant-select-tree-treenode{
33
+ .@{ant-prefix}-select-tree{
34
+ .@{ant-prefix}-select-tree-treenode{
32
35
  padding-top: var(--zaui-space-size-xs);
33
36
  padding-bottom: var(--zaui-space-size-xs);
34
37
  }
@@ -39,8 +42,8 @@
39
42
  }
40
43
  // 单选
41
44
  &.signal-tree{
42
- .ant-select-tree{
43
- .ant-select-tree-treenode{
45
+ .@{ant-prefix}-select-tree{
46
+ .@{ant-prefix}-select-tree-treenode{
44
47
  position: relative;
45
48
  padding-right: 50px;
46
49
  padding-left: 7px;
@@ -56,19 +59,19 @@
56
59
  background-color: @zaui-brand;
57
60
  opacity: 0.1;
58
61
  }
59
- &.ant-select-tree-treenode-selected:after{
62
+ &.@{ant-prefix}-select-tree-treenode-selected:after{
60
63
  display: block;
61
64
  }
62
65
  }
63
- .ant-select-tree-node-content-wrapper{
66
+ .@{ant-prefix}-select-tree-node-content-wrapper{
64
67
  background-color: transparent;
65
- &.ant-select-tree-node-selected{
68
+ &.@{ant-prefix}-select-tree-node-selected{
66
69
  .check-mark-icon{
67
70
  display: block;
68
71
  }
69
72
  }
70
73
  }
71
- .ant-select-tree-treenode:hover{
74
+ .@{ant-prefix}-select-tree-treenode:hover{
72
75
  background-color: #f5f5f5;
73
76
  }
74
77
  .check-option-text{
@@ -84,20 +87,20 @@
84
87
  }
85
88
  // 复选
86
89
  &.checkable-tree{
87
- .ant-select-tree{
88
- .ant-select-tree-treenode{
90
+ .@{ant-prefix}-select-tree{
91
+ .@{ant-prefix}-select-tree-treenode{
89
92
  padding-left: 7px;
90
93
  }
91
- .ant-select-tree-treenode:hover{
94
+ .@{ant-prefix}-select-tree-treenode:hover{
92
95
  background-color: #f5f5f5;
93
96
  }
94
- .ant-select-tree-node-content-wrapper{
97
+ .@{ant-prefix}-select-tree-node-content-wrapper{
95
98
  padding-right: var(--zaui-space-size-md);
96
99
  }
97
- .ant-select-tree-node-content-wrapper:hover{
100
+ .@{ant-prefix}-select-tree-node-content-wrapper:hover{
98
101
  background-color: transparent;
99
102
  }
100
- .ant-select-tree-checkbox{
103
+ .@{ant-prefix}-select-tree-checkbox{
101
104
  margin-top: var(--zaui-space-size-xs);
102
105
  align-self: stretch;
103
106
  }
@@ -105,7 +108,7 @@
105
108
  }
106
109
  // 数据小于10条
107
110
  &.ten-count-tree-node{
108
- .ant-select-tree-switcher-noop{
111
+ .@{ant-prefix}-select-tree-switcher-noop{
109
112
  width: var(--zaui-space-size-xs);
110
113
  }
111
114
  }
@@ -11,7 +11,7 @@ import { DraggableUploadListItem } from './DraggableUploadListItem';
11
11
  import locale from '../../locale';
12
12
  var Dragger = _Upload.Dragger;
13
13
  var DragRender = function DragRender(props) {
14
- var _locale$ProUpload3, _locale$ProUpload4, _locale$ProUpload5;
14
+ var _locale$ProUpload3, _locale$ProUpload4, _locale$ProUpload5, _locale$ProUpload6;
15
15
  var isView = props.isView,
16
16
  baseUploadProps = props.baseUploadProps,
17
17
  disabled = props.disabled,
@@ -132,13 +132,16 @@ var DragRender = function DragRender(props) {
132
132
  children: [_jsx("i", {
133
133
  className: "icon-upload",
134
134
  children: _jsx(CloudUploadOutlined, {})
135
- }), _jsx("p", {
135
+ }), _jsxs("p", {
136
136
  className: "dragger-txt",
137
- children: locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.draggerTips
137
+ children: [locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.draggerTips, _jsxs("span", {
138
+ className: "click-txt",
139
+ children: [locale === null || locale === void 0 ? void 0 : (_locale$ProUpload4 = locale.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.draggerBtnTxt, " "]
140
+ })]
138
141
  })]
139
142
  }), _jsxs("p", {
140
143
  className: "file-ext",
141
- children: [locale === null || locale === void 0 ? void 0 : (_locale$ProUpload4 = locale.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.draggerFileExt, "\uFF1A", extExt.length > 0 ? extExt.join('、') : "".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload5 = locale.ProUpload) === null || _locale$ProUpload5 === void 0 ? void 0 : _locale$ProUpload5.draggerLimitless)]
144
+ children: [locale === null || locale === void 0 ? void 0 : (_locale$ProUpload5 = locale.ProUpload) === null || _locale$ProUpload5 === void 0 ? void 0 : _locale$ProUpload5.draggerFileExt, "\uFF1A", extExt.length > 0 ? extExt.join('、') : "".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload6 = locale.ProUpload) === null || _locale$ProUpload6 === void 0 ? void 0 : _locale$ProUpload6.draggerLimitless)]
142
145
  })]
143
146
  }), _jsx("div", {
144
147
  className: "dragger-file-show",
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  /*
9
9
  * @Author: wangshengqiang
10
10
  * @Date: 2023-02-03 14:18:59
11
- * @LastEditTime: 2023-11-07 18:49:49
11
+ * @LastEditTime: 2023-11-14 18:32:13
12
12
  * @LastEditors: wangshengqiang
13
13
  * @Description: 上传控件
14
14
  */
@@ -16,6 +16,7 @@ import React, { useEffect, useState, useImperativeHandle } from 'react';
16
16
  import { isFunction } from 'lodash';
17
17
  import { PointerSensor, useSensor } from '@dnd-kit/core';
18
18
  import { arrayMove } from '@dnd-kit/sortable';
19
+ import { useProConfig } from '../ProConfigProvider';
19
20
  import DragRender from './components/DragRender';
20
21
  import ButtonRender from './components/ButtonRender';
21
22
  import ImageRender from './components/ImageRender';
@@ -72,6 +73,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
72
73
  distance: 10
73
74
  }
74
75
  });
76
+ var _ref = useProConfig('ProUpload') || {},
77
+ headers = _ref.headers;
78
+ residueProps.headers = _objectSpread(_objectSpread({}, headers), residueProps.headers);
75
79
  var extExt = accept ? accept.split(',').map(function (i) {
76
80
  return i.toLocaleUpperCase();
77
81
  }) : [];
@@ -139,9 +143,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
139
143
  * @description: 文件列表变化
140
144
  * @return {*}
141
145
  */
142
- var handleFileChange = function handleFileChange(_ref) {
143
- var file = _ref.file,
144
- fileList = _ref.fileList;
146
+ var handleFileChange = function handleFileChange(_ref2) {
147
+ var file = _ref2.file,
148
+ fileList = _ref2.fileList;
145
149
  if (!file.status && action && !ref) {
146
150
  var nFileList = fileList.filter(function (f) {
147
151
  return f.uid !== file.uid;
@@ -210,9 +214,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
210
214
  }
211
215
  return footerRender;
212
216
  };
213
- var onDragEnd = function onDragEnd(_ref2) {
214
- var active = _ref2.active,
215
- over = _ref2.over;
217
+ var onDragEnd = function onDragEnd(_ref3) {
218
+ var active = _ref3.active,
219
+ over = _ref3.over;
216
220
  if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
217
221
  setFileList(function (prev) {
218
222
  var activeIndex = prev.findIndex(function (i) {
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-upload {
2
5
  // display: inline-flex;
3
6
 
@@ -8,7 +11,7 @@
8
11
  border-radius: var(--zaui-border-radius, 4px);
9
12
  padding : var(--zaui-space-size-sm, 8px);
10
13
 
11
- .ant-upload.ant-upload-drag {
14
+ .@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
12
15
  background-color: var(--zaui-base-bg, #fff);
13
16
  }
14
17
 
@@ -158,8 +161,8 @@
158
161
  position: relative;
159
162
  display : inline-flex;
160
163
 
161
- .ant-upload-list-picture-card-container,
162
- .ant-upload-select-picture-card {
164
+ .@{ant-prefix}-upload-list-picture-card-container,
165
+ .@{ant-prefix}-upload-select-picture-card {
163
166
  width : 126px;
164
167
  height: 126px;
165
168
  }
@@ -271,7 +274,7 @@
271
274
  }
272
275
 
273
276
  .pro-upload-image {
274
- .ant-space-item {
277
+ .@{ant-prefix}-space-item {
275
278
  display: inline-flex;
276
279
  }
277
280
 
@@ -8,10 +8,12 @@ import _Button from "antd/es/button";
8
8
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
9
9
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
10
10
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
11
+ var _locale$ProViewer;
11
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
13
  /* eslint-disable jsx-a11y/iframe-has-title */
13
14
  import { useSetState } from 'ahooks';
14
15
  import React, { useEffect, useRef } from 'react';
16
+ import locale from '../locale';
15
17
  // 用于解析word | excel
16
18
  var officeApp = 'https://view.officeapps.live.com/op/view.aspx?src=';
17
19
  // 文件MIME类型
@@ -199,7 +201,7 @@ ProViewer.defaultProps = {
199
201
  width: '1200px',
200
202
  height: '650px',
201
203
  centered: true,
202
- title: '预览',
204
+ title: locale === null || locale === void 0 ? void 0 : (_locale$ProViewer = locale.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
203
205
  footer: null,
204
206
  bodyStyle: {
205
207
  padding: 0
@@ -1,7 +1,10 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-viewer {
2
- .ant-image {
3
- .ant-image-img,
4
- .ant-image-mask-info {
5
+ .@{ant-prefix}-image {
6
+ .@{ant-prefix}-image-img,
7
+ .@{ant-prefix}-image-mask-info {
5
8
  display: none;
6
9
  }
7
10
  }
@@ -38,7 +38,6 @@ declare const _default: {
38
38
  errorMessage: string;
39
39
  defaultTitle: string;
40
40
  };
41
- ProWaterMark: {};
42
41
  ProTable: {
43
42
  noData: string;
44
43
  resetColumnWidth: string;
@@ -94,6 +93,7 @@ declare const _default: {
94
93
  save: string;
95
94
  custom: string;
96
95
  operation: string;
96
+ total: string;
97
97
  onlyOneLineMsg: string;
98
98
  deletePoConfirmMsg: string;
99
99
  mulDeletePoConfirmMsg: string;
@@ -134,5 +134,22 @@ declare const _default: {
134
134
  ProTimeLimit: {
135
135
  foreverText: string;
136
136
  };
137
+ ProThemeTools: {
138
+ title: string;
139
+ copySuccess: string;
140
+ layout: string;
141
+ layoutMode: string[];
142
+ themeColor: string;
143
+ formLabel: string;
144
+ bigText: string;
145
+ flex: string[];
146
+ switchText: string[];
147
+ tableBorder: string;
148
+ tableStripe: string;
149
+ reset: string;
150
+ };
151
+ ProViewer: {
152
+ preview: string;
153
+ };
137
154
  };
138
155
  export default _default;
@@ -38,7 +38,6 @@ export default {
38
38
  errorMessage: 'The configuration config for ProAction must be data',
39
39
  defaultTitle: 'Are you sure delete it?'
40
40
  },
41
- ProWaterMark: {},
42
41
  ProTable: {
43
42
  noData: 'No data',
44
43
  resetColumnWidth: 'Reset column width',
@@ -94,6 +93,7 @@ export default {
94
93
  save: 'Save',
95
94
  custom: 'Custom',
96
95
  operation: 'Operation',
96
+ total: '{total} items in total',
97
97
  onlyOneLineMsg: 'Please save the data first',
98
98
  deletePoConfirmMsg: 'Are you sure you want to delete this row of data?',
99
99
  mulDeletePoConfirmMsg: 'Are you sure you want to delete the selected data?'
@@ -120,12 +120,12 @@ export default {
120
120
  ProTreeModal: {
121
121
  checkMsg: 'Please check first',
122
122
  select: 'Please select',
123
- input: 'please enter',
123
+ input: 'Please enter',
124
124
  errorArrayMessage: 'Please return a valid array',
125
125
  selectMin: 'Select at least {min}',
126
126
  selectMax: 'Select at most {max} items',
127
127
  noCheck: 'None selected yet',
128
- checkAll: 'select all',
128
+ checkAll: 'Select all',
129
129
  check: 'selected',
130
130
  clearAll: 'Clear all',
131
131
  checkNumber: '{num} items selected',
@@ -133,5 +133,22 @@ export default {
133
133
  },
134
134
  ProTimeLimit: {
135
135
  foreverText: 'long term'
136
+ },
137
+ ProThemeTools: {
138
+ title: 'Global style customization ',
139
+ copySuccess: 'Copy success! ',
140
+ layout: 'Layout',
141
+ layoutMode: ['Compact ', 'Regular', 'Loose'],
142
+ themeColor: 'Theme color',
143
+ formLabel: 'Form label',
144
+ bigText: 'Large text mode',
145
+ flex: ['Left align ', 'Right align'],
146
+ switchText: ['on', 'off'],
147
+ tableBorder: 'Table border',
148
+ tableStripe: 'Table zebra',
149
+ reset: 'Reset'
150
+ },
151
+ ProViewer: {
152
+ preview: 'preview'
136
153
  }
137
154
  };
@@ -38,7 +38,6 @@ declare const _default: {
38
38
  errorMessage: string;
39
39
  defaultTitle: string;
40
40
  };
41
- ProWaterMark: {};
42
41
  ProTable: {
43
42
  noData: string;
44
43
  resetColumnWidth: string;
@@ -94,6 +93,7 @@ declare const _default: {
94
93
  operation: string;
95
94
  noData: string;
96
95
  clickAdd: string;
96
+ total: string;
97
97
  onlyOneLineMsg: string;
98
98
  deletePoConfirmMsg: string;
99
99
  mulDeletePoConfirmMsg: string;
@@ -133,5 +133,22 @@ declare const _default: {
133
133
  ProTimeLimit: {
134
134
  foreverText: string;
135
135
  };
136
+ ProThemeTools: {
137
+ title: string;
138
+ copySuccess: string;
139
+ layout: string;
140
+ layoutMode: string[];
141
+ themeColor: string;
142
+ formLabel: string;
143
+ bigText: string;
144
+ flex: string[];
145
+ switchText: string[];
146
+ tableBorder: string;
147
+ tableStripe: string;
148
+ reset: string;
149
+ };
150
+ ProViewer: {
151
+ preview: string;
152
+ };
136
153
  };
137
154
  export default _default;
@@ -38,7 +38,6 @@ export default {
38
38
  errorMessage: 'ProAction 配置 config 必须为数据',
39
39
  defaultTitle: '确认删除吗?'
40
40
  },
41
- ProWaterMark: {},
42
41
  ProTable: {
43
42
  noData: '暂无数据',
44
43
  resetColumnWidth: '重置列宽',
@@ -68,7 +67,7 @@ export default {
68
67
  buttonText: '上传文件',
69
68
  draggerSelect: '重新选择',
70
69
  draggerDelete: '删除',
71
- draggerTips: '将文件拖拽到此处,或点击上传',
70
+ draggerTips: '将文件拖拽到此处,或',
72
71
  draggerBtnTxt: '点击上传',
73
72
  draggerFileExt: '支持扩展名',
74
73
  draggerLimitless: '无限制',
@@ -94,6 +93,7 @@ export default {
94
93
  operation: '操作',
95
94
  noData: '暂无数据',
96
95
  clickAdd: '点击添加',
96
+ total: '共{total}条',
97
97
  onlyOneLineMsg: '请先保存数据',
98
98
  deletePoConfirmMsg: '您确定要删除该行数据吗?',
99
99
  mulDeletePoConfirmMsg: '您确定要删除选中的数据吗?'
@@ -132,5 +132,22 @@ export default {
132
132
  },
133
133
  ProTimeLimit: {
134
134
  foreverText: '长期'
135
+ },
136
+ ProThemeTools: {
137
+ title: '全局样式自定义',
138
+ copySuccess: '复制成功!',
139
+ layout: '布局',
140
+ layoutMode: ['紧凑', '常规', '宽松'],
141
+ themeColor: '主题色',
142
+ formLabel: '表单标题',
143
+ bigText: '大字号模式',
144
+ flex: ['左对齐', '右对齐'],
145
+ switchText: ['开', '关'],
146
+ tableBorder: '表格边框',
147
+ tableStripe: '表格斑马纹',
148
+ reset: '重置'
149
+ },
150
+ ProViewer: {
151
+ preview: '预览'
135
152
  }
136
153
  };
@@ -1,27 +1,27 @@
1
- .ant-tabs-nav-list {
1
+ .@{ant-prefix}-tabs-nav-list {
2
2
  overflow: auto;
3
3
  }
4
4
 
5
5
  // 兼容IE11
6
6
  @media screen and(-ms-high-contrast: active),
7
7
  (-ms-high-contrast: none) {
8
- .ant-form-item-control-input-content {
8
+ .@{ant-prefix}-form-item-control-input-content {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
12
  // 解决popover表单压缩
13
- .ant-popover {
14
- .ant-form-item-control {
13
+ .@{ant-prefix}-popover {
14
+ .@{ant-prefix}-form-item-control {
15
15
  flex: auto;
16
16
  }
17
17
  }
18
18
 
19
- .ant-tabs-tab {
19
+ .@{ant-prefix}-tabs-tab {
20
20
  display: inline-block;
21
21
  }
22
22
 
23
23
  /* IE兼容 */
24
- .ant-space {
24
+ .@{ant-prefix}-space {
25
25
  width: 100% !important;
26
26
  }
27
27