@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
package/es/index.d.ts CHANGED
@@ -1,38 +1,44 @@
1
- export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
2
- export { default as ZButton } from './components/z-button';
3
- export type { ProFormRenderProps } from '@ztocwst/rc-pro';
4
- export { default as ZForm } from './components/z-form';
5
- export type { ProEllipsisProps } from '@ztocwst/rc-pro';
6
- export { default as ZEllipsis } from './components/z-Ellipsis';
7
- export type { ProTableProps } from '@ztocwst/rc-pro';
8
- export { default as ZTable } from './components/z-table';
9
- export type { ProPreviewProps } from '@ztocwst/rc-pro';
10
- export { default as ZPreview } from './components/z-preview';
11
- export type { RcListItem } from '@ztocwst/rc-pro';
12
- export { default as ZList } from './components/z-list';
13
- export type { RcPageProps } from '@ztocwst/rc-pro';
14
- export { default as ZTpl } from './components/z-tpl';
15
- export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
16
- export { default as ZConfigProvider } from './components/z-config-provider';
17
- export type { TypeZBoxProps } from './components/z-box';
18
- export { default as ZBox } from './components/z-box';
19
- export { default as ZDiv } from './components/z-div';
20
- export type { TypeZStatisticProps } from './components/z-statistic';
21
- export { default as ZStatistic } from './components/z-statistic';
22
- export type { TypeZSimpleBarProps } from './components/z-simple-bar';
23
- export { default as ZSimpleBar } from './components/z-simple-bar';
24
- export { default as ZRankingList } from './components/z-ranking-list';
25
- export { default as ZWarehouse } from './components/z-warehouse';
26
- export { default as ZSingleFactory } from './components/z-singleFactory';
27
- export { default as ZRcEditTable } from './components/z-editTable';
28
- export { default as ZAuth } from './components/z-auth';
29
- export type { TypeAuthProps } from './components/z-auth';
30
- export { default as ZProProvider } from './components/z-pro-provider';
31
- export type { TypeZProProviderProps } from './components/z-pro-provider';
32
- export { default as ZOperationRecords } from './components/z-operation-records';
33
- export { default as ZPointerBlock } from './components/z-pointer-block';
34
- export type { TypeZPointerBlockProps } from './components/z-pointer-block';
35
- export { default as ZAggBlock } from './components/z-agg-block';
36
- export type { TypeAggBlockProps } from './components/z-agg-block';
37
- export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
38
- export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
1
+ export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
2
+ export { default as ZButton } from './components/z-button';
3
+ export type { ProFormRenderProps } from '@ztocwst/rc-pro';
4
+ export { default as ZForm } from './components/z-form';
5
+ export type { ProEllipsisProps } from '@ztocwst/rc-pro';
6
+ export { default as ZEllipsis } from './components/z-Ellipsis';
7
+ export type { ProTableProps } from '@ztocwst/rc-pro';
8
+ export { default as ZTable } from './components/z-table';
9
+ export type { ProPreviewProps } from '@ztocwst/rc-pro';
10
+ export { default as ZPreview } from './components/z-preview';
11
+ export type { RcListItem } from '@ztocwst/rc-pro';
12
+ export { default as ZList } from './components/z-list';
13
+ export type { RcPageProps } from '@ztocwst/rc-pro';
14
+ export { default as ZTpl } from './components/z-tpl';
15
+ export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
16
+ export { default as ZConfigProvider } from './components/z-config-provider';
17
+ export type { TypeZBoxProps } from './components/z-box';
18
+ export { default as ZBox } from './components/z-box';
19
+ export { default as ZDiv } from './components/z-div';
20
+ export type { TypeZStatisticProps } from './components/z-statistic';
21
+ export { default as ZStatistic } from './components/z-statistic';
22
+ export type { TypeZSimpleBarProps } from './components/z-simple-bar';
23
+ export { default as ZSimpleBar } from './components/z-simple-bar';
24
+ export { default as ZRankingList } from './components/z-ranking-list';
25
+ export { default as ZWarehouse } from './components/z-warehouse';
26
+ export { default as ZSingleFactory } from './components/z-singleFactory';
27
+ export { default as ZRcEditTable } from './components/z-editTable';
28
+ export { default as ZAuth } from './components/z-auth';
29
+ export type { TypeAuthProps } from './components/z-auth';
30
+ export { default as ZProProvider } from './components/z-pro-provider';
31
+ export type { TypeZProProviderProps } from './components/z-pro-provider';
32
+ export { default as ZOperationRecords } from './components/z-operation-records';
33
+ export { default as ZPointerBlock } from './components/z-pointer-block';
34
+ export type { TypeZPointerBlockProps } from './components/z-pointer-block';
35
+ export { default as ZAggBlock } from './components/z-agg-block';
36
+ export type { TypeAggBlockProps } from './components/z-agg-block';
37
+ export { default as ZDataTable } from './components/z-data-table';
38
+ export type { TypeZDataTableProps } from './components/z-data-table';
39
+ export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
40
+ export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
41
+ export { default as ZSlick } from './components/z-slick';
42
+ export type { TypeZSlickProps } from './components/z-slick';
43
+ export { default as ZWatermark } from './components/z-watermark';
44
+ export type { TypeWatermarkProps } from './components/z-watermark';
package/es/index.js CHANGED
@@ -22,7 +22,11 @@ export { default as ZOperationRecords } from "./components/z-operation-records";
22
22
  export { default as ZPointerBlock } from "./components/z-pointer-block";
23
23
  // 聚合指标
24
24
  export { default as ZAggBlock } from "./components/z-agg-block";
25
+ // 数据表格
26
+ export { default as ZDataTable } from "./components/z-data-table";
25
27
  export { default as ZTemplatesDataCommon } from "./components/z-templates-data-common";
28
+ export { default as ZSlick } from "./components/z-slick";
29
+ export { default as ZWatermark } from "./components/z-watermark";
26
30
 
27
31
  // const bizCssPrefix = 'bizpack';
28
32
 
package/es/index.scss CHANGED
@@ -1 +1 @@
1
- // @import './components/rc-button/index.scss';
1
+ // @import './components/rc-button/index.scss';
package/es/style.js CHANGED
@@ -8,9 +8,7 @@ import 'antd/lib/row/style';
8
8
  import 'antd/lib/col/style';
9
9
  import 'antd/lib/message/style';
10
10
  import 'antd/lib/tabs/style';
11
- import 'antd/lib/checkbox/style';
12
- import 'antd/lib/radio/style';
13
- import 'antd/lib/spin/style';
11
+ import 'antd/lib/carousel/style';
14
12
  import 'antd/es/statistic/style';
15
13
  import 'antd/es/progress/style';
16
14
  import 'antd/es/table/style';
@@ -19,7 +17,5 @@ import 'antd/es/row/style';
19
17
  import 'antd/es/col/style';
20
18
  import 'antd/es/message/style';
21
19
  import 'antd/es/tabs/style';
22
- import 'antd/es/checkbox/style';
23
- import 'antd/es/radio/style';
24
- import 'antd/es/spin/style';
20
+ import 'antd/es/carousel/style';
25
21
  import './index.scss';
package/es/utils/hoc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { ComponentType } from 'react';
2
- /**
3
- * 简单包装,不做任何处理
4
- * 部分组件ref比较特殊,包一层会解决这个问题
5
- */
6
- export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
1
+ import { ComponentType } from 'react';
2
+ /**
3
+ * 简单包装,不做任何处理
4
+ * 部分组件ref比较特殊,包一层会解决这个问题
5
+ */
6
+ export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
package/es/utils/hoc.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import { forwardRef } from 'react';
3
3
 
4
- /**
5
- * 简单包装,不做任何处理
6
- * 部分组件ref比较特殊,包一层会解决这个问题
4
+ /**
5
+ * 简单包装,不做任何处理
6
+ * 部分组件ref比较特殊,包一层会解决这个问题
7
7
  */
8
8
  export function withWrap(Comp) {
9
9
  return /*#__PURE__*/forwardRef(function (props, ref) {
@@ -1,13 +1,13 @@
1
- import { processButtonProps } from './props/button';
2
- import { processFormProps } from './props/form';
3
- import { processListTplProps } from './props/listTpl';
4
- import { processTplProps } from './props/tpl';
5
- import { processMicroSwitchProps } from './props/microSwitch';
6
- import { processMicroModalProps } from './props/microModal';
7
- import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
8
- import { processEditTableProps } from './props/editTable';
9
- import { processPreviewProps } from './props/preview';
10
- import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
11
- import { processOperationRecordsProps } from './props/operationRecords';
12
- declare const processJsonOrFunctionProps: (props: any) => any;
13
- export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
1
+ import { processButtonProps } from './props/button';
2
+ import { processFormProps } from './props/form';
3
+ import { processListTplProps } from './props/listTpl';
4
+ import { processTplProps } from './props/tpl';
5
+ import { processMicroSwitchProps } from './props/microSwitch';
6
+ import { processMicroModalProps } from './props/microModal';
7
+ import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
8
+ import { processEditTableProps } from './props/editTable';
9
+ import { processPreviewProps } from './props/preview';
10
+ import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
11
+ import { processOperationRecordsProps } from './props/operationRecords';
12
+ declare const processJsonOrFunctionProps: (props: any) => any;
13
+ export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps, };
package/es/utils/index.js CHANGED
@@ -10,6 +10,10 @@ import { processPreviewProps } from "./props/preview";
10
10
  import { processModalSelectProps, processModalSelectTablePropsColumns } from "./props/modalSelect";
11
11
  import { processOperationRecordsProps } from "./props/operationRecords";
12
12
  var processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
13
- return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
13
+ try {
14
+ return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
15
+ } catch (error) {
16
+ console.log(error);
17
+ }
14
18
  };
15
19
  export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
@@ -1,13 +1,13 @@
1
- import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
2
- export declare const processButtonProps: (props: ProButtonProps & {
3
- linkButton?: boolean;
4
- }, extra?: {
5
- tableRef?: any;
6
- }) => {
7
- items: any[];
8
- type?: string;
9
- spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
10
- size?: import("antd/lib/button").ButtonSize;
11
- onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
12
- onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
13
- };
1
+ import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
2
+ export declare const processButtonProps: (props: ProButtonProps & {
3
+ linkButton?: boolean;
4
+ }, extra?: {
5
+ tableRef?: any;
6
+ }) => {
7
+ items: any[];
8
+ type?: string;
9
+ spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
10
+ size?: import("antd/lib/button").ButtonSize;
11
+ onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
12
+ onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
13
+ };
@@ -1 +1,7 @@
1
- export declare const processRequestConfig: (props: any) => any;
1
+ export declare const processRequestConfig: (props: any) => any;
2
+ /**
3
+ * 根据对象是否为空判断返回值
4
+ * @param obj
5
+ * @returns undefined | obj
6
+ */
7
+ export declare const processEmptyObject: (obj?: any) => any;
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["singleWarehouse"];
4
+ import _ from 'lodash';
4
5
  export var processRequestConfig = function processRequestConfig(props) {
5
6
  var _props$headers;
6
7
  var singleWarehouse = props.singleWarehouse,
@@ -10,4 +11,20 @@ export var processRequestConfig = function processRequestConfig(props) {
10
11
  singleWarehouse: true
11
12
  } : {})
12
13
  } : {});
14
+ };
15
+
16
+ /**
17
+ * 根据对象是否为空判断返回值
18
+ * @param obj
19
+ * @returns undefined | obj
20
+ */
21
+ export var processEmptyObject = function processEmptyObject(obj) {
22
+ if (obj === void 0) {
23
+ obj = {};
24
+ }
25
+ // 判断对象是否为空
26
+ var empty = _ === null || _ === void 0 ? void 0 : _.isEmpty(_ === null || _ === void 0 ? void 0 : _.pickBy(obj, function (value) {
27
+ return value !== null && value !== undefined;
28
+ }));
29
+ return empty ? undefined : obj;
13
30
  };
@@ -1,3 +1,3 @@
1
- export declare const processEditTableProps: (props: any, extra?: {
2
- proEditableFormRef?: any;
3
- }) => any;
1
+ export declare const processEditTableProps: (props: any, extra?: {
2
+ proEditableFormRef?: any;
3
+ }) => any;
@@ -1,18 +1,17 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["scroll", "value", "onChange", "restEditableProps", "restRecordCreatorProps", "restFieldProps", "restFormProps", "FormItemProps", "fieldProps", "columns", "editable", "render", "recordCreatorProps", "locale"],
4
- _excluded2 = ["editable"];
3
+ var _excluded = ["scroll", "value", "onChange", "restEditableProps", "restRecordCreatorProps", "FormItemProps", "fieldProps", "columns", "editable", "render", "recordCreatorProps", "locale"],
4
+ _excluded2 = ["restFormProps"],
5
+ _excluded3 = ["restFieldProps"],
6
+ _excluded4 = ["editable"];
5
7
  import { processJsonOrFunctionProps } from "../../../lib";
6
8
  var processTableProps = function processTableProps(props) {
7
- console.log(props, 2);
8
- var processObjectValue = function processObjectValue(obj) {
9
+ var _processObjectValue = function processObjectValue(obj) {
9
10
  var scroll = obj.scroll,
10
11
  value = obj.value,
11
12
  onChange = obj.onChange,
12
13
  restEditableProps = obj.restEditableProps,
13
14
  restRecordCreatorProps = obj.restRecordCreatorProps,
14
- restFieldProps = obj.restFieldProps,
15
- restFormProps = obj.restFormProps,
16
15
  FormItemProps = obj.FormItemProps,
17
16
  fieldProps = obj.fieldProps,
18
17
  columns = obj.columns,
@@ -21,6 +20,12 @@ var processTableProps = function processTableProps(props) {
21
20
  recordCreatorProps = obj.recordCreatorProps,
22
21
  locale = obj.locale,
23
22
  rest = _objectWithoutPropertiesLoose(obj, _excluded);
23
+ var _ref = FormItemProps !== null && FormItemProps !== void 0 ? FormItemProps : {},
24
+ restFormProps = _ref.restFormProps,
25
+ restFormItemProps = _objectWithoutPropertiesLoose(_ref, _excluded2);
26
+ var _ref2 = fieldProps !== null && fieldProps !== void 0 ? fieldProps : {},
27
+ restFieldProps = _ref2.restFieldProps,
28
+ restFieldItemProps = _objectWithoutPropertiesLoose(_ref2, _excluded3);
24
29
  return _extends({}, locale ? {
25
30
  locale: processJsonOrFunctionProps(locale)
26
31
  } : {}, scroll ? {
@@ -36,29 +41,31 @@ var processTableProps = function processTableProps(props) {
36
41
  } : {}, render ? {
37
42
  render: render
38
43
  } : {}, FormItemProps ? {
39
- formItemProps: _extends({}, FormItemProps, typeof restFormProps === 'function' ? restFormProps === null || restFormProps === void 0 ? void 0 : restFormProps() : restFormProps)
44
+ formItemProps: _extends({}, restFormItemProps, typeof restFormProps === 'function' ? restFormProps === null || restFormProps === void 0 ? void 0 : restFormProps() : restFormProps)
40
45
  } : {}, fieldProps ? {
41
- fieldProps: _extends({}, fieldProps, typeof restFieldProps === 'function' ? restFieldProps === null || restFieldProps === void 0 ? void 0 : restFieldProps() : restFieldProps)
46
+ fieldProps: _extends({}, restFieldItemProps, typeof restFieldProps === 'function' ? restFieldProps === null || restFieldProps === void 0 ? void 0 : restFieldProps() : restFieldProps)
42
47
  } : {}, columns !== null && columns !== void 0 && columns.length ? {
43
48
  columns: columns === null || columns === void 0 ? void 0 : columns.map(function (v) {
44
49
  var columnsEditable = v.editable,
45
- restColumns = _objectWithoutPropertiesLoose(v, _excluded2);
50
+ restColumns = _objectWithoutPropertiesLoose(v, _excluded4);
46
51
  return _extends({}, editable ? {
47
52
  editable: columnsEditable
48
- } : {}, processObjectValue(restColumns));
53
+ } : {}, _processObjectValue(restColumns));
49
54
  })
50
55
  } : [], rest);
51
56
  };
52
57
  if (Array.isArray(props)) {
53
58
  return props === null || props === void 0 ? void 0 : props.map(function (e) {
54
- return processObjectValue(e);
59
+ return _processObjectValue(e);
55
60
  });
56
61
  }
57
- return processObjectValue(props);
62
+ var data = _processObjectValue(props);
63
+ console.log(data, 'editTable Props');
64
+ return data;
58
65
  };
59
66
  export var processEditTableProps = function processEditTableProps(props, extra) {
60
- var _ref = extra !== null && extra !== void 0 ? extra : {},
61
- proEditableFormRef = _ref.proEditableFormRef;
67
+ var _ref3 = extra !== null && extra !== void 0 ? extra : {},
68
+ proEditableFormRef = _ref3.proEditableFormRef;
62
69
  return _extends({}, processTableProps(props), {
63
70
  proEditableFormRef: proEditableFormRef
64
71
  });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * 处理表单默认值
3
+ */
4
+ import { ProFormRenderProps } from '@ztocwst/rc-pro';
5
+ export declare const processFormProps: (props: Omit<import("@ant-design/pro-form/lib/components/SchemaForm").FormSchema<any, "trim" | "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup" | "scanInput" | "timeRangePicker" | "quickTimerRange" | "rangerPickerLimit" | "linkageGroup">, "columns"> & {
6
+ onCollapse?: (collapsed: boolean) => void;
7
+ defaultColsNumber?: number;
8
+ span?: number;
9
+ currentRef?: React.Ref<any>;
10
+ valueTypeMap?: Record<string, import("@ant-design/pro-provider").ProRenderFieldPropsType>;
11
+ number?: number;
12
+ settingOpt?: {
13
+ key: string;
14
+ isShowAdd?: boolean;
15
+ getAsyncColumns?: (key: string) => Promise<any[]>;
16
+ setAsyncColumns?: (key: string, data: any[]) => Promise<{
17
+ [k: string]: any;
18
+ success: boolean;
19
+ }>;
20
+ };
21
+ queryBtnChangePosition?: boolean;
22
+ submitterFooter?: boolean;
23
+ anchor?: {
24
+ on?: boolean;
25
+ direction?: "left" | "right";
26
+ getContainer?: () => Element | HTMLElement;
27
+ } & Omit<import("antd").AnchorProps, "getContainer">;
28
+ columns?: import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[] | ((values: any) => import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[]);
29
+ onLoadSuccess?: () => void;
30
+ onSettingSuccess?: () => void;
31
+ coerceRaster?: boolean;
32
+ } & {
33
+ labelColWidth?: number;
34
+ columns?: any[];
35
+ restProps?: any;
36
+ }) => any;
@@ -3,11 +3,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
3
3
  var _excluded = ["fieldProps", "formItemProps", "dependencyColumns", "required", "initialValue"],
4
4
  _excluded2 = ["restFieldProps", "renderItemSlot"],
5
5
  _excluded3 = ["restFormProps"],
6
- _excluded4 = ["fieldProps"],
6
+ _excluded4 = ["fieldProps", "hideInDependency"],
7
7
  _excluded5 = ["requestOptions"],
8
8
  _excluded6 = ["columns", "switchGroup"];
9
- /**
10
- * 处理表单默认值
9
+ /**
10
+ * 处理表单默认值
11
11
  */
12
12
 
13
13
  import { processModalSelectProps } from "./modalSelect";
@@ -23,7 +23,7 @@ var hasName = function hasName(name) {
23
23
  }
24
24
  return !!name;
25
25
  };
26
- var processInitialValue = function processInitialValue(e) {
26
+ var _processInitialValue = function processInitialValue(e) {
27
27
  var _restFieldArgs$style;
28
28
  var fieldProps = e.fieldProps,
29
29
  formItemProps = e.formItemProps,
@@ -60,12 +60,15 @@ var processInitialValue = function processInitialValue(e) {
60
60
  } catch (error) {
61
61
  dependencyName = '';
62
62
  }
63
- var childRest = processInitialValue(child);
64
- var fieldProps = childRest.fieldProps,
63
+ var childRest = _processInitialValue(child);
64
+ var childFieldProps = childRest.fieldProps,
65
+ hideInDependency = childRest.hideInDependency,
65
66
  childItemRest = _objectWithoutPropertiesLoose(childRest, _excluded4);
66
- var requestOptions = fieldProps.requestOptions,
67
- childRestFieldProps = _objectWithoutPropertiesLoose(fieldProps, _excluded5);
68
- return _extends({}, childItemRest, {
67
+ var requestOptions = childFieldProps.requestOptions,
68
+ childRestFieldProps = _objectWithoutPropertiesLoose(childFieldProps, _excluded5);
69
+ return _extends({}, hideInDependency ? {
70
+ hideInForm: !hideInDependency(obj)
71
+ } : {}, childItemRest, {
69
72
  fieldProps: _extends({}, childRestFieldProps, (childRest === null || childRest === void 0 ? void 0 : childRest.valueType) === 'asyncSelect' &&
70
73
  // 接口请求前置校验, 通过请求 asyncSelect 接口
71
74
  requestOptionsCheck(childRestFieldProps === null || childRestFieldProps === void 0 ? void 0 : childRestFieldProps.requestOptionsCheck, obj) ? {
@@ -132,7 +135,7 @@ export var processFormProps = function processFormProps(props) {
132
135
  formRef = props.formRef,
133
136
  currentRef = props.currentRef,
134
137
  restProps = props.restProps;
135
- return processModalSelectProps(_extends({
138
+ var config = processModalSelectProps(_extends({
136
139
  // columns只支持两级group嵌套
137
140
  columns: (_ref3 = columns || []) === null || _ref3 === void 0 ? void 0 : _ref3.filter(function (e) {
138
141
  return !!e;
@@ -148,11 +151,11 @@ export var processFormProps = function processFormProps(props) {
148
151
  columns: (_ref4 = groupColumns || []) === null || _ref4 === void 0 ? void 0 : (_ref4$filter = _ref4.filter(function (child) {
149
152
  return !!child;
150
153
  })) === null || _ref4$filter === void 0 ? void 0 : _ref4$filter.map(function (child) {
151
- return processInitialValue(child);
154
+ return _processInitialValue(child);
152
155
  })
153
156
  });
154
157
  }
155
- return processInitialValue(e);
158
+ return _processInitialValue(e);
156
159
  })
157
160
  }, onFinish ? {
158
161
  onFinish: onFinish
@@ -169,9 +172,9 @@ export var processFormProps = function processFormProps(props) {
169
172
  width: labelColWidth
170
173
  })
171
174
  })
172
- }, settingOpt ? {
175
+ }, typeof settingOpt === 'string' && settingOpt !== null && settingOpt !== void 0 && settingOpt.trim() ? {
173
176
  settingOpt: {
174
- key: "form_setting_" + Math.random()
177
+ key: "" + (settingOpt === null || settingOpt === void 0 ? void 0 : settingOpt.trim())
175
178
  }
176
179
  } : {}, {
177
180
  defaultColsNumber: defaultColsNumber,
@@ -179,4 +182,20 @@ export var processFormProps = function processFormProps(props) {
179
182
  span: span,
180
183
  layoutType: layoutType
181
184
  }, restProps ? processJsonOrFunctionProps(restProps) : {}));
185
+
186
+ // 每次变更重置(不知当初为什么这么写,导致外部state变化后,表单输入的值被重置了)
187
+ // if (formRef?.current) {
188
+ // const resetFields = config?.columns
189
+ // ?.filter((e) => !e?.initialValue)
190
+ // ?.reduce((prev: any, next: any) => {
191
+ // // eslint-disable-next-line no-param-reassign
192
+ // prev[next?.dataIndex ?? ''] = undefined;
193
+ // return prev;
194
+ // }, {});
195
+ // if (Object.keys(resetFields)?.length) {
196
+ // formRef?.current?.setFieldsValue(resetFields);
197
+ // }
198
+ // }
199
+
200
+ return config;
182
201
  };
@@ -1,29 +1,29 @@
1
- import { RcListItem } from '@ztocwst/rc-pro';
2
- export declare const processListTplProps: (props: RcListItem, extra?: {
3
- listRef?: any;
4
- tableRef?: any;
5
- listFormRef?: any;
6
- listFormCurrentRef?: any;
7
- }) => {
8
- requestConfig: any;
9
- type?: "list";
10
- listRef: any;
11
- onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
12
- renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
13
- render?: (onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
14
- key?: string;
15
- name?: any;
16
- form: any;
17
- actions: {
18
- items: any[];
19
- type?: string;
20
- spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
21
- size?: import("antd/lib/button").ButtonSize;
22
- onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
23
- onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
24
- };
25
- grid: {
26
- config: any;
27
- ref: any;
28
- };
29
- };
1
+ import { RcListItem } from '@ztocwst/rc-pro';
2
+ export declare const processListTplProps: (props: RcListItem, extra?: {
3
+ listRef?: any;
4
+ tableRef?: any;
5
+ listFormRef?: any;
6
+ listFormCurrentRef?: any;
7
+ }) => {
8
+ requestConfig: any;
9
+ type?: "list";
10
+ listRef: any;
11
+ onListBtnChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
12
+ renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
13
+ render?: (onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
14
+ key?: string;
15
+ name?: any;
16
+ form: any;
17
+ actions: {
18
+ items: any[];
19
+ type?: string;
20
+ spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
21
+ size?: import("antd/lib/button").ButtonSize;
22
+ onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
23
+ onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
24
+ };
25
+ grid: {
26
+ config: any;
27
+ ref: any;
28
+ };
29
+ };
@@ -1,7 +1,7 @@
1
- import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
2
- export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
3
- export declare function transformFormProps(formProps: any): {
4
- formProps?: undefined;
5
- } | {
6
- formProps: any;
7
- };
1
+ import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
2
+ export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
3
+ export declare function transformFormProps(formProps: any): {
4
+ formProps?: undefined;
5
+ } | {
6
+ formProps: any;
7
+ };
@@ -21,7 +21,6 @@ export var processMicroModalProps = function processMicroModalProps(item) {
21
21
  requestOptions: processRequestConfig(requestOptions)
22
22
  } : {}, restProps ? processJsonOrFunctionProps(restProps) : {})
23
23
  });
24
- console.log('microModalProps', _props);
25
24
  return _props;
26
25
  };
27
26
  export function transformFormProps(formProps) {
@@ -1 +1 @@
1
- export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
1
+ export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
@@ -1,17 +1,19 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["columns"],
3
+ var _excluded = ["columns", "restProps"],
4
4
  _excluded2 = ["actionsSlot"],
5
5
  _excluded3 = ["restProps", "requestOptions"],
6
6
  _excluded4 = ["isMicroSwitch"],
7
7
  _excluded5 = ["enableReasonKey", "disableReasonKey", "formProps"];
8
+ import { processJsonOrFunctionProps } from "../index";
8
9
  import { processRequestConfig } from "./common";
9
10
  import { transformFormProps } from "./microModal";
10
11
  export var processMicroSwitchProps = function processMicroSwitchProps(props, tableRef) {
11
12
  var _props$columns = props.columns,
12
13
  columns = _props$columns === void 0 ? [] : _props$columns,
14
+ restProps = props.restProps,
13
15
  rest = _objectWithoutPropertiesLoose(props, _excluded);
14
- return _extends({}, rest, {
16
+ return _extends({}, rest, restProps ? processJsonOrFunctionProps(restProps) : {}, {
15
17
  columns: columns === null || columns === void 0 ? void 0 : columns.map(function (column) {
16
18
  var item = transformSwitchModal(column, tableRef);
17
19
  var actionsSlot = item.actionsSlot,
@@ -32,7 +34,6 @@ export var processMicroSwitchProps = function processMicroSwitchProps(props, tab
32
34
  // }),
33
35
  });
34
36
  };
35
-
36
37
  var transformSwitchModal = function transformSwitchModal(column, tableRef) {
37
38
  if (!column) {
38
39
  return column;
@@ -1,6 +1,6 @@
1
- import { ProFormRenderProps } from '@ztocwst/rc-pro';
2
- export declare const processModalSelectProps: (props: ProFormRenderProps & {
3
- labelColWidth?: number;
4
- columns?: any[];
5
- }) => any;
6
- export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
1
+ import { ProFormRenderProps } from '@ztocwst/rc-pro';
2
+ export declare const processModalSelectProps: (props: ProFormRenderProps & {
3
+ labelColWidth?: number;
4
+ columns?: any[];
5
+ }) => any;
6
+ export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
@@ -1,2 +1,2 @@
1
- import { ProOperationRecordsProps } from '@ztocwst/rc-pro';
2
- export declare const processOperationRecordsProps: (props: ProOperationRecordsProps) => any;
1
+ import { ProOperationRecordsProps } from '@ztocwst/rc-pro';
2
+ export declare const processOperationRecordsProps: (props: ProOperationRecordsProps) => any;