@ztocwst/rc-pro-materials 0.2.2 → 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
@@ -1,336 +1,2 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _regeneratorRuntime from "@babel/runtime/regenerator";
4
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
- import rcProRequest from "../../utils/rcProRequest";
8
-
9
- /** table config */
10
- export var tableConfigDefault = {
11
- manual: true,
12
- toolBars: false,
13
- hideDefRowSelection: true,
14
- columns: []
15
- };
16
-
17
- /** 字符串拼接分割符 */
18
- export var separator = '***';
19
-
20
- /** 时间单位 */
21
- export var timeUnit = 60 * 1000;
22
-
23
- /** 介于 前闭后开 */
24
- export var BETWEEN = '<=,<';
25
- /** 数据类型 */
26
-
27
- /**
28
- * 计算宽
29
- * @param length
30
- * @param width
31
- */
32
- export var computeWidth = function computeWidth(length, width) {
33
- if (width === void 0) {
34
- width = 40;
35
- }
36
- return length * width;
37
- };
38
-
39
- /**
40
- * 获取最大宽
41
- * @param strArr
42
- */
43
- export var getMaxWidth = function getMaxWidth(strArr) {
44
- if (!(strArr !== null && strArr !== void 0 && strArr.length)) return 0;
45
- var arr = strArr.map(function (s) {
46
- var _s$toString;
47
- return s === null || s === void 0 ? void 0 : (_s$toString = s.toString()) === null || _s$toString === void 0 ? void 0 : _s$toString.length;
48
- });
49
- var length = Math.max.apply(null, arr);
50
- return computeWidth(length, 14);
51
- };
52
-
53
- /**
54
- * 处理 QueryParams 去除空字符串
55
- */
56
- export var handleQueryParams = function handleQueryParams(query) {
57
- var queryParams = _extends({}, query);
58
- Object.keys(query).forEach(function (k) {
59
- if (query[k] === '') {
60
- queryParams[k] = undefined;
61
- }
62
- });
63
- return queryParams;
64
- };
65
-
66
- /**
67
- * 处理数据千分位
68
- */
69
- export var handleThousand = function handleThousand(value) {
70
- if (!Number.isNaN(value) && value) {
71
- if (String(value).indexOf('.') !== -1) {
72
- var _String$split = String(value).split('.'),
73
- start = _String$split[0],
74
- end = _String$split[1];
75
- var begin = start.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
76
- return [begin, end].join('.');
77
- } else {
78
- return value.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
79
- }
80
- } else {
81
- return value;
82
- }
83
- };
84
-
85
- /**
86
- * 保留几位小数点
87
- */
88
- export var handleDecimal = function handleDecimal(value, decimal) {
89
- if (decimal === void 0) {
90
- decimal = 2;
91
- }
92
- if (value === null || value === undefined) return;
93
- return Number(value).toFixed(decimal);
94
- };
95
-
96
- /**
97
- * 百分比转化
98
- */
99
- export var handlePercent = function handlePercent(value, decimal, unit) {
100
- if (decimal === void 0) {
101
- decimal = 2;
102
- }
103
- if (unit === void 0) {
104
- unit = 100;
105
- }
106
- if (value === null || value === undefined) return;
107
- return (Number(value) * unit).toFixed(decimal) + "%";
108
- };
109
-
110
- /**
111
- * link外链处理
112
- */
113
- export var handleLink = function handleLink(value, onLink) {
114
- if (value === null || value === undefined) return;
115
- return /*#__PURE__*/React.createElement("a", {
116
- href: "javascript:void(0);",
117
- onClick: onLink
118
- }, value);
119
- };
120
-
121
- /**
122
- * 条件格式设置
123
- * @param value 处理前的值
124
- * @param handledValue 被处理后的值 可能会是link标签
125
- */
126
- export var handleCondition = function handleCondition(value, handledValue, conditions) {
127
- if (value === null || value === undefined) return;
128
- var val = handledValue;
129
- for (var _iterator = _createForOfIteratorHelperLoose(conditions), _step; !(_step = _iterator()).done;) {
130
- var cur = _step.value;
131
- var condition = cur === null || cur === void 0 ? void 0 : cur.condition;
132
- if ((condition === null || condition === void 0 ? void 0 : condition.type) === BETWEEN) {
133
- var _condition$type;
134
- var _condition$type$split = condition === null || condition === void 0 ? void 0 : (_condition$type = condition.type) === null || _condition$type === void 0 ? void 0 : _condition$type.split(','),
135
- start = _condition$type$split[0],
136
- end = _condition$type$split[1];
137
- if (eval("" + (condition === null || condition === void 0 ? void 0 : condition.start) + start + value) && eval("" + value + end + (condition === null || condition === void 0 ? void 0 : condition.end))) {
138
- var style = {
139
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
140
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
141
- };
142
- val = /*#__PURE__*/React.createElement("div", {
143
- style: style
144
- }, handledValue);
145
- }
146
- } else if (eval("" + value + (condition === null || condition === void 0 ? void 0 : condition.type) + (condition === null || condition === void 0 ? void 0 : condition.value))) {
147
- var _style = {
148
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
149
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
150
- };
151
- val = /*#__PURE__*/React.createElement("div", {
152
- style: _style
153
- }, handledValue);
154
- }
155
- }
156
- return val;
157
- };
158
-
159
- // mock
160
- var token = 'scm:tenant:token:2:104:177217352666D386AA01E5AF6293727D';
161
-
162
- /** 获取维度指标 */
163
- export var getDimTarget = /*#__PURE__*/function () {
164
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params) {
165
- var _data_env_mapping$env;
166
- var _ref2, materialsRequest, env, data_env_mapping, __env, res, _res;
167
- return _regeneratorRuntime.wrap(function _callee$(_context) {
168
- while (1) switch (_context.prev = _context.next) {
169
- case 0:
170
- _ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env, data_env_mapping = _ref2.data_env_mapping;
171
- __env = (_data_env_mapping$env = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env !== void 0 ? _data_env_mapping$env : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
172
- if (!materialsRequest) {
173
- _context.next = 7;
174
- break;
175
- }
176
- _context.next = 5;
177
- return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
178
- method: 'POST',
179
- data: {
180
- bigDataBody: _extends({}, __env ? {
181
- env: __env
182
- } : {}, params)
183
- }
184
- });
185
- case 5:
186
- res = _context.sent;
187
- return _context.abrupt("return", res);
188
- case 7:
189
- _context.prev = 7;
190
- _context.next = 10;
191
- return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
192
- method: 'POST',
193
- body: JSON.stringify({
194
- bigDataBody: _extends({
195
- env: 'dev'
196
- }, params)
197
- }),
198
- headers: {
199
- 'Content-Type': 'application/json',
200
- token: token
201
- }
202
- });
203
- case 10:
204
- _res = _context.sent;
205
- _context.next = 13;
206
- return _res.json();
207
- case 13:
208
- return _context.abrupt("return", _context.sent);
209
- case 16:
210
- _context.prev = 16;
211
- _context.t0 = _context["catch"](7);
212
- return _context.abrupt("return", {});
213
- case 19:
214
- case "end":
215
- return _context.stop();
216
- }
217
- }, _callee, null, [[7, 16]]);
218
- }));
219
- return function getDimTarget(_x, _x2) {
220
- return _ref.apply(this, arguments);
221
- };
222
- }();
223
-
224
- /** 获取报表数据 */
225
- export var getReportData = /*#__PURE__*/function () {
226
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(rcProContext, params) {
227
- var _data_env_mapping$env2;
228
- var _ref4, materialsRequest, env, data_env_mapping, __env, res, _res2;
229
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
230
- while (1) switch (_context2.prev = _context2.next) {
231
- case 0:
232
- _ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env, data_env_mapping = _ref4.data_env_mapping;
233
- __env = (_data_env_mapping$env2 = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env2 !== void 0 ? _data_env_mapping$env2 : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
234
- if (!materialsRequest) {
235
- _context2.next = 7;
236
- break;
237
- }
238
- _context2.next = 5;
239
- return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/" + params.dataSetName, {
240
- method: 'POST',
241
- data: {
242
- bigDataBody: _extends({}, __env ? {
243
- env: __env
244
- } : {}, params)
245
- }
246
- });
247
- case 5:
248
- res = _context2.sent;
249
- return _context2.abrupt("return", res);
250
- case 7:
251
- _context2.prev = 7;
252
- _context2.next = 10;
253
- return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/" + params.dataSetName, {
254
- method: 'POST',
255
- body: JSON.stringify({
256
- bigDataBody: _extends({
257
- env: 'dev'
258
- }, params)
259
- }),
260
- headers: {
261
- 'Content-Type': 'application/json',
262
- token: token
263
- }
264
- });
265
- case 10:
266
- _res2 = _context2.sent;
267
- _context2.next = 13;
268
- return _res2.json();
269
- case 13:
270
- return _context2.abrupt("return", _context2.sent);
271
- case 16:
272
- _context2.prev = 16;
273
- _context2.t0 = _context2["catch"](7);
274
- return _context2.abrupt("return", {});
275
- case 19:
276
- case "end":
277
- return _context2.stop();
278
- }
279
- }, _callee2, null, [[7, 16]]);
280
- }));
281
- return function getReportData(_x3, _x4) {
282
- return _ref3.apply(this, arguments);
283
- };
284
- }();
285
-
286
- /** 记住勾选 */
287
- export var saveDimTarget = /*#__PURE__*/function () {
288
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(rcProContext, params) {
289
- var _ref6, materialsRequest, res, _res3;
290
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
291
- while (1) switch (_context3.prev = _context3.next) {
292
- case 0:
293
- _ref6 = rcProContext || {}, materialsRequest = _ref6.materialsRequest; // 供应链里由子应用透传
294
- if (!materialsRequest) {
295
- _context3.next = 6;
296
- break;
297
- }
298
- _context3.next = 4;
299
- return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/save", {
300
- method: 'POST',
301
- data: params
302
- });
303
- case 4:
304
- res = _context3.sent;
305
- return _context3.abrupt("return", res);
306
- case 6:
307
- _context3.prev = 6;
308
- _context3.next = 9;
309
- return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/save", {
310
- method: 'POST',
311
- body: JSON.stringify(_extends({}, params)),
312
- headers: {
313
- 'Content-Type': 'application/json',
314
- token: token
315
- }
316
- });
317
- case 9:
318
- _res3 = _context3.sent;
319
- _context3.next = 12;
320
- return _res3.json();
321
- case 12:
322
- return _context3.abrupt("return", _context3.sent);
323
- case 15:
324
- _context3.prev = 15;
325
- _context3.t0 = _context3["catch"](6);
326
- return _context3.abrupt("return", {});
327
- case 18:
328
- case "end":
329
- return _context3.stop();
330
- }
331
- }, _callee3, null, [[6, 15]]);
332
- }));
333
- return function saveDimTarget(_x5, _x6) {
334
- return _ref5.apply(this, arguments);
335
- };
336
- }();
1
+ /** 字符串分割符 */
2
+ export var separator = "***";
@@ -5,17 +5,13 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import React, { useRef, useImperativeHandle } from 'react';
7
7
  import { ProFormRender } from '@ztocwst/rc-pro';
8
- import ChartRenderer from "./components/chart-renderer";
9
8
  import { processFormProps } from "../../utils";
10
-
11
- /** 指标配置 */
12
-
13
- /** 表格相关配置 */
14
-
9
+ import ChartRenderer from "./components/chart-renderer";
15
10
  var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
11
  var querySetting = props.querySetting,
12
+ tabsSetting = props.tabsSetting,
13
+ chartSetting = props.chartSetting,
17
14
  _unsafe_MixedSetter_chartSetting_select = props._unsafe_MixedSetter_chartSetting_select;
18
- var chartSetting = props.chartSetting;
19
15
  var formRef = useRef();
20
16
  var chartRenderRef = useRef();
21
17
  // todo 不知道meta里是哪里配置有问题,出现_unsafe_MixedSetter...
@@ -29,103 +25,125 @@ var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
29
25
  var onFinish = function onFinish(values) {
30
26
  chartRenderRef.current.queryChart(values);
31
27
  };
32
- var onConfirm = /*#__PURE__*/function () {
33
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
34
- var _yield$formRef$curren, _formRef$current, _formRef$current$vali, values;
28
+ var onQueryValues = /*#__PURE__*/function () {
29
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
30
+ var _formRef$current$vali, _formRef$current, _formRef$current$vali2;
35
31
  return _regeneratorRuntime.wrap(function _callee$(_context) {
36
32
  while (1) switch (_context.prev = _context.next) {
37
33
  case 0:
38
- _context.prev = 0;
39
- _context.next = 3;
40
- return (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : (_formRef$current$vali = _formRef$current.validateFieldsReturnFormatValue) === null || _formRef$current$vali === void 0 ? void 0 : _formRef$current$vali.call(_formRef$current);
34
+ return _context.abrupt("return", (_formRef$current$vali = (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : (_formRef$current$vali2 = _formRef$current.validateFields) === null || _formRef$current$vali2 === void 0 ? void 0 : _formRef$current$vali2.call(_formRef$current)) !== null && _formRef$current$vali !== void 0 ? _formRef$current$vali : {});
35
+ case 1:
36
+ case "end":
37
+ return _context.stop();
38
+ }
39
+ }, _callee);
40
+ }));
41
+ return function onQueryValues() {
42
+ return _ref.apply(this, arguments);
43
+ };
44
+ }();
45
+ var onQueryFormatValues = /*#__PURE__*/function () {
46
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
47
+ var _formRef$current$vali3, _formRef$current2, _formRef$current2$val;
48
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
49
+ while (1) switch (_context2.prev = _context2.next) {
50
+ case 0:
51
+ return _context2.abrupt("return", (_formRef$current$vali3 = (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : (_formRef$current2$val = _formRef$current2.validateFieldsReturnFormatValue) === null || _formRef$current2$val === void 0 ? void 0 : _formRef$current2$val.call(_formRef$current2)) !== null && _formRef$current$vali3 !== void 0 ? _formRef$current$vali3 : {});
52
+ case 1:
53
+ case "end":
54
+ return _context2.stop();
55
+ }
56
+ }, _callee2);
57
+ }));
58
+ return function onQueryFormatValues() {
59
+ return _ref2.apply(this, arguments);
60
+ };
61
+ }();
62
+ var getCurrentKey = function getCurrentKey() {
63
+ var _chartRenderRef$curre, _chartRenderRef$curre2;
64
+ return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.getCurrentKey) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre);
65
+ };
66
+ var onConfirm = /*#__PURE__*/function () {
67
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
68
+ var values;
69
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
70
+ while (1) switch (_context3.prev = _context3.next) {
71
+ case 0:
72
+ _context3.prev = 0;
73
+ _context3.next = 3;
74
+ return onQueryFormatValues();
41
75
  case 3:
42
- _context.t1 = _yield$formRef$curren = _context.sent;
43
- _context.t0 = _context.t1 !== null;
44
- if (!_context.t0) {
45
- _context.next = 7;
46
- break;
47
- }
48
- _context.t0 = _yield$formRef$curren !== void 0;
49
- case 7:
50
- if (!_context.t0) {
51
- _context.next = 11;
52
- break;
53
- }
54
- _context.t2 = _yield$formRef$curren;
55
- _context.next = 12;
56
- break;
57
- case 11:
58
- _context.t2 = {};
59
- case 12:
60
- values = _context.t2;
76
+ values = _context3.sent;
61
77
  chartRenderRef.current.queryChart(values);
62
- _context.next = 19;
78
+ _context3.next = 10;
63
79
  break;
64
- case 16:
65
- _context.prev = 16;
66
- _context.t3 = _context["catch"](0);
67
- console.error(_context.t3);
68
- case 19:
80
+ case 7:
81
+ _context3.prev = 7;
82
+ _context3.t0 = _context3["catch"](0);
83
+ console.error(_context3.t0);
84
+ case 10:
69
85
  case "end":
70
- return _context.stop();
86
+ return _context3.stop();
71
87
  }
72
- }, _callee, null, [[0, 16]]);
88
+ }, _callee3, null, [[0, 7]]);
73
89
  }));
74
90
  return function onConfirm() {
75
- return _ref.apply(this, arguments);
91
+ return _ref3.apply(this, arguments);
76
92
  };
77
93
  }();
78
94
  var onLink = function onLink(values) {
79
- var _chartRenderRef$curre, _chartRenderRef$curre2;
80
- return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.onLink) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre, values);
95
+ var _chartRenderRef$curre3, _chartRenderRef$curre4;
96
+ return (_chartRenderRef$curre3 = chartRenderRef.current) === null || _chartRenderRef$curre3 === void 0 ? void 0 : (_chartRenderRef$curre4 = _chartRenderRef$curre3.onLink) === null || _chartRenderRef$curre4 === void 0 ? void 0 : _chartRenderRef$curre4.call(_chartRenderRef$curre3, values);
81
97
  };
82
98
  useImperativeHandle(ref, function () {
83
99
  return {
84
- onLink: onLink
100
+ formRef: formRef,
101
+ onLink: onLink,
102
+ onQueryValues: onQueryValues,
103
+ onQueryFormatValues: onQueryFormatValues,
104
+ getCurrentKey: getCurrentKey
85
105
  };
86
106
  });
87
107
  var formProps = processFormProps(querySetting);
88
- console.log("formProps", formProps);
89
108
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ProFormRender, _extends({}, formProps, {
90
109
  formRef: formRef,
91
- onValuesChange: function onValuesChange(changeValues) {},
92
- onFinish: /*#__PURE__*/function () {
93
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(formatData) {
110
+ onFinish: (/*#__PURE__*/function () {
111
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(formatData) {
94
112
  var _formProps$onFinish;
95
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
96
- while (1) switch (_context2.prev = _context2.next) {
113
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
114
+ while (1) switch (_context4.prev = _context4.next) {
97
115
  case 0:
98
- _context2.prev = 0;
99
- _context2.next = 3;
116
+ _context4.prev = 0;
117
+ _context4.next = 3;
100
118
  return (_formProps$onFinish = formProps.onFinish) === null || _formProps$onFinish === void 0 ? void 0 : _formProps$onFinish.call(formProps, formatData);
101
119
  case 3:
102
- _context2.next = 5;
120
+ _context4.next = 5;
103
121
  return onFinish === null || onFinish === void 0 ? void 0 : onFinish(formatData);
104
122
  case 5:
105
- _context2.next = 10;
123
+ _context4.next = 10;
106
124
  break;
107
125
  case 7:
108
- _context2.prev = 7;
109
- _context2.t0 = _context2["catch"](0);
110
- _message.error(_context2.t0);
126
+ _context4.prev = 7;
127
+ _context4.t0 = _context4["catch"](0);
128
+ _message.error(_context4.t0);
111
129
  case 10:
112
130
  case "end":
113
- return _context2.stop();
131
+ return _context4.stop();
114
132
  }
115
- }, _callee2, null, [[0, 7]]);
133
+ }, _callee4, null, [[0, 7]]);
116
134
  }));
117
135
  return function (_x) {
118
- return _ref2.apply(this, arguments);
136
+ return _ref4.apply(this, arguments);
119
137
  };
120
- }()
138
+ }())
121
139
  })), /*#__PURE__*/React.createElement(ChartRenderer, {
122
140
  chartSetting: chartSetting,
141
+ tabsSetting: tabsSetting,
123
142
  chartRenderRef: chartRenderRef,
124
143
  onConfirm: onConfirm
125
144
  }));
126
145
  });
127
146
  var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
128
- _inheritsLoose(ZTemplatesDataCommonContainer, _React$Component);
129
147
  function ZTemplatesDataCommonContainer(props) {
130
148
  var _this;
131
149
  _this = _React$Component.call(this, props) || this;
@@ -133,6 +151,7 @@ var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
133
151
  _this.chartRef = /*#__PURE__*/React.createRef();
134
152
  return _this;
135
153
  }
154
+ _inheritsLoose(ZTemplatesDataCommonContainer, _React$Component);
136
155
  var _proto = ZTemplatesDataCommonContainer.prototype;
137
156
  _proto.render = function render() {
138
157
  return /*#__PURE__*/React.createElement(ZTemplatesDataCommon, _extends({}, this.props, {
@@ -1,3 +1,3 @@
1
- import ZTemplatesDataCommon from './data-common';
2
- export type { TypeZTemplatesDataCommonProps } from './data-common';
3
- export default ZTemplatesDataCommon;
1
+ import ZTemplatesDataCommon from './data-common';
2
+ export type { TypeZTemplatesDataCommonProps } from './data-common';
3
+ export default ZTemplatesDataCommon;
@@ -1,3 +1,3 @@
1
- import ZTpl from './tpl';
2
- export type { RcBasicTpl } from '@ztocwst/rc-pro';
3
- export default ZTpl;
1
+ import ZTpl from './tpl';
2
+ export type { RcBasicTpl } from '@ztocwst/rc-pro';
3
+ export default ZTpl;
@@ -1,23 +1,23 @@
1
- /**
2
- * 模板列表
3
- */
4
- import * as React from 'react';
5
- import type { RcPageProps } from '@ztocwst/rc-pro';
6
- export default class ZTplListContainer extends React.Component<RcPageProps, any> {
7
- pageRef: any;
8
- listRef: any;
9
- tableRef: any;
10
- listFormRef: any;
11
- listFormCurrentRef: any;
12
- billFormRef: any;
13
- billFormCurrentRef: any;
14
- constructor(props: any);
15
- getPageRef: () => any;
16
- getListRef: () => any;
17
- getTableRef: () => any;
18
- getListFormRef: () => any;
19
- getBillFormRef: () => any;
20
- getListFormCurrentRef: () => any;
21
- getBillFormCurrentRef: () => any;
22
- render(): React.JSX.Element;
23
- }
1
+ /**
2
+ * 模板列表
3
+ */
4
+ import * as React from 'react';
5
+ import type { RcPageProps } from '@ztocwst/rc-pro';
6
+ export default class ZTplListContainer extends React.Component<RcPageProps, any> {
7
+ pageRef: any;
8
+ listRef: any;
9
+ tableRef: any;
10
+ listFormRef: any;
11
+ listFormCurrentRef: any;
12
+ billFormRef: any;
13
+ billFormCurrentRef: any;
14
+ constructor(props: any);
15
+ getPageRef: () => any;
16
+ getListRef: () => any;
17
+ getTableRef: () => any;
18
+ getListFormRef: () => any;
19
+ getBillFormRef: () => any;
20
+ getListFormCurrentRef: () => any;
21
+ getBillFormCurrentRef: () => any;
22
+ render(): JSX.Element;
23
+ }
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
3
- /**
4
- * 模板列表
3
+ /**
4
+ * 模板列表
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { RcBasicTpl } from '@ztocwst/rc-pro';
@@ -11,7 +11,6 @@ var ZTpl = function ZTpl(props) {
11
11
  return /*#__PURE__*/React.createElement(RcBasicTpl, props);
12
12
  };
13
13
  var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
14
- _inheritsLoose(ZTplListContainer, _React$Component);
15
14
  function ZTplListContainer(props) {
16
15
  var _this;
17
16
  _this = _React$Component.call(this, props) || this;
@@ -52,6 +51,7 @@ var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
52
51
  _this.billFormCurrentRef = /*#__PURE__*/React.createRef();
53
52
  return _this;
54
53
  }
54
+ _inheritsLoose(ZTplListContainer, _React$Component);
55
55
  var _proto = ZTplListContainer.prototype;
56
56
  _proto.render = function render() {
57
57
  var tplProps = processTplProps(this.props, {
@@ -1,2 +1,2 @@
1
- import ZWarehouse from './zWarehouse';
2
- export default ZWarehouse;
1
+ import ZWarehouse from './zWarehouse';
2
+ export default ZWarehouse;
@@ -1,3 +1,2 @@
1
- import * as React from 'react';
2
- declare const ZWarehouse: (props: any) => React.JSX.Element;
3
- export default ZWarehouse;
1
+ declare const ZWarehouse: (props: any) => JSX.Element;
2
+ export default ZWarehouse;
@@ -0,0 +1,3 @@
1
+ import ZWatermark from './zWatermark';
2
+ export type { TypeWatermarkProps } from '@ztocwst/rc-pro';
3
+ export default ZWatermark;
@@ -0,0 +1,2 @@
1
+ import ZWatermark from "./zWatermark";
2
+ export default ZWatermark;
@@ -0,0 +1,3 @@
1
+ import type { TypeWatermarkProps } from '@ztocwst/rc-pro';
2
+ declare const _default: (props: TypeWatermarkProps) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Watermark } from '@ztocwst/rc-pro';
2
+ export default (function (props) {
3
+ return /*#__PURE__*/React.createElement(Watermark, props);
4
+ });