@ztocwst/rc-pro-materials 0.2.1 → 0.2.3-4.1

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 (301) hide show
  1. package/README.md +17 -17
  2. package/build/index.js +8 -8
  3. package/build/lowcode/assets-daily.json +11 -11
  4. package/build/lowcode/assets-dev.json +8 -8
  5. package/build/lowcode/assets-prod.json +11 -11
  6. package/build/lowcode/designer.html +2 -2
  7. package/build/lowcode/index.html +2 -2
  8. package/build/lowcode/index.js +1 -1
  9. package/build/lowcode/meta.js +1 -1
  10. package/build/lowcode/preview.css +1 -1
  11. package/build/lowcode/preview.js +4 -5
  12. package/build/lowcode/render/default/view.css +1 -2
  13. package/build/lowcode/render/default/view.js +9 -58
  14. package/build/lowcode/view.css +1 -2
  15. package/build/lowcode/view.js +10 -59
  16. package/dist/SCM_Comps.css +2 -2
  17. package/dist/SCM_Comps.js +22 -53
  18. package/dist/SCM_Comps.js.map +1 -1
  19. package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
  20. package/es/components/z-Ellipsis/index.d.ts +3 -3
  21. package/es/components/z-agg-block/index.d.ts +3 -3
  22. package/es/components/z-agg-block/index.less +134 -134
  23. package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
  24. package/es/components/z-agg-block/z-agg-block.js +1 -1
  25. package/es/components/z-auth/auth.d.ts +9 -9
  26. package/es/components/z-auth/index.d.ts +3 -3
  27. package/es/components/z-box/box.d.ts +20 -20
  28. package/es/components/z-box/index.d.ts +3 -3
  29. package/es/components/z-box/index.less +4 -4
  30. package/es/components/z-button/index.d.ts +3 -3
  31. package/es/components/z-button/z-button.d.ts +4 -4
  32. package/es/components/z-config-provider/configProvider.d.ts +4 -4
  33. package/es/components/z-config-provider/configProvider.js +45 -4
  34. package/es/components/z-config-provider/index.d.ts +3 -3
  35. package/es/components/z-data-table/data-table.d.ts +9 -0
  36. package/es/components/z-data-table/data-table.js +24 -0
  37. package/es/components/z-data-table/index.d.ts +3 -0
  38. package/es/components/z-data-table/index.js +2 -0
  39. package/es/components/z-div/div.d.ts +6 -6
  40. package/es/components/z-div/index.d.ts +2 -2
  41. package/es/components/z-editTable/editTable.d.ts +11 -11
  42. package/es/components/z-editTable/editTable.js +3 -4
  43. package/es/components/z-editTable/index.d.ts +2 -2
  44. package/es/components/z-form/index.d.ts +3 -3
  45. package/es/components/z-form/z-form.d.ts +10 -10
  46. package/es/components/z-form/z-form.js +1 -1
  47. package/es/components/z-list/index.d.ts +3 -3
  48. package/es/components/z-list/list.d.ts +17 -17
  49. package/es/components/z-list/list.js +3 -3
  50. package/es/components/z-operation-records/index.d.ts +3 -3
  51. package/es/components/z-operation-records/operationRecords.d.ts +4 -4
  52. package/es/components/z-pointer-block/index.d.ts +3 -3
  53. package/es/components/z-pointer-block/index.less +15 -15
  54. package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  55. package/es/components/z-preview/index.d.ts +3 -3
  56. package/es/components/z-preview/preview.d.ts +4 -4
  57. package/es/components/z-pro-provider/index.d.ts +3 -3
  58. package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  59. package/es/components/z-ranking-list/index.d.ts +2 -2
  60. package/es/components/z-ranking-list/index.less +49 -49
  61. package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  62. package/es/components/z-ranking-list/z-ranking-list.js +2 -3
  63. package/es/components/z-simple-bar/index.d.ts +3 -3
  64. package/es/components/z-simple-bar/index.less +9 -9
  65. package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  66. package/es/components/z-singleFactory/index.d.ts +2 -2
  67. package/es/components/z-singleFactory/zSingerFactory.d.ts +2 -3
  68. package/es/components/z-slick/index.d.ts +3 -0
  69. package/es/components/z-slick/index.js +2 -0
  70. package/es/components/z-slick/slick.d.ts +47 -0
  71. package/es/components/z-slick/slick.js +35 -0
  72. package/es/components/z-statistic/index.d.ts +3 -3
  73. package/es/components/z-statistic/index.less +22 -22
  74. package/es/components/z-statistic/z-statistic.d.ts +13 -13
  75. package/es/components/z-table/index.d.ts +3 -3
  76. package/es/components/z-table/table.d.ts +8 -8
  77. package/es/components/z-table/table.js +1 -1
  78. package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
  79. package/es/components/z-templates-data-common/components/chart-renderer/index.js +33 -13
  80. package/es/components/z-templates-data-common/data-common.d.ts +20 -105
  81. package/es/components/z-templates-data-common/data-common.helper.d.ts +2 -61
  82. package/es/components/z-templates-data-common/data-common.helper.js +2 -336
  83. package/es/components/z-templates-data-common/data-common.js +81 -62
  84. package/es/components/z-templates-data-common/index.d.ts +3 -3
  85. package/es/components/z-tpl/index.d.ts +3 -3
  86. package/es/components/z-tpl/tpl.d.ts +23 -23
  87. package/es/components/z-tpl/tpl.js +3 -3
  88. package/es/components/z-warehouse/index.d.ts +2 -2
  89. package/es/components/z-warehouse/zWarehouse.d.ts +2 -3
  90. package/es/components/z-watermark/index.d.ts +3 -0
  91. package/es/components/z-watermark/index.js +2 -0
  92. package/es/components/z-watermark/zWatermark.d.ts +3 -0
  93. package/es/components/z-watermark/zWatermark.js +4 -0
  94. package/es/index.d.ts +44 -38
  95. package/es/index.js +4 -0
  96. package/es/index.scss +1 -1
  97. package/es/style.js +2 -6
  98. package/es/utils/hoc.d.ts +6 -6
  99. package/es/utils/hoc.js +3 -3
  100. package/es/utils/index.d.ts +13 -13
  101. package/es/utils/index.js +5 -1
  102. package/es/utils/props/button.d.ts +13 -13
  103. package/es/utils/props/common.d.ts +7 -1
  104. package/es/utils/props/common.js +17 -0
  105. package/es/utils/props/editTable.d.ts +3 -3
  106. package/es/utils/props/editTable.js +21 -14
  107. package/es/utils/props/form.d.ts +36 -0
  108. package/es/utils/props/form.js +33 -14
  109. package/es/utils/props/listTpl.d.ts +29 -29
  110. package/es/utils/props/microModal.d.ts +7 -7
  111. package/es/utils/props/microModal.js +0 -1
  112. package/es/utils/props/microSwitch.d.ts +1 -1
  113. package/es/utils/props/microSwitch.js +4 -3
  114. package/es/utils/props/modalSelect.d.ts +6 -6
  115. package/es/utils/props/operationRecords.d.ts +2 -2
  116. package/es/utils/props/operationRecords.js +4 -4
  117. package/es/utils/props/preview.d.ts +2 -2
  118. package/es/utils/props/preview.js +4 -4
  119. package/es/utils/props/tpl.d.ts +173 -162
  120. package/es/utils/props/warehouseAndFactory.d.ts +1 -1
  121. package/es/utils/rcProRequest.d.ts +3 -3
  122. package/es/utils/rcProRequest.js +3 -3
  123. package/es/variables.scss +3 -3
  124. package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
  125. package/lib/components/z-Ellipsis/ellipsis.js +3 -4
  126. package/lib/components/z-Ellipsis/index.d.ts +3 -3
  127. package/lib/components/z-Ellipsis/index.js +1 -2
  128. package/lib/components/z-agg-block/index.d.ts +3 -3
  129. package/lib/components/z-agg-block/index.js +1 -2
  130. package/lib/components/z-agg-block/index.less +134 -134
  131. package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
  132. package/lib/components/z-agg-block/z-agg-block.js +2 -3
  133. package/lib/components/z-auth/auth.d.ts +9 -9
  134. package/lib/components/z-auth/auth.js +1 -2
  135. package/lib/components/z-auth/index.d.ts +3 -3
  136. package/lib/components/z-auth/index.js +1 -2
  137. package/lib/components/z-box/box.d.ts +20 -20
  138. package/lib/components/z-box/box.js +1 -2
  139. package/lib/components/z-box/index.d.ts +3 -3
  140. package/lib/components/z-box/index.js +1 -2
  141. package/lib/components/z-box/index.less +4 -4
  142. package/lib/components/z-button/index.d.ts +3 -3
  143. package/lib/components/z-button/index.js +1 -2
  144. package/lib/components/z-button/z-button.d.ts +4 -4
  145. package/lib/components/z-button/z-button.js +4 -4
  146. package/lib/components/z-config-provider/configProvider.d.ts +4 -4
  147. package/lib/components/z-config-provider/configProvider.js +47 -7
  148. package/lib/components/z-config-provider/index.d.ts +3 -3
  149. package/lib/components/z-config-provider/index.js +1 -2
  150. package/lib/components/z-data-table/data-table.d.ts +9 -0
  151. package/lib/components/z-data-table/data-table.js +27 -0
  152. package/lib/components/z-data-table/index.d.ts +3 -0
  153. package/lib/components/z-data-table/index.js +7 -0
  154. package/lib/components/z-div/div.d.ts +6 -6
  155. package/lib/components/z-div/div.js +1 -2
  156. package/lib/components/z-div/index.d.ts +2 -2
  157. package/lib/components/z-div/index.js +1 -2
  158. package/lib/components/z-editTable/editTable.d.ts +11 -11
  159. package/lib/components/z-editTable/editTable.js +7 -9
  160. package/lib/components/z-editTable/index.d.ts +2 -2
  161. package/lib/components/z-editTable/index.js +1 -2
  162. package/lib/components/z-form/index.d.ts +3 -3
  163. package/lib/components/z-form/index.js +1 -2
  164. package/lib/components/z-form/z-form.d.ts +10 -10
  165. package/lib/components/z-form/z-form.js +5 -6
  166. package/lib/components/z-list/index.d.ts +3 -3
  167. package/lib/components/z-list/index.js +1 -2
  168. package/lib/components/z-list/list.d.ts +17 -17
  169. package/lib/components/z-list/list.js +7 -8
  170. package/lib/components/z-operation-records/index.d.ts +3 -3
  171. package/lib/components/z-operation-records/index.js +1 -2
  172. package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
  173. package/lib/components/z-operation-records/operationRecords.js +3 -4
  174. package/lib/components/z-pointer-block/index.d.ts +3 -3
  175. package/lib/components/z-pointer-block/index.js +1 -2
  176. package/lib/components/z-pointer-block/index.less +15 -15
  177. package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  178. package/lib/components/z-pointer-block/z-pointer-block.js +1 -2
  179. package/lib/components/z-preview/index.d.ts +3 -3
  180. package/lib/components/z-preview/index.js +1 -2
  181. package/lib/components/z-preview/preview.d.ts +4 -4
  182. package/lib/components/z-preview/preview.js +3 -4
  183. package/lib/components/z-pro-provider/index.d.ts +3 -3
  184. package/lib/components/z-pro-provider/index.js +1 -2
  185. package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  186. package/lib/components/z-pro-provider/z-pro-provider.js +3 -4
  187. package/lib/components/z-ranking-list/index.d.ts +2 -2
  188. package/lib/components/z-ranking-list/index.js +1 -2
  189. package/lib/components/z-ranking-list/index.less +49 -49
  190. package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  191. package/lib/components/z-ranking-list/z-ranking-list.js +5 -7
  192. package/lib/components/z-simple-bar/index.d.ts +3 -3
  193. package/lib/components/z-simple-bar/index.js +1 -2
  194. package/lib/components/z-simple-bar/index.less +9 -9
  195. package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  196. package/lib/components/z-simple-bar/z-simple-bar.js +1 -2
  197. package/lib/components/z-singleFactory/index.d.ts +2 -2
  198. package/lib/components/z-singleFactory/index.js +1 -2
  199. package/lib/components/z-singleFactory/zSingerFactory.d.ts +2 -3
  200. package/lib/components/z-singleFactory/zSingerFactory.js +3 -4
  201. package/lib/components/z-slick/index.d.ts +3 -0
  202. package/lib/components/z-slick/index.js +7 -0
  203. package/lib/components/z-slick/slick.d.ts +47 -0
  204. package/lib/components/z-slick/slick.js +39 -0
  205. package/lib/components/z-statistic/index.d.ts +3 -3
  206. package/lib/components/z-statistic/index.js +1 -2
  207. package/lib/components/z-statistic/index.less +22 -22
  208. package/lib/components/z-statistic/z-statistic.d.ts +13 -13
  209. package/lib/components/z-statistic/z-statistic.js +1 -2
  210. package/lib/components/z-table/index.d.ts +3 -3
  211. package/lib/components/z-table/index.js +1 -2
  212. package/lib/components/z-table/table.d.ts +8 -8
  213. package/lib/components/z-table/table.js +5 -6
  214. package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
  215. package/lib/components/z-templates-data-common/components/chart-renderer/index.js +36 -17
  216. package/lib/components/z-templates-data-common/data-common.d.ts +20 -105
  217. package/lib/components/z-templates-data-common/data-common.helper.d.ts +2 -61
  218. package/lib/components/z-templates-data-common/data-common.helper.js +3 -351
  219. package/lib/components/z-templates-data-common/data-common.js +85 -66
  220. package/lib/components/z-templates-data-common/index.d.ts +3 -3
  221. package/lib/components/z-templates-data-common/index.js +1 -2
  222. package/lib/components/z-tpl/index.d.ts +3 -3
  223. package/lib/components/z-tpl/index.js +1 -2
  224. package/lib/components/z-tpl/tpl.d.ts +23 -23
  225. package/lib/components/z-tpl/tpl.js +7 -8
  226. package/lib/components/z-warehouse/index.d.ts +2 -2
  227. package/lib/components/z-warehouse/index.js +1 -2
  228. package/lib/components/z-warehouse/zWarehouse.d.ts +2 -3
  229. package/lib/components/z-warehouse/zWarehouse.js +3 -4
  230. package/lib/components/z-watermark/index.d.ts +3 -0
  231. package/lib/components/z-watermark/index.js +7 -0
  232. package/lib/components/z-watermark/zWatermark.d.ts +3 -0
  233. package/lib/components/z-watermark/zWatermark.js +8 -0
  234. package/lib/index.d.ts +44 -38
  235. package/lib/index.js +8 -2
  236. package/lib/index.scss +1 -1
  237. package/lib/style.js +1 -3
  238. package/lib/utils/hoc.d.ts +6 -6
  239. package/lib/utils/hoc.js +3 -3
  240. package/lib/utils/index.d.ts +13 -13
  241. package/lib/utils/index.js +7 -4
  242. package/lib/utils/props/button.d.ts +13 -13
  243. package/lib/utils/props/button.js +2 -3
  244. package/lib/utils/props/common.d.ts +7 -1
  245. package/lib/utils/props/common.js +19 -3
  246. package/lib/utils/props/editTable.d.ts +3 -3
  247. package/lib/utils/props/editTable.js +23 -17
  248. package/lib/utils/props/form.d.ts +36 -0
  249. package/lib/utils/props/form.js +35 -17
  250. package/lib/utils/props/listTpl.d.ts +29 -29
  251. package/lib/utils/props/listTpl.js +2 -3
  252. package/lib/utils/props/microModal.d.ts +7 -7
  253. package/lib/utils/props/microModal.js +1 -3
  254. package/lib/utils/props/microSwitch.d.ts +1 -1
  255. package/lib/utils/props/microSwitch.js +5 -4
  256. package/lib/utils/props/modalSelect.d.ts +6 -6
  257. package/lib/utils/props/modalSelect.js +2 -4
  258. package/lib/utils/props/operationRecords.d.ts +2 -2
  259. package/lib/utils/props/operationRecords.js +6 -7
  260. package/lib/utils/props/preview.d.ts +2 -2
  261. package/lib/utils/props/preview.js +6 -7
  262. package/lib/utils/props/tpl.d.ts +173 -162
  263. package/lib/utils/props/tpl.js +3 -5
  264. package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
  265. package/lib/utils/props/warehouseAndFactory.js +2 -3
  266. package/lib/utils/rcProRequest.d.ts +3 -3
  267. package/lib/utils/rcProRequest.js +3 -4
  268. package/lib/variables.scss +3 -3
  269. package/package.json +5 -5
  270. package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
  271. package/es/components/z-templates-data-common/components/custom-renderer/index.js +0 -172
  272. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
  273. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -1
  274. package/es/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
  275. package/es/components/z-templates-data-common/components/dim-target/index.js +0 -430
  276. package/es/components/z-templates-data-common/components/dim-target/index.less +0 -49
  277. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
  278. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -26
  279. package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
  280. package/es/components/z-templates-data-common/components/link-renderer/index.js +0 -320
  281. package/es/components/z-templates-data-common/components/link-renderer/index.less +0 -33
  282. package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
  283. package/es/components/z-templates-data-common/components/table-renderer/index.js +0 -481
  284. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
  285. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -220
  286. package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
  287. package/lib/components/z-templates-data-common/components/custom-renderer/index.js +0 -178
  288. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
  289. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -3
  290. package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
  291. package/lib/components/z-templates-data-common/components/dim-target/index.js +0 -438
  292. package/lib/components/z-templates-data-common/components/dim-target/index.less +0 -49
  293. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
  294. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -30
  295. package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
  296. package/lib/components/z-templates-data-common/components/link-renderer/index.js +0 -326
  297. package/lib/components/z-templates-data-common/components/link-renderer/index.less +0 -33
  298. package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
  299. package/lib/components/z-templates-data-common/components/table-renderer/index.js +0 -487
  300. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
  301. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -229
@@ -7,7 +7,7 @@ import { processJsonOrFunctionProps } from "../../../lib";
7
7
 
8
8
  // preview 处理
9
9
  var processOperationProps = function processOperationProps(props) {
10
- var processObjectValue = function processObjectValue(obj) {
10
+ var _processObjectValue = function processObjectValue(obj) {
11
11
  var timelineProps = obj.timelineProps,
12
12
  request = obj.request,
13
13
  columns = obj.columns,
@@ -17,7 +17,7 @@ var processOperationProps = function processOperationProps(props) {
17
17
  rest = _objectWithoutPropertiesLoose(obj, _excluded);
18
18
  return _extends({}, columns !== null && columns !== void 0 && columns.length ? {
19
19
  columns: columns === null || columns === void 0 ? void 0 : columns.map(function (v) {
20
- return processObjectValue(v);
20
+ return _processObjectValue(v);
21
21
  })
22
22
  } : [], transform ? {
23
23
  transform: transform
@@ -27,10 +27,10 @@ var processOperationProps = function processOperationProps(props) {
27
27
  };
28
28
  if (Array.isArray(props)) {
29
29
  return props === null || props === void 0 ? void 0 : props.map(function (e) {
30
- return processObjectValue(e);
30
+ return _processObjectValue(e);
31
31
  });
32
32
  }
33
- return processObjectValue(props);
33
+ return _processObjectValue(props);
34
34
  };
35
35
  export var processOperationRecordsProps = function processOperationRecordsProps(props) {
36
36
  return processOperationProps(props);
@@ -1,2 +1,2 @@
1
- import { ProPreviewProps } from '@ztocwst/rc-pro';
2
- export declare const processPreviewProps: (props: ProPreviewProps) => any;
1
+ import { ProPreviewProps } from '@ztocwst/rc-pro';
2
+ export declare const processPreviewProps: (props: ProPreviewProps) => any;
@@ -5,7 +5,7 @@ var _excluded = ["render", "request", "columns", "transform", "valueEnum", "proL
5
5
 
6
6
  // preview 处理
7
7
  var processTplBillPreviewProps = function processTplBillPreviewProps(props) {
8
- var processObjectValue = function processObjectValue(obj) {
8
+ var _processObjectValue = function processObjectValue(obj) {
9
9
  var _proLogs$columns;
10
10
  var render = obj.render,
11
11
  request = obj.request,
@@ -20,7 +20,7 @@ var processTplBillPreviewProps = function processTplBillPreviewProps(props) {
20
20
  render: render
21
21
  } : {}, columns !== null && columns !== void 0 && columns.length ? {
22
22
  columns: columns === null || columns === void 0 ? void 0 : columns.map(function (v) {
23
- return processObjectValue(v);
23
+ return _processObjectValue(v);
24
24
  })
25
25
  } : [], transform ? {
26
26
  transform: transform
@@ -30,10 +30,10 @@ var processTplBillPreviewProps = function processTplBillPreviewProps(props) {
30
30
  };
31
31
  if (Array.isArray(props)) {
32
32
  return props === null || props === void 0 ? void 0 : props.map(function (e) {
33
- return processObjectValue(e);
33
+ return _processObjectValue(e);
34
34
  });
35
35
  }
36
- return processObjectValue(props);
36
+ return _processObjectValue(props);
37
37
  };
38
38
  export var processPreviewProps = function processPreviewProps(props) {
39
39
  return processTplBillPreviewProps(props);
@@ -1,162 +1,173 @@
1
- import { RcPageItem, RcPageProps } from '@ztocwst/rc-pro';
2
- export declare const processTplBillProps: (props: RcPageItem['bill'], extra?: {
3
- billFormRef?: any;
4
- billFormCurrentRef?: any;
5
- }) => {
6
- previewTabs: {
7
- antdRadioGroupProps?: any;
8
- antdPageHeaderProps?: any;
9
- on: true;
10
- title?: any;
11
- };
12
- preview?: any;
13
- form?: {
14
- props: any;
15
- antdPageHeaderProps?: any;
16
- layoutProps?: any;
17
- requestConfig: {
18
- preview?: any;
19
- edit?: any;
20
- add?: any;
21
- };
22
- key?: string;
23
- width?: string | number;
24
- name?: any;
25
- layoutType?: "page" | "drawer" | "modal";
26
- onCustomBack?: () => void;
27
- onBackSuccess?: (data?: any) => void;
28
- isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
29
- submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
30
- submitterRender?: (opt: {
31
- onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
32
- }, dom: JSX.Element[]) => any;
33
- saveAndContinue?: boolean;
34
- };
35
- } | {
36
- previewTabs?: undefined;
37
- preview?: any;
38
- form?: {
39
- props: any;
40
- antdPageHeaderProps?: any;
41
- layoutProps?: any;
42
- requestConfig: {
43
- preview?: any;
44
- edit?: any;
45
- add?: any;
46
- };
47
- key?: string;
48
- width?: string | number;
49
- name?: any;
50
- layoutType?: "page" | "drawer" | "modal";
51
- onCustomBack?: () => void;
52
- onBackSuccess?: (data?: any) => void;
53
- isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
54
- submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
55
- submitterRender?: (opt: {
56
- onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
57
- }, dom: JSX.Element[]) => any;
58
- saveAndContinue?: boolean;
59
- };
60
- };
61
- export declare const processTplProps: (props: RcPageProps, extra?: {
62
- listRef?: any;
63
- tableRef?: any;
64
- listFormRef?: any;
65
- billFormRef?: any;
66
- listFormCurrentRef?: any;
67
- billFormCurrentRef?: any;
68
- }) => {
69
- page: {
70
- bill?: {
71
- previewTabs: {
72
- antdRadioGroupProps?: any;
73
- antdPageHeaderProps?: any;
74
- on: true;
75
- title?: any;
76
- };
77
- preview?: any;
78
- form?: {
79
- props: any;
80
- antdPageHeaderProps?: any;
81
- layoutProps?: any;
82
- requestConfig: {
83
- preview?: any;
84
- edit?: any;
85
- add?: any;
86
- };
87
- key?: string;
88
- width?: string | number;
89
- name?: any;
90
- layoutType?: "page" | "drawer" | "modal";
91
- onCustomBack?: () => void;
92
- onBackSuccess?: (data?: any) => void;
93
- isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
94
- submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
95
- submitterRender?: (opt: {
96
- onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
97
- }, dom: JSX.Element[]) => any;
98
- saveAndContinue?: boolean;
99
- };
100
- } | {
101
- previewTabs?: undefined;
102
- preview?: any;
103
- form?: {
104
- props: any;
105
- antdPageHeaderProps?: any;
106
- layoutProps?: any;
107
- requestConfig: {
108
- preview?: any;
109
- edit?: any;
110
- add?: any;
111
- };
112
- key?: string;
113
- width?: string | number;
114
- name?: any;
115
- layoutType?: "page" | "drawer" | "modal";
116
- onCustomBack?: () => void;
117
- onBackSuccess?: (data?: any) => void;
118
- isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
119
- submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
120
- submitterRender?: (opt: {
121
- onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
122
- }, dom: JSX.Element[]) => any;
123
- saveAndContinue?: boolean;
124
- };
125
- };
126
- list: {
127
- requestConfig: any;
128
- type?: "list";
129
- listRef: any;
130
- onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
131
- renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
132
- render?: (onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
133
- key?: string;
134
- name?: any;
135
- form: any;
136
- actions: {
137
- items: any[];
138
- type?: string;
139
- spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
140
- size?: import("antd/lib/button").ButtonSize;
141
- onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
142
- onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
143
- };
144
- grid: {
145
- config: any;
146
- ref: any;
147
- };
148
- };
149
- };
150
- key?: string;
151
- tab?: React.ReactNode;
152
- onBillSuccess?: (res: any) => void;
153
- onBillError?: (res: any) => void;
154
- onPageSuccess?: () => void;
155
- pageRef?: React.MutableRefObject<import("@ztocwst/rc-pro").RcPageRefInstance>;
156
- singleWarehouse?: boolean | ({
157
- requestConfig: Omit<import("@ztocwst/rc-pro/es/utils").RequestCommonProps, "transform" | "formCheck">;
158
- } & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
159
- singleFactory?: boolean | ({
160
- requestConfig: Omit<import("@ztocwst/rc-pro/es/utils").RequestCommonProps, "transform" | "formCheck">;
161
- } & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
162
- };
1
+ import { RcPageItem, RcPageProps } from '@ztocwst/rc-pro';
2
+ export declare const processTplBillProps: (props: RcPageItem['bill'], extra?: {
3
+ billFormRef?: any;
4
+ billFormCurrentRef?: any;
5
+ }) => {
6
+ previewTabs: {
7
+ antdRadioGroupProps?: any;
8
+ antdPageHeaderProps?: any;
9
+ on: true;
10
+ title?: any;
11
+ };
12
+ preview?: any;
13
+ form?: {
14
+ props: any;
15
+ antdPageHeaderProps?: any;
16
+ layoutProps?: any;
17
+ requestConfig: {
18
+ preview?: any;
19
+ edit?: any;
20
+ add?: any;
21
+ };
22
+ key?: string;
23
+ width?: string | number;
24
+ name?: any;
25
+ layoutType?: "page" | "drawer" | "modal";
26
+ onCustomBack?: () => void;
27
+ onBackSuccess?: (data?: any) => void;
28
+ isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
29
+ submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
30
+ submitterRender?: (opt: {
31
+ onFinish?: (values: any, options?: import("@ztocwst/rc-pro/lib/templates/basicTpl").SubmitOptions) => Promise<any>;
32
+ }, dom: JSX.Element[]) => any;
33
+ saveAndContinue?: boolean;
34
+ };
35
+ } | {
36
+ previewTabs?: undefined;
37
+ preview?: any;
38
+ form?: {
39
+ props: any;
40
+ antdPageHeaderProps?: any;
41
+ layoutProps?: any;
42
+ requestConfig: {
43
+ preview?: any;
44
+ edit?: any;
45
+ add?: any;
46
+ };
47
+ key?: string;
48
+ width?: string | number;
49
+ name?: any;
50
+ layoutType?: "page" | "drawer" | "modal";
51
+ onCustomBack?: () => void;
52
+ onBackSuccess?: (data?: any) => void;
53
+ isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
54
+ submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
55
+ submitterRender?: (opt: {
56
+ onFinish?: (values: any, options?: import("@ztocwst/rc-pro/lib/templates/basicTpl").SubmitOptions) => Promise<any>;
57
+ }, dom: JSX.Element[]) => any;
58
+ saveAndContinue?: boolean;
59
+ };
60
+ };
61
+ export declare const processTplProps: (props: RcPageProps, extra?: {
62
+ listRef?: any;
63
+ tableRef?: any;
64
+ listFormRef?: any;
65
+ billFormRef?: any;
66
+ listFormCurrentRef?: any;
67
+ billFormCurrentRef?: any;
68
+ }) => {
69
+ page: {
70
+ bill?: {
71
+ previewTabs: {
72
+ antdRadioGroupProps?: any;
73
+ antdPageHeaderProps?: any;
74
+ on: true;
75
+ title?: any;
76
+ };
77
+ preview?: any;
78
+ form?: {
79
+ props: any;
80
+ antdPageHeaderProps?: any;
81
+ layoutProps?: any;
82
+ requestConfig: {
83
+ preview?: any;
84
+ edit?: any;
85
+ add?: any;
86
+ };
87
+ key?: string;
88
+ width?: string | number;
89
+ name?: any;
90
+ layoutType?: "page" | "drawer" | "modal";
91
+ onCustomBack?: () => void;
92
+ onBackSuccess?: (data?: any) => void;
93
+ isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
94
+ submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
95
+ submitterRender?: (opt: {
96
+ onFinish?: (values: any, options?: import("@ztocwst/rc-pro/lib/templates/basicTpl").SubmitOptions) => Promise<any>;
97
+ }, dom: JSX.Element[]) => any;
98
+ saveAndContinue?: boolean;
99
+ };
100
+ } | {
101
+ previewTabs?: undefined;
102
+ preview?: any;
103
+ form?: {
104
+ props: any;
105
+ antdPageHeaderProps?: any;
106
+ layoutProps?: any;
107
+ requestConfig: {
108
+ preview?: any;
109
+ edit?: any;
110
+ add?: any;
111
+ };
112
+ key?: string;
113
+ width?: string | number;
114
+ name?: any;
115
+ layoutType?: "page" | "drawer" | "modal";
116
+ onCustomBack?: () => void;
117
+ onBackSuccess?: (data?: any) => void;
118
+ isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
119
+ submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
120
+ submitterRender?: (opt: {
121
+ onFinish?: (values: any, options?: import("@ztocwst/rc-pro/lib/templates/basicTpl").SubmitOptions) => Promise<any>;
122
+ }, dom: JSX.Element[]) => any;
123
+ saveAndContinue?: boolean;
124
+ };
125
+ };
126
+ list: {
127
+ requestConfig: any;
128
+ type?: "list";
129
+ listRef: any;
130
+ onListBtnChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
131
+ renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
132
+ render?: (onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
133
+ key?: string;
134
+ name?: any;
135
+ form: any;
136
+ actions: {
137
+ items: any[];
138
+ type?: string;
139
+ spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
140
+ size?: import("antd/lib/button").ButtonSize;
141
+ onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
142
+ onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
143
+ };
144
+ grid: {
145
+ config: any;
146
+ ref: any;
147
+ };
148
+ };
149
+ };
150
+ key?: string;
151
+ className?: string;
152
+ style?: React.CSSProperties;
153
+ tab?: React.ReactNode;
154
+ onBillSuccess?: (res: any) => void;
155
+ onBillError?: (res: any) => void;
156
+ onPageSuccess?: () => void;
157
+ pageRef?: React.MutableRefObject<import("@ztocwst/rc-pro").RcPageRefInstance>;
158
+ singleWarehouse?: boolean | ({
159
+ requestConfig: Omit<import("@ztocwst/rc-pro/lib/utils").RequestCommonProps, "transform" | "formCheck">;
160
+ } & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
161
+ singleFactory?: boolean | ({
162
+ requestConfig: Omit<import("@ztocwst/rc-pro/lib/utils").RequestCommonProps, "transform" | "formCheck">;
163
+ } & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
164
+ extra?: {
165
+ content: any;
166
+ style?: React.CSSProperties;
167
+ };
168
+ queryCriteria?: boolean | (Omit<import("@ztocwst/rc-pro").QueryCriteriaProps, "getValues" | "setValues" | "getColumns"> & {
169
+ getColumns?: (columns: import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "trim" | "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup" | "scanInput" | "timeRangePicker" | "quickTimerRange" | "rangerPickerLimit" | "linkageGroup">[], ref: React.MutableRefObject<import("@ztocwst/rc-pro").ProFormRenderInstance>) => Promise<import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "trim" | "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup" | "scanInput" | "timeRangePicker" | "quickTimerRange" | "rangerPickerLimit" | "linkageGroup">[]>;
170
+ getValues?: (values: any, form: React.RefObject<import("@ant-design/pro-form/lib/BaseForm/BaseForm").ProFormInstance<any>>) => Promise<any>;
171
+ setValues?: (values: any, form: React.RefObject<import("@ant-design/pro-form/lib/BaseForm/BaseForm").ProFormInstance<any>>, currentRef: React.MutableRefObject<import("@ztocwst/rc-pro").ProFormRenderInstance>, resetFields: any) => void;
172
+ });
173
+ };
@@ -1 +1 @@
1
- export declare const processWarehouseAndFactoryProps: (_props: any) => any;
1
+ export declare const processWarehouseAndFactoryProps: (_props: any) => any;
@@ -1,3 +1,3 @@
1
- import { RcConfigConsumerProps } from '@ztocwst/rc-pro';
2
- declare const _default: (rcProContext: RcConfigConsumerProps, url: string, requestParams: any) => Promise<any>;
3
- export default _default;
1
+ import { RcConfigConsumerProps } from '@ztocwst/rc-pro';
2
+ declare const _default: (rcProContext: RcConfigConsumerProps, url: string, requestParams: any) => Promise<any>;
3
+ export default _default;
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
- export default /*#__PURE__*/(function () {
5
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, url, requestParams) {
4
+ export default (/*#__PURE__*/function () {
5
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, url, requestParams) {
6
6
  var _ref2, materialsRequest, headers;
7
7
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
@@ -27,4 +27,4 @@ export default /*#__PURE__*/(function () {
27
27
  return function (_x, _x2, _x3) {
28
28
  return _ref.apply(this, arguments);
29
29
  };
30
- })();
30
+ }());
package/es/variables.scss CHANGED
@@ -1,3 +1,3 @@
1
- // @import '~@alifd/next/variables.scss';
2
-
3
- // $biz-css-prefix: '.bizpack';
1
+ // @import '~@alifd/next/variables.scss';
2
+
3
+ // $biz-css-prefix: '.bizpack';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
- declare const ZEllipsis: React.FC<ProEllipsisProps>;
4
- export default ZEllipsis;
1
+ import * as React from 'react';
2
+ import type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
+ declare const ZEllipsis: React.FC<ProEllipsisProps>;
4
+ export default ZEllipsis;
@@ -4,10 +4,9 @@ exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var React = _interopRequireWildcard(require("react"));
6
6
  var _rcPro = require("@ztocwst/rc-pro");
7
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
8
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
8
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
9
9
  var ZEllipsis = function ZEllipsis(props) {
10
10
  return /*#__PURE__*/React.createElement(_rcPro.ProEllipsis, props);
11
11
  };
12
- var _default = ZEllipsis;
13
- exports["default"] = _default;
12
+ var _default = exports["default"] = ZEllipsis;
@@ -1,3 +1,3 @@
1
- import ZEllipsis from './ellipsis';
2
- export type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
- export default ZEllipsis;
1
+ import ZEllipsis from './ellipsis';
2
+ export type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
+ export default ZEllipsis;
@@ -4,5 +4,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _ellipsis = _interopRequireDefault(require("./ellipsis"));
7
- var _default = _ellipsis["default"];
8
- exports["default"] = _default;
7
+ var _default = exports["default"] = _ellipsis["default"];
@@ -1,3 +1,3 @@
1
- import ZAggBlock from './z-agg-block';
2
- export type { TypeAggBlockProps } from './z-agg-block';
3
- export default ZAggBlock;
1
+ import ZAggBlock from './z-agg-block';
2
+ export type { TypeAggBlockProps } from './z-agg-block';
3
+ export default ZAggBlock;
@@ -4,5 +4,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _zAggBlock = _interopRequireDefault(require("./z-agg-block"));
7
- var _default = _zAggBlock["default"];
8
- exports["default"] = _default;
7
+ var _default = exports["default"] = _zAggBlock["default"];