@zat-design/sisyphus-react 3.1.5 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/index.esm.css +176 -250
  2. package/es/ProAction/index.js +7 -5
  3. package/es/ProAction/index.less +3 -2
  4. package/es/ProConfigProvider/index.d.ts +2 -0
  5. package/es/ProConfigProvider/index.js +23 -2
  6. package/es/ProDownload/utils.js +6 -3
  7. package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
  8. package/es/ProDrawerForm/index.js +5 -3
  9. package/es/ProDrawerForm/style/index.less +15 -11
  10. package/es/ProEditLabel/style/index.less +2 -2
  11. package/es/ProEditTable/components/ActionButton/index.js +3 -2
  12. package/es/ProEditTable/components/RenderField/index.js +2 -1
  13. package/es/ProEditTable/index.js +7 -6
  14. package/es/ProEditTable/style/index.less +15 -8
  15. package/es/ProEditTable/utils/config.d.ts +8 -8
  16. package/es/ProEditTable/utils/config.js +20 -12
  17. package/es/ProEditTable/utils/index.js +3 -2
  18. package/es/ProEnum/hooks/useEnumRequest.js +17 -10
  19. package/es/ProEnum/index.js +9 -4
  20. package/es/ProEnum/style/index.less +1 -1
  21. package/es/ProForm/components/FormFooter/index.js +16 -20
  22. package/es/ProForm/components/base/Input/index.js +4 -3
  23. package/es/ProForm/components/base/InputNumber/index.js +4 -3
  24. package/es/ProForm/components/base/RangePicker/index.js +0 -3
  25. package/es/ProForm/components/base/Select/index.js +2 -1
  26. package/es/ProForm/components/base/Switch/index.js +9 -5
  27. package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  28. package/es/ProForm/components/base/TextArea/index.js +4 -2
  29. package/es/ProForm/components/base/TextArea/index.less +1 -1
  30. package/es/ProForm/components/combination/Container/style/index.less +0 -1
  31. package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  32. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  33. package/es/ProForm/components/combination/FormList/style/index.less +20 -19
  34. package/es/ProForm/components/combination/Group/index.js +2 -2
  35. package/es/ProForm/components/combination/ProAddressBar/index.js +83 -63
  36. package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  37. package/es/ProForm/components/combination/ProModalSelect/index.js +76 -15
  38. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  39. package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  40. package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
  41. package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  42. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  43. package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  44. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  45. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  46. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  47. package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
  48. package/es/ProForm/components/render/Render.js +4 -2
  49. package/es/ProForm/components/render/RenderFields.js +10 -6
  50. package/es/ProForm/components/render/propsType.d.ts +5 -4
  51. package/es/ProForm/index.js +14 -2
  52. package/es/ProForm/style/index.less +77 -169
  53. package/es/ProForm/utils/index.d.ts +1 -1
  54. package/es/ProForm/utils/index.js +7 -2
  55. package/es/ProForm/utils/rulesCreator.js +2 -1
  56. package/es/ProForm/utils/useRules.js +4 -3
  57. package/es/ProForm/utils/useShouldUpdate.js +16 -16
  58. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  59. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  60. package/es/ProLayout/components/Layout/Notice/index.js +3 -2
  61. package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
  62. package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  63. package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +2 -1
  64. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  65. package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  66. package/es/ProLayout/components/ProHeader/components/index.js +2 -1
  67. package/es/ProLayout/components/ProHeader/index.js +9 -6
  68. package/es/ProLayout/components/ProHeader/style/index.less +16 -7
  69. package/es/ProLayout/utils/index.js +1 -1
  70. package/es/ProSelect/index.d.ts +3 -3
  71. package/es/ProSelect/index.js +4 -2
  72. package/es/ProStep/components/Step/index.js +3 -1
  73. package/es/ProStep/style/index.less +0 -1
  74. package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
  75. package/es/ProTable/components/RenderColumn/index.js +41 -25
  76. package/es/ProTable/index.js +10 -8
  77. package/es/ProTable/propsType.d.ts +2 -0
  78. package/es/ProTable/style/index.less +14 -1
  79. package/es/ProTable/useAntdTable.d.ts +12 -4
  80. package/es/ProTable/useAntdTable.js +18 -6
  81. package/es/ProTable/utils.d.ts +1 -1
  82. package/es/ProTable/utils.js +258 -201
  83. package/es/ProTabs/style/index.less +1 -1
  84. package/es/ProThemeTools/component/PrdTools/index.js +1 -1
  85. package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
  86. package/es/ProThemeTools/index.d.ts +2 -2
  87. package/es/ProThemeTools/index.js +24 -17
  88. package/es/ProThemeTools/propsType.d.ts +8 -6
  89. package/es/ProThemeTools/style/index.less +2 -2
  90. package/es/ProThemeTools/utils/index.d.ts +7 -0
  91. package/es/ProThemeTools/utils/index.js +19 -1
  92. package/es/ProTree/components/ProTree.js +6 -5
  93. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  94. package/es/ProTree/components/SearchTitle.js +11 -1
  95. package/es/ProTree/components/Tree.js +9 -2
  96. package/es/ProTree/style/index.less +193 -141
  97. package/es/ProTreeModal/components/List.js +0 -14
  98. package/es/ProTreeModal/components/Trigger.js +9 -3
  99. package/es/ProTreeModal/index.js +29 -13
  100. package/es/ProTreeModal/style/index.less +2 -6
  101. package/es/ProUpload/components/ButtonRender.js +5 -2
  102. package/es/ProUpload/components/DragRender.js +8 -8
  103. package/es/ProUpload/components/Example.js +3 -1
  104. package/es/ProUpload/components/ImageRender.js +8 -6
  105. package/es/ProUpload/index.js +8 -6
  106. package/es/ProUpload/style/index.less +41 -39
  107. package/es/index.d.ts +2 -1
  108. package/es/index.js +2 -1
  109. package/es/locale/en_US.d.ts +138 -0
  110. package/es/locale/en_US.js +137 -0
  111. package/es/locale/index.d.ts +13 -0
  112. package/es/locale/index.js +32 -0
  113. package/es/locale/zh_CN.d.ts +137 -0
  114. package/es/locale/zh_CN.js +136 -0
  115. package/es/old/ProEditableTable/style/index.less +1 -2
  116. package/es/style/components.less +0 -1
  117. package/es/style/core/normalize.less +1 -2
  118. package/es/style/theme/antd.less +3 -4
  119. package/es/style/theme/index.less +80 -79
  120. package/es/style/theme/tokens.less +1 -0
  121. package/lib/ProAction/index.js +7 -5
  122. package/lib/ProAction/index.less +3 -2
  123. package/lib/ProConfigProvider/index.d.ts +2 -0
  124. package/lib/ProConfigProvider/index.js +22 -2
  125. package/lib/ProDownload/utils.js +4 -3
  126. package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
  127. package/lib/ProDrawerForm/index.js +5 -3
  128. package/lib/ProDrawerForm/style/index.less +15 -11
  129. package/lib/ProEditLabel/style/index.less +2 -2
  130. package/lib/ProEditTable/components/ActionButton/index.js +3 -2
  131. package/lib/ProEditTable/components/RenderField/index.js +4 -1
  132. package/lib/ProEditTable/index.js +7 -6
  133. package/lib/ProEditTable/style/index.less +15 -8
  134. package/lib/ProEditTable/utils/config.d.ts +8 -8
  135. package/lib/ProEditTable/utils/config.js +20 -12
  136. package/lib/ProEditTable/utils/index.js +3 -2
  137. package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
  138. package/lib/ProEnum/index.js +9 -4
  139. package/lib/ProEnum/style/index.less +1 -1
  140. package/lib/ProForm/components/FormFooter/index.js +16 -19
  141. package/lib/ProForm/components/base/Input/index.js +4 -3
  142. package/lib/ProForm/components/base/InputNumber/index.js +4 -3
  143. package/lib/ProForm/components/base/RangePicker/index.js +1 -4
  144. package/lib/ProForm/components/base/Select/index.js +2 -1
  145. package/lib/ProForm/components/base/Switch/index.js +8 -5
  146. package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  147. package/lib/ProForm/components/base/TextArea/index.js +4 -2
  148. package/lib/ProForm/components/base/TextArea/index.less +1 -1
  149. package/lib/ProForm/components/combination/Container/style/index.less +0 -1
  150. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  151. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  152. package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
  153. package/lib/ProForm/components/combination/Group/index.js +2 -2
  154. package/lib/ProForm/components/combination/ProAddressBar/index.js +78 -60
  155. package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  156. package/lib/ProForm/components/combination/ProModalSelect/index.js +76 -15
  157. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  158. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  159. package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
  160. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  161. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  162. package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  163. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  164. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  165. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  166. package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
  167. package/lib/ProForm/components/old/InputRange/index.js +0 -1
  168. package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
  169. package/lib/ProForm/components/render/Render.js +5 -2
  170. package/lib/ProForm/components/render/RenderFields.js +9 -5
  171. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  172. package/lib/ProForm/index.js +14 -2
  173. package/lib/ProForm/style/index.less +77 -169
  174. package/lib/ProForm/utils/index.d.ts +1 -1
  175. package/lib/ProForm/utils/index.js +7 -2
  176. package/lib/ProForm/utils/rulesCreator.js +2 -1
  177. package/lib/ProForm/utils/useRules.js +4 -3
  178. package/lib/ProForm/utils/useShouldUpdate.js +16 -16
  179. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  180. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  181. package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
  182. package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
  183. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  184. package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +3 -1
  185. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  186. package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  187. package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
  188. package/lib/ProLayout/components/ProHeader/index.js +9 -6
  189. package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
  190. package/lib/ProLayout/utils/index.js +1 -1
  191. package/lib/ProSelect/index.d.ts +3 -3
  192. package/lib/ProSelect/index.js +4 -2
  193. package/lib/ProStep/components/Step/index.js +3 -1
  194. package/lib/ProStep/style/index.less +0 -1
  195. package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
  196. package/lib/ProTable/components/RenderColumn/index.js +38 -24
  197. package/lib/ProTable/components/TableResizable/index.js +8 -0
  198. package/lib/ProTable/index.js +10 -8
  199. package/lib/ProTable/propsType.d.ts +2 -0
  200. package/lib/ProTable/style/index.less +14 -1
  201. package/lib/ProTable/useAntdTable.d.ts +12 -4
  202. package/lib/ProTable/useAntdTable.js +19 -6
  203. package/lib/ProTable/utils.d.ts +1 -1
  204. package/lib/ProTable/utils.js +258 -201
  205. package/lib/ProTabs/index.js +1 -0
  206. package/lib/ProTabs/style/index.less +1 -1
  207. package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
  208. package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
  209. package/lib/ProThemeTools/index.d.ts +2 -2
  210. package/lib/ProThemeTools/index.js +24 -16
  211. package/lib/ProThemeTools/propsType.d.ts +8 -6
  212. package/lib/ProThemeTools/style/index.less +2 -2
  213. package/lib/ProThemeTools/utils/index.d.ts +7 -0
  214. package/lib/ProThemeTools/utils/index.js +20 -2
  215. package/lib/ProTree/components/ProTree.js +6 -5
  216. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  217. package/lib/ProTree/components/SearchTitle.js +11 -1
  218. package/lib/ProTree/components/Tree.js +16 -2
  219. package/lib/ProTree/index.js +0 -1
  220. package/lib/ProTree/style/index.less +193 -141
  221. package/lib/ProTreeModal/components/List.js +0 -14
  222. package/lib/ProTreeModal/components/Tree.js +1 -0
  223. package/lib/ProTreeModal/components/Trigger.js +10 -3
  224. package/lib/ProTreeModal/index.js +29 -13
  225. package/lib/ProTreeModal/style/index.less +2 -6
  226. package/lib/ProUpload/components/ButtonRender.js +5 -2
  227. package/lib/ProUpload/components/DragRender.js +8 -8
  228. package/lib/ProUpload/components/Example.js +3 -1
  229. package/lib/ProUpload/components/ImageRender.js +8 -6
  230. package/lib/ProUpload/index.js +14 -5
  231. package/lib/ProUpload/style/index.less +41 -39
  232. package/lib/index.d.ts +2 -1
  233. package/lib/index.js +13 -1
  234. package/lib/locale/en_US.d.ts +138 -0
  235. package/lib/locale/en_US.js +143 -0
  236. package/lib/locale/index.d.ts +13 -0
  237. package/lib/locale/index.js +41 -0
  238. package/lib/locale/zh_CN.d.ts +137 -0
  239. package/lib/locale/zh_CN.js +142 -0
  240. package/lib/old/ProCertValidity/index.js +1 -1
  241. package/lib/old/ProEditableTable/style/index.less +1 -2
  242. package/lib/style/components.less +0 -1
  243. package/lib/style/core/normalize.less +1 -2
  244. package/lib/style/theme/antd.less +3 -4
  245. package/lib/style/theme/index.less +80 -79
  246. package/lib/style/theme/tokens.less +1 -0
  247. package/package.json +1 -1
  248. package/typings.d.ts +2 -0
  249. package/es/old/ProBackBtn/style/index.less +0 -19
  250. package/lib/old/ProBackBtn/style/index.less +0 -19
  251. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  252. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  253. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
  254. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  255. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  256. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
@@ -0,0 +1,138 @@
1
+ declare const _default: {
2
+ ProDrawerForm: {
3
+ save: string;
4
+ confirm: string;
5
+ cancel: string;
6
+ isSureClose: string;
7
+ secondTipsWhenSave: string;
8
+ };
9
+ ProLayout: {
10
+ tipAlt: string;
11
+ closeAlt: string;
12
+ };
13
+ ProHeader: {
14
+ versionTitle: string;
15
+ confirm: string;
16
+ cancel: string;
17
+ confirmTitle: string;
18
+ backText: string;
19
+ copyTooltips: string[];
20
+ };
21
+ ProDownload: {
22
+ errorMessage: string;
23
+ };
24
+ ProForm: {
25
+ unfold: string;
26
+ packUp: string;
27
+ inputPlaceholder: string;
28
+ selectPlaceHolder: string;
29
+ switchText: string[];
30
+ search: string;
31
+ reset: string;
32
+ ruleText: string;
33
+ completeText: string;
34
+ formList_actions: string[];
35
+ formList_confirmMessage: string;
36
+ };
37
+ ProAction: {
38
+ errorMessage: string;
39
+ defaultTitle: string;
40
+ };
41
+ ProWaterMark: {};
42
+ ProTable: {
43
+ noData: string;
44
+ resetColumnWidth: string;
45
+ customColumns: string;
46
+ transformResponseMsg: string;
47
+ deselect: string;
48
+ selectCurPage: string;
49
+ selectAll: string;
50
+ hasSelected: string;
51
+ total: string;
52
+ };
53
+ ProAddressBar: {
54
+ placeholder: string;
55
+ detailPlaceholder: string;
56
+ };
57
+ ProTree: {
58
+ inputPlaceholder: string;
59
+ unExpand: string;
60
+ expand: string;
61
+ all: string;
62
+ emptyTips: string;
63
+ };
64
+ ProUpload: {
65
+ exampleTitle: string;
66
+ errorInfoExt: string;
67
+ errorInfoSize: string;
68
+ buttonText: string;
69
+ draggerSelect: string;
70
+ draggerDelete: string;
71
+ draggerTips: string;
72
+ draggerBtnTxt: string;
73
+ draggerFileExt: string;
74
+ draggerLimitless: string;
75
+ view: string;
76
+ delete: string;
77
+ download: string;
78
+ };
79
+ ProStep: {
80
+ catalogue: string;
81
+ };
82
+ ProEditTable: {
83
+ confirm: string;
84
+ cancel: string;
85
+ noData: string;
86
+ clickAdd: string;
87
+ select: string;
88
+ enter: string;
89
+ add: string;
90
+ edit: string;
91
+ copy: string;
92
+ delete: string;
93
+ mulDelete: string;
94
+ save: string;
95
+ custom: string;
96
+ operation: string;
97
+ onlyOneLineMsg: string;
98
+ deletePoConfirmMsg: string;
99
+ mulDeletePoConfirmMsg: string;
100
+ };
101
+ ProModalSelect: {
102
+ checkMsg: string;
103
+ select: string;
104
+ };
105
+ ProSelect: {
106
+ checkMsg: string;
107
+ select: string;
108
+ };
109
+ ProEnum: {
110
+ errorDataSource: string;
111
+ errorMessage: string;
112
+ errorArrayMessage: string;
113
+ errorNoEnumType: string;
114
+ mainInitByRequest: string;
115
+ mainInitByCache: string;
116
+ requestError: string;
117
+ mainInitOnce: string;
118
+ sonInitEvent: string;
119
+ };
120
+ ProTreeModal: {
121
+ checkMsg: string;
122
+ select: string;
123
+ input: string;
124
+ errorArrayMessage: string;
125
+ selectMin: string;
126
+ selectMax: string;
127
+ noCheck: string;
128
+ checkAll: string;
129
+ check: string;
130
+ clearAll: string;
131
+ checkNumber: string;
132
+ noFinal: string;
133
+ };
134
+ ProTimeLimit: {
135
+ foreverText: string;
136
+ };
137
+ };
138
+ export default _default;
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ ProDrawerForm: {
9
+ save: 'Save',
10
+ confirm: 'Confirm',
11
+ cancel: 'Cancel',
12
+ isSureClose: 'Confirm to close the current page',
13
+ secondTipsWhenSave: 'Close the current page content will not be saved, need to click the Save button to save'
14
+ },
15
+ ProLayout: {
16
+ tipAlt: 'Tips',
17
+ closeAlt: 'Close'
18
+ },
19
+ ProHeader: {
20
+ versionTitle: 'Version number',
21
+ confirm: 'Confirm',
22
+ cancel: 'Cancel',
23
+ confirmTitle: 'Confirm return?',
24
+ backText: 'Return',
25
+ copyTooltips: ['Copy', 'Copy successfully']
26
+ },
27
+ ProDownload: {
28
+ errorMessage: 'Request failed!'
29
+ },
30
+ ProForm: {
31
+ unfold: 'Unfold',
32
+ packUp: 'PackUp',
33
+ inputPlaceholder: 'Please enter',
34
+ selectPlaceHolder: 'Please select',
35
+ switchText: ['Yes', 'No'],
36
+ search: 'Search',
37
+ reset: 'Reset',
38
+ ruleText: 'correct',
39
+ completeText: 'enter in full',
40
+ formList_actions: ['Add', 'Delete', 'Copy', 'Move up', 'Move down', 'Add a new line'],
41
+ formList_confirmMessage: 'Are you sure delete it?'
42
+ },
43
+ ProAction: {
44
+ errorMessage: 'The configuration config for ProAction must be data',
45
+ defaultTitle: 'Are you sure delete it?'
46
+ },
47
+ ProWaterMark: {},
48
+ ProTable: {
49
+ noData: 'No data',
50
+ resetColumnWidth: 'Reset column width',
51
+ customColumns: 'Custom columns',
52
+ transformResponseMsg: 'Please return the correct data type',
53
+ deselect: 'Deselect',
54
+ selectCurPage: 'Select the current page ({total} items)',
55
+ selectAll: 'Select All ({total} items)',
56
+ hasSelected: '{selectedNum} items selected',
57
+ total: '{total} items in total'
58
+ },
59
+ ProAddressBar: {
60
+ placeholder: 'Please select',
61
+ detailPlaceholder: 'Please enter detailed address'
62
+ },
63
+ ProTree: {
64
+ inputPlaceholder: 'Please enter',
65
+ unExpand: 'Put it all away',
66
+ expand: 'Expand all',
67
+ all: 'Select all',
68
+ emptyTips: "Oops, what you were looking for couldn't be found"
69
+ },
70
+ ProUpload: {
71
+ exampleTitle: 'View sample',
72
+ errorInfoExt: 'Only {} format files are supported',
73
+ errorInfoSize: 'File size cannot exceed ',
74
+ buttonText: 'Upload',
75
+ draggerSelect: 'Select file',
76
+ draggerDelete: 'Delete',
77
+ draggerTips: 'Click or drag file to this area to upload',
78
+ draggerBtnTxt: 'Click to upload',
79
+ draggerFileExt: 'Support for extensions',
80
+ draggerLimitless: 'Limitless',
81
+ view: 'View',
82
+ delete: 'Delete',
83
+ download: 'Download'
84
+ },
85
+ ProStep: {
86
+ catalogue: 'Catalogue'
87
+ },
88
+ ProEditTable: {
89
+ confirm: 'Confirm',
90
+ cancel: 'Cancel',
91
+ noData: 'No data',
92
+ clickAdd: 'Click add',
93
+ select: 'Please select',
94
+ enter: 'Please enter',
95
+ add: 'Add',
96
+ edit: 'Edit',
97
+ copy: 'Copy',
98
+ delete: 'Delete',
99
+ mulDelete: 'Batch delete',
100
+ save: 'Save',
101
+ custom: 'Custom',
102
+ operation: 'Operation',
103
+ onlyOneLineMsg: 'Please save the data first',
104
+ deletePoConfirmMsg: 'Are you sure you want to delete this row of data?',
105
+ mulDeletePoConfirmMsg: 'Are you sure you want to delete the selected data?'
106
+ },
107
+ ProModalSelect: {
108
+ checkMsg: 'Please check the box first',
109
+ select: 'Please select'
110
+ },
111
+ ProSelect: {
112
+ checkMsg: 'Please check first',
113
+ select: 'Please select'
114
+ },
115
+ ProEnum: {
116
+ errorDataSource: 'Please pass in a valid data source',
117
+ errorMessage: 'Please return the correct data type',
118
+ errorArrayMessage: 'Please return a valid array',
119
+ errorNoEnumType: 'Please pass in the enumeration type',
120
+ mainInitByRequest: 'Main application initialization triggers read data update from interface',
121
+ mainInitByCache: 'Main application initialization triggers data update from cache',
122
+ requestError: 'Request failed',
123
+ mainInitOnce: 'Main application initialization triggers once',
124
+ sonInitEvent: 'Sub-application initializes listening actions'
125
+ },
126
+ ProTreeModal: {
127
+ checkMsg: 'Please check first',
128
+ select: 'Please select',
129
+ input: 'please enter',
130
+ errorArrayMessage: 'Please return a valid array',
131
+ selectMin: 'Select at least {min}',
132
+ selectMax: 'Select at most {max} items',
133
+ noCheck: 'None selected yet',
134
+ checkAll: 'select all',
135
+ check: 'selected',
136
+ clearAll: 'Clear all',
137
+ checkNumber: '{num} items selected',
138
+ noFinal: 'Oops, the content you are looking for is not found.'
139
+ },
140
+ ProTimeLimit: {
141
+ foreverText: 'long term'
142
+ }
143
+ };
@@ -0,0 +1,13 @@
1
+ /** 设置语言
2
+ * lang当前语言
3
+ * isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
4
+ */
5
+ export declare const setLanguage: (lang: string, isReload?: boolean) => void;
6
+ /**
7
+ * @param str 待替换字符串 eg: 我是{name},年龄{age}
8
+ * @param variables 变量对象 {name: 'xx', age: 23}
9
+ * @returns 替换后字符串 我是xx,年龄23
10
+ */
11
+ export declare function formatMessage(str: string, variables: object): string;
12
+ declare const _default: any;
13
+ export default _default;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ exports.formatMessage = formatMessage;
9
+ exports.setLanguage = void 0;
10
+ var _moment = _interopRequireDefault(require("moment"));
11
+ var _zh_CN = _interopRequireDefault(require("./zh_CN"));
12
+ var _en_US = _interopRequireDefault(require("./en_US"));
13
+ var activeLang = localStorage.getItem('locale') || 'zh-CN';
14
+ var langMap = {
15
+ 'zh-CN': _zh_CN.default,
16
+ 'en-US': _en_US.default // en-US
17
+ };
18
+ /** 设置语言
19
+ * lang当前语言
20
+ * isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
21
+ */
22
+ var setLanguage = exports.setLanguage = function setLanguage(lang, isReload) {
23
+ activeLang = lang;
24
+ localStorage.setItem('locale', lang);
25
+ _moment.default.locale(lang.toLowerCase());
26
+ if (isReload) {
27
+ window.location.reload();
28
+ }
29
+ };
30
+ /**
31
+ * @param str 待替换字符串 eg: 我是{name},年龄{age}
32
+ * @param variables 变量对象 {name: 'xx', age: 23}
33
+ * @returns 替换后字符串 我是xx,年龄23
34
+ */
35
+ function formatMessage(str, variables) {
36
+ return str.replace(/{\s*([\w\s]+)\s*}/g, function (match, variable) {
37
+ var trimmedVariable = variable.trim();
38
+ return variables[trimmedVariable] || '';
39
+ });
40
+ }
41
+ var _default = exports.default = langMap[activeLang];
@@ -0,0 +1,137 @@
1
+ declare const _default: {
2
+ ProDrawerForm: {
3
+ save: string;
4
+ confirm: string;
5
+ cancel: string;
6
+ isSureClose: string;
7
+ secondTipsWhenSave: string;
8
+ };
9
+ ProLayout: {
10
+ tipAlt: string;
11
+ closeAlt: string;
12
+ };
13
+ ProHeader: {
14
+ versionTitle: string;
15
+ confirmTitle: string;
16
+ confirm: string;
17
+ cancel: string;
18
+ backText: string;
19
+ copyTooltips: string[];
20
+ };
21
+ ProDownload: {
22
+ errorMessage: string;
23
+ };
24
+ ProForm: {
25
+ unfold: string;
26
+ packUp: string;
27
+ inputPlaceholder: string;
28
+ selectPlaceHolder: string;
29
+ switchText: string[];
30
+ search: string;
31
+ reset: string;
32
+ ruleText: string;
33
+ completeText: string;
34
+ formList_actions: string[];
35
+ formList_confirmMessage: string;
36
+ };
37
+ ProAction: {
38
+ errorMessage: string;
39
+ defaultTitle: string;
40
+ };
41
+ ProWaterMark: {};
42
+ ProTable: {
43
+ noData: string;
44
+ resetColumnWidth: string;
45
+ customColumns: string;
46
+ transformResponseMsg: string;
47
+ deselect: string;
48
+ selectCurPage: string;
49
+ selectAll: string;
50
+ hasSelected: string;
51
+ total: string;
52
+ };
53
+ ProAddressBar: {
54
+ placeholder: string;
55
+ detailPlaceholder: string;
56
+ };
57
+ ProTree: {
58
+ inputPlaceholder: string;
59
+ unExpand: string;
60
+ expand: string;
61
+ all: string;
62
+ emptyTips: string;
63
+ };
64
+ ProUpload: {
65
+ exampleTitle: string;
66
+ errorInfoExt: string;
67
+ errorInfoSize: string;
68
+ buttonText: string;
69
+ draggerSelect: string;
70
+ draggerDelete: string;
71
+ draggerTips: string;
72
+ draggerBtnTxt: string;
73
+ draggerFileExt: string;
74
+ draggerLimitless: string;
75
+ view: string;
76
+ delete: string;
77
+ download: string;
78
+ };
79
+ ProStep: {
80
+ catalogue: string;
81
+ };
82
+ ProEditTable: {
83
+ confirm: string;
84
+ cancel: string;
85
+ select: string;
86
+ enter: string;
87
+ add: string;
88
+ edit: string;
89
+ copy: string;
90
+ delete: string;
91
+ mulDelete: string;
92
+ save: string;
93
+ custom: string;
94
+ operation: string;
95
+ noData: string;
96
+ clickAdd: string;
97
+ onlyOneLineMsg: string;
98
+ deletePoConfirmMsg: string;
99
+ mulDeletePoConfirmMsg: string;
100
+ };
101
+ ProModalSelect: {
102
+ checkMsg: string;
103
+ select: string;
104
+ };
105
+ ProSelect: {
106
+ checkMsg: string;
107
+ select: string;
108
+ };
109
+ ProEnum: {
110
+ errorDataSource: string;
111
+ errorMessage: string;
112
+ errorArrayMessage: string;
113
+ errorNoEnumType: string;
114
+ mainInitByRequest: string;
115
+ mainInitByCache: string;
116
+ requestError: string;
117
+ mainInitOnce: string;
118
+ sonInitEvent: string;
119
+ };
120
+ ProTreeModal: {
121
+ checkMsg: string;
122
+ select: string;
123
+ input: string;
124
+ errorArrayMessage: string;
125
+ selectMin: string;
126
+ selectMax: string;
127
+ noCheck: string;
128
+ checkAll: string;
129
+ check: string;
130
+ clearAll: string;
131
+ checkNumber: string;
132
+ };
133
+ ProTimeLimit: {
134
+ foreverText: string;
135
+ };
136
+ };
137
+ export default _default;
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ ProDrawerForm: {
9
+ save: '保存',
10
+ confirm: '确定',
11
+ cancel: '取消',
12
+ isSureClose: '确认关闭当前页面',
13
+ secondTipsWhenSave: '关闭当前页面内容不会被保存,需要点击“保存”按钮进行保存'
14
+ },
15
+ ProLayout: {
16
+ tipAlt: '提示',
17
+ closeAlt: '关闭'
18
+ },
19
+ ProHeader: {
20
+ versionTitle: '版本号',
21
+ confirmTitle: '确认返回?',
22
+ confirm: '确定',
23
+ cancel: '取消',
24
+ backText: '返回',
25
+ copyTooltips: ['复制', '复制成功']
26
+ },
27
+ ProDownload: {
28
+ errorMessage: '请求失败!'
29
+ },
30
+ ProForm: {
31
+ unfold: '展开',
32
+ packUp: '收起',
33
+ inputPlaceholder: '请输入',
34
+ selectPlaceHolder: '请选择',
35
+ switchText: ['是', '否'],
36
+ search: '查询',
37
+ reset: '重置',
38
+ ruleText: '正确的',
39
+ completeText: '请完整输入',
40
+ formList_actions: ['新增', '删除', '复制', '上移', '下移', '新增一行'],
41
+ formList_confirmMessage: '确认删除吗?'
42
+ },
43
+ ProAction: {
44
+ errorMessage: 'ProAction 配置 config 必须为数据',
45
+ defaultTitle: '确认删除吗?'
46
+ },
47
+ ProWaterMark: {},
48
+ ProTable: {
49
+ noData: '暂无数据',
50
+ resetColumnWidth: '重置列宽',
51
+ customColumns: '自定义列',
52
+ transformResponseMsg: '请返回正确的数据类型',
53
+ deselect: '取消选择',
54
+ selectCurPage: '选择当前页({total}条)',
55
+ selectAll: '选择全部({total}条)',
56
+ hasSelected: '已选 {selectedNum} 条数据',
57
+ total: '共{total}条'
58
+ },
59
+ ProAddressBar: {
60
+ placeholder: '请选择',
61
+ detailPlaceholder: '请输入详细地址'
62
+ },
63
+ ProTree: {
64
+ inputPlaceholder: '请输入',
65
+ unExpand: '全部收起',
66
+ expand: '全部展开',
67
+ all: '全选',
68
+ emptyTips: '诶呀,没有找到您要查询的内容'
69
+ },
70
+ ProUpload: {
71
+ exampleTitle: '查看示例',
72
+ errorInfoExt: '文件格式只支持',
73
+ errorInfoSize: '上传的文件不能超过',
74
+ buttonText: '上传文件',
75
+ draggerSelect: '重新选择',
76
+ draggerDelete: '删除',
77
+ draggerTips: '将文件拖拽到此处,或点击上传',
78
+ draggerBtnTxt: '点击上传',
79
+ draggerFileExt: '支持扩展名',
80
+ draggerLimitless: '无限制',
81
+ view: '查看',
82
+ delete: '删除',
83
+ download: '下载'
84
+ },
85
+ ProStep: {
86
+ catalogue: '目录'
87
+ },
88
+ ProEditTable: {
89
+ confirm: '确定',
90
+ cancel: '取消',
91
+ select: '请选择',
92
+ enter: '请输入',
93
+ add: '添加',
94
+ edit: '编辑',
95
+ copy: '复制',
96
+ delete: '删除',
97
+ mulDelete: '删除',
98
+ save: '保存',
99
+ custom: '自定义',
100
+ operation: '操作',
101
+ noData: '暂无数据',
102
+ clickAdd: '点击添加',
103
+ onlyOneLineMsg: '请先保存数据',
104
+ deletePoConfirmMsg: '您确定要删除该行数据吗?',
105
+ mulDeletePoConfirmMsg: '您确定要删除选中的数据吗?'
106
+ },
107
+ ProModalSelect: {
108
+ checkMsg: '请先勾选',
109
+ select: '请选择'
110
+ },
111
+ ProSelect: {
112
+ checkMsg: '请先勾选',
113
+ select: '请选择'
114
+ },
115
+ ProEnum: {
116
+ errorDataSource: '请传入有效的数据源',
117
+ errorMessage: '请返回正确的数据类型',
118
+ errorArrayMessage: '请返回有效的数组',
119
+ errorNoEnumType: '请传入枚举类型',
120
+ mainInitByRequest: '主应用初始化触发从接口读取数据更新',
121
+ mainInitByCache: '主应用初始化触发从缓存读取数据更新',
122
+ requestError: '请求失败',
123
+ mainInitOnce: '主应用初始化触发一次',
124
+ sonInitEvent: '子应用初始化监听动作'
125
+ },
126
+ ProTreeModal: {
127
+ checkMsg: '请先勾选',
128
+ select: '请选择',
129
+ input: '请输入',
130
+ errorArrayMessage: '请返回有效的数组',
131
+ selectMin: '最少选择{min}个',
132
+ selectMax: '最多选择{max}个',
133
+ noCheck: '暂无已选',
134
+ checkAll: '全选',
135
+ check: '已选',
136
+ clearAll: '清空全部',
137
+ checkNumber: '已选择{num}项'
138
+ },
139
+ ProTimeLimit: {
140
+ foreverText: '长期'
141
+ }
142
+ };
@@ -11,7 +11,7 @@ var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _antd = require("antd");
12
12
  var _moment = _interopRequireDefault(require("moment"));
13
13
  var _react = require("react");
14
- var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"];
14
+ var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"]; // @ts-nocheck
15
15
  var RangePicker = _antd.DatePicker.RangePicker;
16
16
  var defaultFormatDate = 'YYYY-MM-DD';
17
17
  var defaultPopupContainer = function defaultPopupContainer(triggerNode) {
@@ -4,8 +4,7 @@
4
4
  display : inline-block;
5
5
  margin-right: 4px;
6
6
  color : #ff5050;
7
- font-size : 14px;
8
- font-family : SimSun, sans-serif;
7
+ font-size : var(--zaui-font-size, 14px);
9
8
  line-height : 1;
10
9
  content : '*';
11
10
  }
@@ -29,5 +29,4 @@
29
29
 
30
30
 
31
31
  // old 待废弃
32
- @import '../old/ProBackBtn/style/index';
33
32
  @import '../old/ProEditableTable/style/index';
@@ -223,7 +223,6 @@ samp {
223
223
  }
224
224
 
225
225
  .clickable,
226
- label,
227
226
  input[type='button'],
228
227
  input[type='submit'],
229
228
  input[type='file'],
@@ -243,4 +242,4 @@ button,
243
242
  input[type='button'] {
244
243
  width : auto;
245
244
  overflow: visible;
246
- }
245
+ }
@@ -55,8 +55,7 @@
55
55
  &>.ant-form-item-required::after {
56
56
  margin-top : 1px;
57
57
  color : #ff4d4f;
58
- font-size : 14px;
59
- font-family: SimSun, sans-serif;
58
+ font-size : var(--zaui-font-size, 14px);
60
59
  line-height: 1;
61
60
  content : '*';
62
61
  }
@@ -86,7 +85,7 @@
86
85
  }
87
86
 
88
87
  .ant-form-item {
89
- margin-bottom: 22px !important;
88
+ margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
90
89
  }
91
90
  }
92
91
 
@@ -332,7 +331,7 @@
332
331
  }
333
332
 
334
333
  .ant-tabs-nav {
335
- margin-bottom: var(--zaui-space-size-md, 16px)
334
+ margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
336
335
  }
337
336
 
338
337
  .ant-tabs-nav .ant-tabs-tab-btn {