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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +17 -17
  2. package/build/index.js +8 -8
  3. package/build/lowcode/assets-daily.json +11 -11
  4. package/build/lowcode/assets-dev.json +8 -8
  5. package/build/lowcode/assets-prod.json +11 -11
  6. package/build/lowcode/designer.html +2 -2
  7. package/build/lowcode/index.html +2 -2
  8. package/build/lowcode/index.js +1 -1
  9. package/build/lowcode/meta.js +1 -1
  10. package/build/lowcode/preview.css +1 -1
  11. package/build/lowcode/preview.js +4 -5
  12. package/build/lowcode/render/default/view.css +1 -2
  13. package/build/lowcode/render/default/view.js +9 -58
  14. package/build/lowcode/view.css +1 -2
  15. package/build/lowcode/view.js +10 -59
  16. package/dist/SCM_Comps.css +2 -2
  17. package/dist/SCM_Comps.js +22 -53
  18. package/dist/SCM_Comps.js.map +1 -1
  19. package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
  20. package/es/components/z-Ellipsis/index.d.ts +3 -3
  21. package/es/components/z-agg-block/index.d.ts +3 -3
  22. package/es/components/z-agg-block/index.less +134 -134
  23. package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
  24. package/es/components/z-agg-block/z-agg-block.js +1 -1
  25. package/es/components/z-auth/auth.d.ts +9 -9
  26. package/es/components/z-auth/index.d.ts +3 -3
  27. package/es/components/z-box/box.d.ts +20 -20
  28. package/es/components/z-box/index.d.ts +3 -3
  29. package/es/components/z-box/index.less +4 -4
  30. package/es/components/z-button/index.d.ts +3 -3
  31. package/es/components/z-button/z-button.d.ts +4 -4
  32. package/es/components/z-config-provider/configProvider.d.ts +4 -4
  33. package/es/components/z-config-provider/configProvider.js +45 -4
  34. package/es/components/z-config-provider/index.d.ts +3 -3
  35. package/es/components/z-data-table/data-table.d.ts +9 -0
  36. package/es/components/z-data-table/data-table.js +24 -0
  37. package/es/components/z-data-table/index.d.ts +3 -0
  38. package/es/components/z-data-table/index.js +2 -0
  39. package/es/components/z-div/div.d.ts +6 -6
  40. package/es/components/z-div/index.d.ts +2 -2
  41. package/es/components/z-editTable/editTable.d.ts +11 -11
  42. package/es/components/z-editTable/editTable.js +3 -4
  43. package/es/components/z-editTable/index.d.ts +2 -2
  44. package/es/components/z-form/index.d.ts +3 -3
  45. package/es/components/z-form/z-form.d.ts +10 -10
  46. package/es/components/z-form/z-form.js +1 -1
  47. package/es/components/z-list/index.d.ts +3 -3
  48. package/es/components/z-list/list.d.ts +17 -17
  49. package/es/components/z-list/list.js +3 -3
  50. package/es/components/z-operation-records/index.d.ts +3 -3
  51. package/es/components/z-operation-records/operationRecords.d.ts +4 -4
  52. package/es/components/z-pointer-block/index.d.ts +3 -3
  53. package/es/components/z-pointer-block/index.less +15 -15
  54. package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  55. package/es/components/z-preview/index.d.ts +3 -3
  56. package/es/components/z-preview/preview.d.ts +4 -4
  57. package/es/components/z-pro-provider/index.d.ts +3 -3
  58. package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  59. package/es/components/z-ranking-list/index.d.ts +2 -2
  60. package/es/components/z-ranking-list/index.less +49 -49
  61. package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  62. package/es/components/z-ranking-list/z-ranking-list.js +2 -3
  63. package/es/components/z-simple-bar/index.d.ts +3 -3
  64. package/es/components/z-simple-bar/index.less +9 -9
  65. package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  66. package/es/components/z-singleFactory/index.d.ts +2 -2
  67. package/es/components/z-singleFactory/zSingerFactory.d.ts +2 -3
  68. package/es/components/z-slick/index.d.ts +3 -0
  69. package/es/components/z-slick/index.js +2 -0
  70. package/es/components/z-slick/slick.d.ts +47 -0
  71. package/es/components/z-slick/slick.js +35 -0
  72. package/es/components/z-statistic/index.d.ts +3 -3
  73. package/es/components/z-statistic/index.less +22 -22
  74. package/es/components/z-statistic/z-statistic.d.ts +13 -13
  75. package/es/components/z-table/index.d.ts +3 -3
  76. package/es/components/z-table/table.d.ts +8 -8
  77. package/es/components/z-table/table.js +1 -1
  78. package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
  79. package/es/components/z-templates-data-common/components/chart-renderer/index.js +33 -13
  80. package/es/components/z-templates-data-common/data-common.d.ts +20 -105
  81. package/es/components/z-templates-data-common/data-common.helper.d.ts +2 -61
  82. package/es/components/z-templates-data-common/data-common.helper.js +2 -336
  83. package/es/components/z-templates-data-common/data-common.js +81 -62
  84. package/es/components/z-templates-data-common/index.d.ts +3 -3
  85. package/es/components/z-tpl/index.d.ts +3 -3
  86. package/es/components/z-tpl/tpl.d.ts +23 -23
  87. package/es/components/z-tpl/tpl.js +3 -3
  88. package/es/components/z-warehouse/index.d.ts +2 -2
  89. package/es/components/z-warehouse/zWarehouse.d.ts +2 -3
  90. package/es/components/z-watermark/index.d.ts +3 -0
  91. package/es/components/z-watermark/index.js +2 -0
  92. package/es/components/z-watermark/zWatermark.d.ts +3 -0
  93. package/es/components/z-watermark/zWatermark.js +4 -0
  94. package/es/index.d.ts +44 -38
  95. package/es/index.js +4 -0
  96. package/es/index.scss +1 -1
  97. package/es/style.js +2 -6
  98. package/es/utils/hoc.d.ts +6 -6
  99. package/es/utils/hoc.js +3 -3
  100. package/es/utils/index.d.ts +13 -13
  101. package/es/utils/index.js +5 -1
  102. package/es/utils/props/button.d.ts +13 -13
  103. package/es/utils/props/common.d.ts +7 -1
  104. package/es/utils/props/common.js +17 -0
  105. package/es/utils/props/editTable.d.ts +3 -3
  106. package/es/utils/props/editTable.js +21 -14
  107. package/es/utils/props/form.d.ts +36 -0
  108. package/es/utils/props/form.js +33 -14
  109. package/es/utils/props/listTpl.d.ts +29 -29
  110. package/es/utils/props/microModal.d.ts +7 -7
  111. package/es/utils/props/microModal.js +0 -1
  112. package/es/utils/props/microSwitch.d.ts +1 -1
  113. package/es/utils/props/microSwitch.js +4 -3
  114. package/es/utils/props/modalSelect.d.ts +6 -6
  115. package/es/utils/props/operationRecords.d.ts +2 -2
  116. package/es/utils/props/operationRecords.js +4 -4
  117. package/es/utils/props/preview.d.ts +2 -2
  118. package/es/utils/props/preview.js +4 -4
  119. package/es/utils/props/tpl.d.ts +173 -162
  120. package/es/utils/props/warehouseAndFactory.d.ts +1 -1
  121. package/es/utils/rcProRequest.d.ts +3 -3
  122. package/es/utils/rcProRequest.js +3 -3
  123. package/es/variables.scss +3 -3
  124. package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
  125. package/lib/components/z-Ellipsis/ellipsis.js +3 -4
  126. package/lib/components/z-Ellipsis/index.d.ts +3 -3
  127. package/lib/components/z-Ellipsis/index.js +1 -2
  128. package/lib/components/z-agg-block/index.d.ts +3 -3
  129. package/lib/components/z-agg-block/index.js +1 -2
  130. package/lib/components/z-agg-block/index.less +134 -134
  131. package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
  132. package/lib/components/z-agg-block/z-agg-block.js +2 -3
  133. package/lib/components/z-auth/auth.d.ts +9 -9
  134. package/lib/components/z-auth/auth.js +1 -2
  135. package/lib/components/z-auth/index.d.ts +3 -3
  136. package/lib/components/z-auth/index.js +1 -2
  137. package/lib/components/z-box/box.d.ts +20 -20
  138. package/lib/components/z-box/box.js +1 -2
  139. package/lib/components/z-box/index.d.ts +3 -3
  140. package/lib/components/z-box/index.js +1 -2
  141. package/lib/components/z-box/index.less +4 -4
  142. package/lib/components/z-button/index.d.ts +3 -3
  143. package/lib/components/z-button/index.js +1 -2
  144. package/lib/components/z-button/z-button.d.ts +4 -4
  145. package/lib/components/z-button/z-button.js +4 -4
  146. package/lib/components/z-config-provider/configProvider.d.ts +4 -4
  147. package/lib/components/z-config-provider/configProvider.js +47 -7
  148. package/lib/components/z-config-provider/index.d.ts +3 -3
  149. package/lib/components/z-config-provider/index.js +1 -2
  150. package/lib/components/z-data-table/data-table.d.ts +9 -0
  151. package/lib/components/z-data-table/data-table.js +27 -0
  152. package/lib/components/z-data-table/index.d.ts +3 -0
  153. package/lib/components/z-data-table/index.js +7 -0
  154. package/lib/components/z-div/div.d.ts +6 -6
  155. package/lib/components/z-div/div.js +1 -2
  156. package/lib/components/z-div/index.d.ts +2 -2
  157. package/lib/components/z-div/index.js +1 -2
  158. package/lib/components/z-editTable/editTable.d.ts +11 -11
  159. package/lib/components/z-editTable/editTable.js +7 -9
  160. package/lib/components/z-editTable/index.d.ts +2 -2
  161. package/lib/components/z-editTable/index.js +1 -2
  162. package/lib/components/z-form/index.d.ts +3 -3
  163. package/lib/components/z-form/index.js +1 -2
  164. package/lib/components/z-form/z-form.d.ts +10 -10
  165. package/lib/components/z-form/z-form.js +5 -6
  166. package/lib/components/z-list/index.d.ts +3 -3
  167. package/lib/components/z-list/index.js +1 -2
  168. package/lib/components/z-list/list.d.ts +17 -17
  169. package/lib/components/z-list/list.js +7 -8
  170. package/lib/components/z-operation-records/index.d.ts +3 -3
  171. package/lib/components/z-operation-records/index.js +1 -2
  172. package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
  173. package/lib/components/z-operation-records/operationRecords.js +3 -4
  174. package/lib/components/z-pointer-block/index.d.ts +3 -3
  175. package/lib/components/z-pointer-block/index.js +1 -2
  176. package/lib/components/z-pointer-block/index.less +15 -15
  177. package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  178. package/lib/components/z-pointer-block/z-pointer-block.js +1 -2
  179. package/lib/components/z-preview/index.d.ts +3 -3
  180. package/lib/components/z-preview/index.js +1 -2
  181. package/lib/components/z-preview/preview.d.ts +4 -4
  182. package/lib/components/z-preview/preview.js +3 -4
  183. package/lib/components/z-pro-provider/index.d.ts +3 -3
  184. package/lib/components/z-pro-provider/index.js +1 -2
  185. package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  186. package/lib/components/z-pro-provider/z-pro-provider.js +3 -4
  187. package/lib/components/z-ranking-list/index.d.ts +2 -2
  188. package/lib/components/z-ranking-list/index.js +1 -2
  189. package/lib/components/z-ranking-list/index.less +49 -49
  190. package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  191. package/lib/components/z-ranking-list/z-ranking-list.js +5 -7
  192. package/lib/components/z-simple-bar/index.d.ts +3 -3
  193. package/lib/components/z-simple-bar/index.js +1 -2
  194. package/lib/components/z-simple-bar/index.less +9 -9
  195. package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  196. package/lib/components/z-simple-bar/z-simple-bar.js +1 -2
  197. package/lib/components/z-singleFactory/index.d.ts +2 -2
  198. package/lib/components/z-singleFactory/index.js +1 -2
  199. package/lib/components/z-singleFactory/zSingerFactory.d.ts +2 -3
  200. package/lib/components/z-singleFactory/zSingerFactory.js +3 -4
  201. package/lib/components/z-slick/index.d.ts +3 -0
  202. package/lib/components/z-slick/index.js +7 -0
  203. package/lib/components/z-slick/slick.d.ts +47 -0
  204. package/lib/components/z-slick/slick.js +39 -0
  205. package/lib/components/z-statistic/index.d.ts +3 -3
  206. package/lib/components/z-statistic/index.js +1 -2
  207. package/lib/components/z-statistic/index.less +22 -22
  208. package/lib/components/z-statistic/z-statistic.d.ts +13 -13
  209. package/lib/components/z-statistic/z-statistic.js +1 -2
  210. package/lib/components/z-table/index.d.ts +3 -3
  211. package/lib/components/z-table/index.js +1 -2
  212. package/lib/components/z-table/table.d.ts +8 -8
  213. package/lib/components/z-table/table.js +5 -6
  214. package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
  215. package/lib/components/z-templates-data-common/components/chart-renderer/index.js +36 -17
  216. package/lib/components/z-templates-data-common/data-common.d.ts +20 -105
  217. package/lib/components/z-templates-data-common/data-common.helper.d.ts +2 -61
  218. package/lib/components/z-templates-data-common/data-common.helper.js +3 -351
  219. package/lib/components/z-templates-data-common/data-common.js +85 -66
  220. package/lib/components/z-templates-data-common/index.d.ts +3 -3
  221. package/lib/components/z-templates-data-common/index.js +1 -2
  222. package/lib/components/z-tpl/index.d.ts +3 -3
  223. package/lib/components/z-tpl/index.js +1 -2
  224. package/lib/components/z-tpl/tpl.d.ts +23 -23
  225. package/lib/components/z-tpl/tpl.js +7 -8
  226. package/lib/components/z-warehouse/index.d.ts +2 -2
  227. package/lib/components/z-warehouse/index.js +1 -2
  228. package/lib/components/z-warehouse/zWarehouse.d.ts +2 -3
  229. package/lib/components/z-warehouse/zWarehouse.js +3 -4
  230. package/lib/components/z-watermark/index.d.ts +3 -0
  231. package/lib/components/z-watermark/index.js +7 -0
  232. package/lib/components/z-watermark/zWatermark.d.ts +3 -0
  233. package/lib/components/z-watermark/zWatermark.js +8 -0
  234. package/lib/index.d.ts +44 -38
  235. package/lib/index.js +8 -2
  236. package/lib/index.scss +1 -1
  237. package/lib/style.js +1 -3
  238. package/lib/utils/hoc.d.ts +6 -6
  239. package/lib/utils/hoc.js +3 -3
  240. package/lib/utils/index.d.ts +13 -13
  241. package/lib/utils/index.js +7 -4
  242. package/lib/utils/props/button.d.ts +13 -13
  243. package/lib/utils/props/button.js +2 -3
  244. package/lib/utils/props/common.d.ts +7 -1
  245. package/lib/utils/props/common.js +19 -3
  246. package/lib/utils/props/editTable.d.ts +3 -3
  247. package/lib/utils/props/editTable.js +23 -17
  248. package/lib/utils/props/form.d.ts +36 -0
  249. package/lib/utils/props/form.js +35 -17
  250. package/lib/utils/props/listTpl.d.ts +29 -29
  251. package/lib/utils/props/listTpl.js +2 -3
  252. package/lib/utils/props/microModal.d.ts +7 -7
  253. package/lib/utils/props/microModal.js +1 -3
  254. package/lib/utils/props/microSwitch.d.ts +1 -1
  255. package/lib/utils/props/microSwitch.js +5 -4
  256. package/lib/utils/props/modalSelect.d.ts +6 -6
  257. package/lib/utils/props/modalSelect.js +2 -4
  258. package/lib/utils/props/operationRecords.d.ts +2 -2
  259. package/lib/utils/props/operationRecords.js +6 -7
  260. package/lib/utils/props/preview.d.ts +2 -2
  261. package/lib/utils/props/preview.js +6 -7
  262. package/lib/utils/props/tpl.d.ts +173 -162
  263. package/lib/utils/props/tpl.js +3 -5
  264. package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
  265. package/lib/utils/props/warehouseAndFactory.js +2 -3
  266. package/lib/utils/rcProRequest.d.ts +3 -3
  267. package/lib/utils/rcProRequest.js +3 -4
  268. package/lib/variables.scss +3 -3
  269. package/package.json +5 -5
  270. package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
  271. package/es/components/z-templates-data-common/components/custom-renderer/index.js +0 -172
  272. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
  273. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -1
  274. package/es/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
  275. package/es/components/z-templates-data-common/components/dim-target/index.js +0 -430
  276. package/es/components/z-templates-data-common/components/dim-target/index.less +0 -49
  277. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
  278. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -26
  279. package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
  280. package/es/components/z-templates-data-common/components/link-renderer/index.js +0 -320
  281. package/es/components/z-templates-data-common/components/link-renderer/index.less +0 -33
  282. package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
  283. package/es/components/z-templates-data-common/components/table-renderer/index.js +0 -481
  284. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
  285. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -220
  286. package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
  287. package/lib/components/z-templates-data-common/components/custom-renderer/index.js +0 -178
  288. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
  289. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -3
  290. package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
  291. package/lib/components/z-templates-data-common/components/dim-target/index.js +0 -438
  292. package/lib/components/z-templates-data-common/components/dim-target/index.less +0 -49
  293. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
  294. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -30
  295. package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
  296. package/lib/components/z-templates-data-common/components/link-renderer/index.js +0 -326
  297. package/lib/components/z-templates-data-common/components/link-renderer/index.less +0 -33
  298. package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
  299. package/lib/components/z-templates-data-common/components/table-renderer/index.js +0 -487
  300. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
  301. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -229
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
- declare const ZEllipsis: React.FC<ProEllipsisProps>;
4
- export default ZEllipsis;
1
+ import * as React from 'react';
2
+ import type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
+ declare const ZEllipsis: React.FC<ProEllipsisProps>;
4
+ export default ZEllipsis;
@@ -1,3 +1,3 @@
1
- import ZEllipsis from './ellipsis';
2
- export type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
- export default ZEllipsis;
1
+ import ZEllipsis from './ellipsis';
2
+ export type { ProEllipsisProps } from '@ztocwst/rc-pro';
3
+ export default ZEllipsis;
@@ -1,3 +1,3 @@
1
- import ZAggBlock from './z-agg-block';
2
- export type { TypeAggBlockProps } from './z-agg-block';
3
- export default ZAggBlock;
1
+ import ZAggBlock from './z-agg-block';
2
+ export type { TypeAggBlockProps } from './z-agg-block';
3
+ export default ZAggBlock;
@@ -1,134 +1,134 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
-
4
- .pointer-block-wrap {
5
- box-shadow: 0px 4px 16px 2px rgba(0, 0, 0, 0.1);
6
- border-radius: 8px;
7
- padding: 16px;
8
- overflow: hidden;
9
- transition: all 0.3s ease-in 0s;
10
-
11
- &.animate:hover {
12
- position: relative;
13
- z-index: 99;
14
- transform: scale(1.05);
15
- transition: all 0.3s ease-in;
16
- }
17
- }
18
-
19
- .pointer-block-title {
20
- display: flex;
21
- // color: #487ffb;
22
- // color: @primary-color;
23
- color: var(--ant-primary-color, @primary-color);
24
-
25
- .ant-typography {
26
- color: inherit;
27
- }
28
- }
29
-
30
- .pointer-block-title-l {
31
- flex: 1;
32
-
33
- .title {
34
- font-size: 16px;
35
- }
36
-
37
- .sub-title {
38
- font-size: 24px;
39
- }
40
-
41
- img {
42
- width: 80px;
43
- height: 80px;
44
- }
45
- }
46
-
47
- .pointer-block-content {
48
- margin-top: 10px;
49
- display: grid;
50
- grid-gap: 10px;
51
- grid-template-columns: repeat(1, 1fr);
52
-
53
- .z-pointer-block {
54
- border: 0;
55
- transition: all 0.3s ease-in 0s;
56
- }
57
-
58
- .z-pointer-block.animate:hover {
59
- box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.1);
60
- transform: scale(1.05);
61
- transition: all 0.3s ease-in;
62
- }
63
-
64
- // 流程指标块
65
- &.process .z-pointer-block-panel,
66
- &.process > * {
67
- position: relative;
68
-
69
- &::before {
70
- position: absolute;
71
- top: -6px;
72
- // left: -20px;
73
- left: 0;
74
- display: inline-block;
75
- width: 104%;
76
- height: 1px;
77
- background: #e5e5e5;
78
- content: '';
79
- }
80
-
81
- &:first-child::before {
82
- left: 0;
83
- }
84
-
85
- &::after {
86
- position: absolute;
87
- top: -10px;
88
- left: -10px;
89
- display: inline-block;
90
- width: 10px;
91
- height: 10px;
92
- background: #fff;
93
- // border: 2px solid @primary-color;
94
- border: 2px solid var(--ant-primary-color, @primary-color);
95
- border-radius: 50%;
96
- content: '';
97
- }
98
- }
99
-
100
- // 纵向
101
- &.vertical .z-pointer-block-panel,
102
- &.vertical > * {
103
- &::before {
104
- position: absolute;
105
- // top: -20px;
106
- top: 0;
107
- left: -6px;
108
- display: inline-block;
109
- width: 1px;
110
- height: 110%;
111
- background: #e5e5e5;
112
- content: '';
113
- }
114
-
115
- &:first-child::before {
116
- top: 0;
117
- left: -6px;
118
- }
119
-
120
- &::after {
121
- position: absolute;
122
- top: -10px;
123
- left: -10px;
124
- display: inline-block;
125
- width: 10px;
126
- height: 10px;
127
- background: #fff;
128
- // border: 2px solid @primary-color;
129
- border: 2px solid var(--ant-primary-color, @primary-color);
130
- border-radius: 50%;
131
- content: '';
132
- }
133
- }
134
- }
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .pointer-block-wrap {
5
+ box-shadow: 0px 4px 16px 2px rgba(0, 0, 0, 0.1);
6
+ border-radius: 8px;
7
+ padding: 16px;
8
+ overflow: hidden;
9
+ transition: all 0.3s ease-in 0s;
10
+
11
+ &.animate:hover {
12
+ position: relative;
13
+ z-index: 99;
14
+ transform: scale(1.05);
15
+ transition: all 0.3s ease-in;
16
+ }
17
+ }
18
+
19
+ .pointer-block-title {
20
+ display: flex;
21
+ // color: #487ffb;
22
+ // color: @primary-color;
23
+ color: var(--ant-primary-color, @primary-color);
24
+
25
+ .ant-typography {
26
+ color: inherit;
27
+ }
28
+ }
29
+
30
+ .pointer-block-title-l {
31
+ flex: 1;
32
+
33
+ .title {
34
+ font-size: 16px;
35
+ }
36
+
37
+ .sub-title {
38
+ font-size: 24px;
39
+ }
40
+
41
+ img {
42
+ width: 80px;
43
+ height: 80px;
44
+ }
45
+ }
46
+
47
+ .pointer-block-content {
48
+ margin-top: 10px;
49
+ display: grid;
50
+ grid-gap: 10px;
51
+ grid-template-columns: repeat(1, 1fr);
52
+
53
+ .z-pointer-block {
54
+ border: 0;
55
+ transition: all 0.3s ease-in 0s;
56
+ }
57
+
58
+ .z-pointer-block.animate:hover {
59
+ box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.1);
60
+ transform: scale(1.05);
61
+ transition: all 0.3s ease-in;
62
+ }
63
+
64
+ // 流程指标块
65
+ &.process .z-pointer-block-panel,
66
+ &.process > * {
67
+ position: relative;
68
+
69
+ &::before {
70
+ position: absolute;
71
+ top: -6px;
72
+ // left: -20px;
73
+ left: 0;
74
+ display: inline-block;
75
+ width: 104%;
76
+ height: 1px;
77
+ background: #e5e5e5;
78
+ content: '';
79
+ }
80
+
81
+ &:first-child::before {
82
+ left: 0;
83
+ }
84
+
85
+ &::after {
86
+ position: absolute;
87
+ top: -10px;
88
+ left: -10px;
89
+ display: inline-block;
90
+ width: 10px;
91
+ height: 10px;
92
+ background: #fff;
93
+ // border: 2px solid @primary-color;
94
+ border: 2px solid var(--ant-primary-color, @primary-color);
95
+ border-radius: 50%;
96
+ content: '';
97
+ }
98
+ }
99
+
100
+ // 纵向
101
+ &.vertical .z-pointer-block-panel,
102
+ &.vertical > * {
103
+ &::before {
104
+ position: absolute;
105
+ // top: -20px;
106
+ top: 0;
107
+ left: -6px;
108
+ display: inline-block;
109
+ width: 1px;
110
+ height: 110%;
111
+ background: #e5e5e5;
112
+ content: '';
113
+ }
114
+
115
+ &:first-child::before {
116
+ top: 0;
117
+ left: -6px;
118
+ }
119
+
120
+ &::after {
121
+ position: absolute;
122
+ top: -10px;
123
+ left: -10px;
124
+ display: inline-block;
125
+ width: 10px;
126
+ height: 10px;
127
+ background: #fff;
128
+ // border: 2px solid @primary-color;
129
+ border: 2px solid var(--ant-primary-color, @primary-color);
130
+ border-radius: 50%;
131
+ content: '';
132
+ }
133
+ }
134
+ }
@@ -1,27 +1,27 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { TypeZPointerBlockProps } from '../z-pointer-block';
4
- export interface TypeAggBlockProps {
5
- /** 背景色 */
6
- color?: {
7
- start: string;
8
- end: string;
9
- };
10
- /** 标题 */
11
- title?: React.ReactNode;
12
- /** 副标题 */
13
- subTitle?: React.ReactNode;
14
- /** 额外附属配置 */
15
- extra?: React.ReactNode;
16
- style?: React.CSSProperties;
17
- /** 流程指标 */
18
- process?: boolean;
19
- /** 方向:横向 | 纵向 */
20
- direction?: 'horizontal' | 'vertical';
21
- /** 一行几列 */
22
- column?: number;
23
- items?: TypeZPointerBlockProps[] | React.ReactNode;
24
- onClick?: (item: any) => void;
25
- }
26
- declare const ZAggBlock: React.FC<TypeAggBlockProps>;
27
- export default ZAggBlock;
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { TypeZPointerBlockProps } from '../z-pointer-block';
4
+ export interface TypeAggBlockProps {
5
+ /** 背景色 */
6
+ color?: {
7
+ start: string;
8
+ end: string;
9
+ };
10
+ /** 标题 */
11
+ title?: React.ReactNode;
12
+ /** 副标题 */
13
+ subTitle?: React.ReactNode;
14
+ /** 额外附属配置 */
15
+ extra?: React.ReactNode;
16
+ style?: React.CSSProperties;
17
+ /** 流程指标 */
18
+ process?: boolean;
19
+ /** 方向:横向 | 纵向 */
20
+ direction?: 'horizontal' | 'vertical';
21
+ /** 一行几列 */
22
+ column?: number;
23
+ items?: TypeZPointerBlockProps[] | React.ReactNode;
24
+ onClick?: (item: any) => void;
25
+ }
26
+ declare const ZAggBlock: React.FC<TypeAggBlockProps>;
27
+ export default ZAggBlock;
@@ -45,7 +45,7 @@ var ZAggBlock = function ZAggBlock(_ref) {
45
45
  gridTemplateColumns: "repeat(" + (column || 1) + ", 1fr)"
46
46
  }
47
47
  }, /*#__PURE__*/React.isValidElement(rest.items) ? rest.items : (_rest$items = rest.items) === null || _rest$items === void 0 ? void 0 : _rest$items.map(function (e, index) {
48
- if ( /*#__PURE__*/React.isValidElement(e)) {
48
+ if (/*#__PURE__*/React.isValidElement(e)) {
49
49
  // todo 统一处理点击事件
50
50
  return e;
51
51
  }
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- export interface TypeAuthProps {
3
- /** 权限编码集合 */
4
- authCodes?: string[];
5
- /** 编码 */
6
- code: string;
7
- }
8
- declare const Auth: React.FC<TypeAuthProps>;
9
- export default Auth;
1
+ import React from 'react';
2
+ export interface TypeAuthProps {
3
+ /** 权限编码集合 */
4
+ authCodes?: string[];
5
+ /** 编码 */
6
+ code: string;
7
+ }
8
+ declare const Auth: React.FC<TypeAuthProps>;
9
+ export default Auth;
@@ -1,3 +1,3 @@
1
- import ZAuth from './auth';
2
- export type { TypeAuthProps } from './auth';
3
- export default ZAuth;
1
+ import ZAuth from './auth';
2
+ export type { TypeAuthProps } from './auth';
3
+ export default ZAuth;
@@ -1,20 +1,20 @@
1
- import { CSSProperties } from 'react';
2
- import './index.less';
3
- export interface TypeZBoxProps {
4
- /** 对齐方向 */
5
- direction: 'column' | 'row';
6
- /** 主轴对齐 */
7
- justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
8
- /** 交叉轴对齐 */
9
- align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
10
- /** 宽度 */
11
- width: '' | '100%';
12
- /** 间距 */
13
- spacing: number;
14
- style?: CSSProperties;
15
- className?: string;
16
- /** 是否换行 */
17
- wrap: 'wrap' | 'nowrap';
18
- }
19
- declare const ZBox: React.FC<TypeZBoxProps>;
20
- export default ZBox;
1
+ import { CSSProperties } from 'react';
2
+ import './index.less';
3
+ export interface TypeZBoxProps {
4
+ /** 对齐方向 */
5
+ direction: 'column' | 'row';
6
+ /** 主轴对齐 */
7
+ justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
8
+ /** 交叉轴对齐 */
9
+ align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
10
+ /** 宽度 */
11
+ width: '' | '100%';
12
+ /** 间距 */
13
+ spacing: number;
14
+ style?: CSSProperties;
15
+ className?: string;
16
+ /** 是否换行 */
17
+ wrap: 'wrap' | 'nowrap';
18
+ }
19
+ declare const ZBox: React.FC<TypeZBoxProps>;
20
+ export default ZBox;
@@ -1,3 +1,3 @@
1
- import ZBox from './box';
2
- export type { TypeZBoxProps } from './box';
3
- export default ZBox;
1
+ import ZBox from './box';
2
+ export type { TypeZBoxProps } from './box';
3
+ export default ZBox;
@@ -1,4 +1,4 @@
1
- .rc-z-box {
2
- box-sizing: border-box;
3
- display: flex;
4
- }
1
+ .rc-z-box {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ }
@@ -1,3 +1,3 @@
1
- import ZButton from './z-button';
2
- export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
3
- export default ZButton;
1
+ import ZButton from './z-button';
2
+ export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
3
+ export default ZButton;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
3
- declare const ZButton: React.FC<ProButtonProps>;
4
- export default ZButton;
1
+ import * as React from 'react';
2
+ import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
3
+ declare const ZButton: React.FC<ProButtonProps>;
4
+ export default ZButton;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
3
- declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
4
- export default ZConfigProvider;
1
+ import * as React from 'react';
2
+ import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
3
+ declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
4
+ export default ZConfigProvider;
@@ -1,18 +1,39 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["children"],
4
- _excluded2 = ["authBtns", "singleWarehouseConfig", "singleFactoryConfig"];
4
+ _excluded2 = ["authBtns", "singleWarehouseConfig", "singleFactoryConfig", "asyncSelect", "form", "ossConfig", "print", "tableOptions", "tplOptions"];
5
5
  import * as React from 'react';
6
6
  import { RcConfigProvider } from '@ztocwst/rc-pro';
7
- import { processRequestConfig } from "../../utils/props/common";
7
+ import { processEmptyObject, processRequestConfig } from "../../utils/props/common";
8
8
  var ZConfigProvider = function ZConfigProvider(_ref) {
9
+ var _singleWarehouseConfi, _singleFactoryConfig$, _asyncSelect$fieldNam, _asyncSelect$pager, _form$footer, _print$printer, _tableOptions$paginat, _tableOptions$sortNam;
9
10
  var children = _ref.children,
10
11
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
11
12
  var _rest$authBtns = rest.authBtns,
12
13
  authBtns = _rest$authBtns === void 0 ? [] : _rest$authBtns,
13
14
  singleWarehouseConfig = rest.singleWarehouseConfig,
14
15
  singleFactoryConfig = rest.singleFactoryConfig,
16
+ asyncSelect = rest.asyncSelect,
17
+ form = rest.form,
18
+ ossConfig = rest.ossConfig,
19
+ print = rest.print,
20
+ tableOptions = rest.tableOptions,
21
+ tplOptions = rest.tplOptions,
15
22
  restProps = _objectWithoutPropertiesLoose(rest, _excluded2);
23
+
24
+ /**
25
+ *
26
+ * 过滤空对象,如果对象中的值都是undefined,整个对象赋值 undefined
27
+ * asyncSelect 中的 fieldNames、pager 对象
28
+ * form 中的 footer对象
29
+ * ossConfig 对象
30
+ * print 中的 printer
31
+ * tableOptions 中的 pagination、sortNames
32
+ * tplOptions 对象
33
+ * singleWarehouseConfig 中 defaultConfig
34
+ * singleFactoryConfig 中 defaultConfig
35
+ */
36
+
16
37
  var props = _extends({
17
38
  authBtns: authBtns === null || authBtns === void 0 ? void 0 : authBtns.map(function (e) {
18
39
  return _extends({}, e, {
@@ -21,10 +42,30 @@ var ZConfigProvider = function ZConfigProvider(_ref) {
21
42
  }),
22
43
  singleWarehouseConfig: _extends({}, singleWarehouseConfig, singleWarehouseConfig !== null && singleWarehouseConfig !== void 0 && singleWarehouseConfig.requestConfig ? {
23
44
  requestConfig: processRequestConfig(singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.requestConfig)
24
- } : {}),
45
+ } : {}, {
46
+ defaultConfig: processEmptyObject((_singleWarehouseConfi = singleWarehouseConfig === null || singleWarehouseConfig === void 0 ? void 0 : singleWarehouseConfig.defaultConfig) !== null && _singleWarehouseConfi !== void 0 ? _singleWarehouseConfi : {})
47
+ }),
25
48
  singleFactoryConfig: _extends({}, singleFactoryConfig, singleFactoryConfig !== null && singleFactoryConfig !== void 0 && singleFactoryConfig.requestConfig ? {
26
49
  requestConfig: processRequestConfig(singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.requestConfig)
27
- } : {})
50
+ } : {}, {
51
+ defaultConfig: processEmptyObject((_singleFactoryConfig$ = singleFactoryConfig === null || singleFactoryConfig === void 0 ? void 0 : singleFactoryConfig.defaultConfig) !== null && _singleFactoryConfig$ !== void 0 ? _singleFactoryConfig$ : {})
52
+ }),
53
+ asyncSelect: _extends({}, asyncSelect, {
54
+ fieldNames: processEmptyObject((_asyncSelect$fieldNam = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.fieldNames) !== null && _asyncSelect$fieldNam !== void 0 ? _asyncSelect$fieldNam : {}),
55
+ pager: processEmptyObject((_asyncSelect$pager = asyncSelect === null || asyncSelect === void 0 ? void 0 : asyncSelect.pager) !== null && _asyncSelect$pager !== void 0 ? _asyncSelect$pager : {})
56
+ }),
57
+ form: _extends({}, form, {
58
+ footer: processEmptyObject((_form$footer = form === null || form === void 0 ? void 0 : form.footer) !== null && _form$footer !== void 0 ? _form$footer : {})
59
+ }),
60
+ ossConfig: processEmptyObject(ossConfig !== null && ossConfig !== void 0 ? ossConfig : {}),
61
+ print: _extends({}, print, {
62
+ printer: processEmptyObject((_print$printer = print === null || print === void 0 ? void 0 : print.printer) !== null && _print$printer !== void 0 ? _print$printer : {})
63
+ }),
64
+ tableOptions: _extends({}, tableOptions, {
65
+ pagination: processEmptyObject((_tableOptions$paginat = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.pagination) !== null && _tableOptions$paginat !== void 0 ? _tableOptions$paginat : {}),
66
+ sortNames: processEmptyObject((_tableOptions$sortNam = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.sortNames) !== null && _tableOptions$sortNam !== void 0 ? _tableOptions$sortNam : {})
67
+ }),
68
+ tplOptions: processEmptyObject(tplOptions !== null && tplOptions !== void 0 ? tplOptions : {})
28
69
  }, restProps);
29
70
  console.log(props, 'configProvider');
30
71
  return /*#__PURE__*/React.createElement(RcConfigProvider, props, children);
@@ -1,3 +1,3 @@
1
- import ZConfigProvider from './configProvider';
2
- export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
3
- export default ZConfigProvider;
1
+ import ZConfigProvider from './configProvider';
2
+ export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
3
+ export default ZConfigProvider;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { DataTableProps } from '@ztocwst/rc-pro';
3
+ /** 表格相关配置 */
4
+ export type TypeZDataTableProps = DataTableProps;
5
+ export default class ZDataTableContainer extends React.Component<TypeZDataTableProps, any> {
6
+ chartRef: any;
7
+ constructor(props: TypeZDataTableProps);
8
+ render(): JSX.Element;
9
+ }
@@ -0,0 +1,24 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
3
+ import React from 'react';
4
+ import { DataTable } from '@ztocwst/rc-pro';
5
+
6
+ /** 表格相关配置 */
7
+ var ZDataTableContainer = /*#__PURE__*/function (_React$Component) {
8
+ function ZDataTableContainer(props) {
9
+ var _this;
10
+ _this = _React$Component.call(this, props) || this;
11
+ _this.chartRef = void 0;
12
+ _this.chartRef = /*#__PURE__*/React.createRef();
13
+ return _this;
14
+ }
15
+ _inheritsLoose(ZDataTableContainer, _React$Component);
16
+ var _proto = ZDataTableContainer.prototype;
17
+ _proto.render = function render() {
18
+ return /*#__PURE__*/React.createElement(DataTable, _extends({}, this.props, {
19
+ ref: this.chartRef
20
+ }));
21
+ };
22
+ return ZDataTableContainer;
23
+ }(React.Component);
24
+ export { ZDataTableContainer as default };
@@ -0,0 +1,3 @@
1
+ import ZDataTable from './data-table';
2
+ export type { TypeZDataTableProps } from './data-table';
3
+ export default ZDataTable;
@@ -0,0 +1,2 @@
1
+ import ZDataTable from "./data-table";
2
+ export default ZDataTable;
@@ -1,6 +1,6 @@
1
- import { CSSProperties } from 'react';
2
- declare const ZDiv: import("react").ForwardRefExoticComponent<{
3
- className?: string;
4
- style: CSSProperties;
5
- } & import("react").RefAttributes<HTMLDivElement>>;
6
- export default ZDiv;
1
+ import { CSSProperties } from 'react';
2
+ declare const ZDiv: import("react").ForwardRefExoticComponent<{
3
+ className?: string;
4
+ style: CSSProperties;
5
+ } & import("react").RefAttributes<HTMLDivElement>>;
6
+ export default ZDiv;
@@ -1,2 +1,2 @@
1
- import ZDiv from './div';
2
- export default ZDiv;
1
+ import ZDiv from './div';
2
+ export default ZDiv;
@@ -1,11 +1,11 @@
1
- /**
2
- * rcEditTable
3
- */
4
- import * as React from 'react';
5
- export default class ZRcEditTable extends React.Component {
6
- proEditableFormRef: any;
7
- editableFormRef: any;
8
- constructor(props: any);
9
- getProEditableFormRefRef: () => any;
10
- render(): React.JSX.Element;
11
- }
1
+ /**
2
+ * rcEditTable
3
+ */
4
+ import * as React from 'react';
5
+ export default class ZRcEditTable extends React.Component {
6
+ proEditableFormRef: any;
7
+ editableFormRef: any;
8
+ constructor(props: any);
9
+ getProEditableFormRefRef: () => any;
10
+ render(): JSX.Element;
11
+ }