@cuvp1225/antd 0.1.19 → 0.1.21-pub-beta.3

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 (495) hide show
  1. package/dist/designer.js +1142 -145
  2. package/dist/index.js +1186 -262
  3. package/lib/cjs/components/LineChart.js +0 -1
  4. package/lib/cjs/components/affix.d.ts +1 -1
  5. package/lib/cjs/components/affix.js +2 -4
  6. package/lib/cjs/components/alert.d.ts +1 -1
  7. package/lib/cjs/components/alert.js +4 -6
  8. package/lib/cjs/components/anchor.d.ts +15 -2
  9. package/lib/cjs/components/anchor.js +18 -43
  10. package/lib/cjs/components/auto-complete.d.ts +1 -1
  11. package/lib/cjs/components/auto-complete.js +4 -6
  12. package/lib/cjs/components/avatar.d.ts +1 -1
  13. package/lib/cjs/components/avatar.js +4 -6
  14. package/lib/cjs/components/backTop.d.ts +6 -0
  15. package/lib/cjs/components/backTop.js +17 -0
  16. package/lib/cjs/components/badge.d.ts +1 -1
  17. package/lib/cjs/components/badge.js +5 -10
  18. package/lib/cjs/components/box.d.ts +1 -1
  19. package/lib/cjs/components/box.js +2 -2
  20. package/lib/cjs/components/breadcrumb.d.ts +16 -2
  21. package/lib/cjs/components/breadcrumb.js +18 -7
  22. package/lib/cjs/components/button.d.ts +3 -3
  23. package/lib/cjs/components/button.js +3 -29
  24. package/lib/cjs/components/calendar.d.ts +1 -1
  25. package/lib/cjs/components/calendar.js +4 -6
  26. package/lib/cjs/components/card.d.ts +1 -1
  27. package/lib/cjs/components/card.js +4 -6
  28. package/lib/cjs/components/carousel.d.ts +4 -1
  29. package/lib/cjs/components/carousel.js +12 -27
  30. package/lib/cjs/components/cascader.d.ts +2 -2
  31. package/lib/cjs/components/cascader.js +2 -3
  32. package/lib/cjs/components/checkbox.d.ts +4 -3
  33. package/lib/cjs/components/checkbox.js +10 -29
  34. package/lib/cjs/components/collapse.d.ts +15 -2
  35. package/lib/cjs/components/collapse.js +22 -31
  36. package/lib/cjs/components/columns.d.ts +2 -2
  37. package/lib/cjs/components/columns.js +3 -3
  38. package/lib/cjs/components/comment.d.ts +1 -1
  39. package/lib/cjs/components/comment.js +5 -9
  40. package/lib/cjs/components/date-picker.d.ts +1 -1
  41. package/lib/cjs/components/date-picker.js +4 -66
  42. package/lib/cjs/components/descriptions.d.ts +1 -5
  43. package/lib/cjs/components/descriptions.js +9 -58
  44. package/lib/cjs/components/divider.d.ts +1 -1
  45. package/lib/cjs/components/divider.js +4 -6
  46. package/lib/cjs/components/drawer.d.ts +1 -1
  47. package/lib/cjs/components/drawer.js +2 -2
  48. package/lib/cjs/components/dropdown.d.ts +6 -2
  49. package/lib/cjs/components/dropdown.js +10 -8
  50. package/lib/cjs/components/each.d.ts +1 -1
  51. package/lib/cjs/components/each.js +2 -2
  52. package/lib/cjs/components/empty.d.ts +1 -1
  53. package/lib/cjs/components/empty.js +4 -6
  54. package/lib/cjs/components/form.d.ts +4 -4
  55. package/lib/cjs/components/form.js +5 -5
  56. package/lib/cjs/components/formily.d.ts +4 -4
  57. package/lib/cjs/components/formily.js +6 -6
  58. package/lib/cjs/components/icon.d.ts +1 -1
  59. package/lib/cjs/components/icon.js +2 -28
  60. package/lib/cjs/components/image.d.ts +1 -1
  61. package/lib/cjs/components/image.js +4 -7
  62. package/lib/cjs/components/index.d.ts +21 -1
  63. package/lib/cjs/components/index.js +46 -11
  64. package/lib/cjs/components/input-number.d.ts +1 -1
  65. package/lib/cjs/components/input-number.js +2 -21
  66. package/lib/cjs/components/input.d.ts +6 -3
  67. package/lib/cjs/components/input.js +23 -12
  68. package/lib/cjs/components/list.d.ts +2 -2
  69. package/lib/cjs/components/list.js +3 -3
  70. package/lib/cjs/components/mentions.d.ts +1 -1
  71. package/lib/cjs/components/mentions.js +4 -6
  72. package/lib/cjs/components/menu.d.ts +2 -2
  73. package/lib/cjs/components/menu.js +3 -3
  74. package/lib/cjs/components/modal.d.ts +1 -1
  75. package/lib/cjs/components/modal.js +2 -2
  76. package/lib/cjs/components/page.d.ts +1 -1
  77. package/lib/cjs/components/page.js +2 -2
  78. package/lib/cjs/components/pageheader.d.ts +1 -1
  79. package/lib/cjs/components/pageheader.js +4 -21
  80. package/lib/cjs/components/pagination.d.ts +1 -1
  81. package/lib/cjs/components/pagination.js +4 -6
  82. package/lib/cjs/components/placeholder.d.ts +11 -3
  83. package/lib/cjs/components/placeholder.js +47 -16
  84. package/lib/cjs/components/popconfirm.d.ts +4 -1
  85. package/lib/cjs/components/popconfirm.js +13 -36
  86. package/lib/cjs/components/popover.d.ts +4 -1
  87. package/lib/cjs/components/popover.js +13 -36
  88. package/lib/cjs/components/progress.d.ts +1 -1
  89. package/lib/cjs/components/progress.js +4 -4
  90. package/lib/cjs/components/radio.d.ts +4 -3
  91. package/lib/cjs/components/radio.js +13 -37
  92. package/lib/cjs/components/rate.d.ts +1 -1
  93. package/lib/cjs/components/rate.js +4 -21
  94. package/lib/cjs/components/result.d.ts +1 -1
  95. package/lib/cjs/components/result.js +4 -6
  96. package/lib/cjs/components/result1.js +2 -3
  97. package/lib/cjs/components/result2.d.ts +4 -2
  98. package/lib/cjs/components/result2.js +19 -4
  99. package/lib/cjs/components/result3.js +0 -1
  100. package/lib/cjs/components/row-back.d.ts +1 -1
  101. package/lib/cjs/components/row-back.js +6 -8
  102. package/lib/cjs/components/row.d.ts +1 -1
  103. package/lib/cjs/components/row.js +2 -3
  104. package/lib/cjs/components/section.d.ts +1 -1
  105. package/lib/cjs/components/section.js +2 -2
  106. package/lib/cjs/components/select.d.ts +1 -1
  107. package/lib/cjs/components/select.js +2 -21
  108. package/lib/cjs/components/skeleton.d.ts +1 -1
  109. package/lib/cjs/components/skeleton.js +4 -21
  110. package/lib/cjs/components/slider.d.ts +1 -1
  111. package/lib/cjs/components/slider.js +4 -21
  112. package/lib/cjs/components/space.d.ts +1 -1
  113. package/lib/cjs/components/space.js +2 -2
  114. package/lib/cjs/components/spin.d.ts +1 -1
  115. package/lib/cjs/components/spin.js +4 -6
  116. package/lib/cjs/components/statistic.js +3 -72
  117. package/lib/cjs/components/steps.d.ts +11 -0
  118. package/lib/cjs/components/steps.js +17 -0
  119. package/lib/cjs/components/switch.d.ts +1 -1
  120. package/lib/cjs/components/switch.js +4 -4
  121. package/lib/cjs/components/table.d.ts +1 -1
  122. package/lib/cjs/components/table.js +4 -4
  123. package/lib/cjs/components/table1.d.ts +4 -2
  124. package/lib/cjs/components/table1.js +3 -6
  125. package/lib/cjs/components/tabs.d.ts +1 -1
  126. package/lib/cjs/components/tabs.js +6 -7
  127. package/lib/cjs/components/tag.d.ts +1 -1
  128. package/lib/cjs/components/tag.js +4 -6
  129. package/lib/cjs/components/tango-event-button.d.ts +1 -1
  130. package/lib/cjs/components/tango-event-button.js +2 -2
  131. package/lib/cjs/components/time-picker.d.ts +1 -1
  132. package/lib/cjs/components/time-picker.js +4 -4
  133. package/lib/cjs/components/timeline.d.ts +2 -2
  134. package/lib/cjs/components/timeline.js +3 -39
  135. package/lib/cjs/components/timeline1.js +0 -21
  136. package/lib/cjs/components/tooltip.d.ts +5 -1
  137. package/lib/cjs/components/tooltip.js +13 -36
  138. package/lib/cjs/components/transfer.d.ts +1 -1
  139. package/lib/cjs/components/transfer.js +4 -21
  140. package/lib/cjs/components/tree-select.d.ts +1 -1
  141. package/lib/cjs/components/tree-select.js +4 -4
  142. package/lib/cjs/components/tree.d.ts +1 -1
  143. package/lib/cjs/components/tree.js +4 -4
  144. package/lib/cjs/components/typography.d.ts +3 -3
  145. package/lib/cjs/components/typography.js +5 -5
  146. package/lib/cjs/components/unSteps/unisteps.d.ts +17 -0
  147. package/lib/cjs/components/unSteps/unisteps.js +95 -0
  148. package/lib/cjs/components/uniButton/unibutton.d.ts +8 -0
  149. package/lib/cjs/components/uniButton/unibutton.js +65 -0
  150. package/lib/cjs/components/uniCascader/unicascader.d.ts +7 -0
  151. package/lib/cjs/components/uniCascader/unicascader.js +54 -0
  152. package/lib/cjs/components/uniModal/unimodal.d.ts +14 -0
  153. package/lib/cjs/components/uniModal/unimodal.js +46 -0
  154. package/lib/cjs/components/uniRadio/uniradio.d.ts +12 -0
  155. package/lib/cjs/components/uniRadio/uniradio.js +133 -0
  156. package/lib/cjs/components/uniSelect/uniselect.d.ts +7 -0
  157. package/lib/cjs/components/uniSelect/uniselect.js +44 -0
  158. package/lib/cjs/components/uniSwitch/uniswitch.d.ts +7 -0
  159. package/lib/cjs/components/uniSwitch/uniswitch.js +40 -0
  160. package/lib/cjs/components/uniTabs/unitabs.d.ts +17 -0
  161. package/lib/cjs/components/uniTabs/unitabs.js +87 -0
  162. package/lib/cjs/components/uniUpload/uniupload.d.ts +6 -0
  163. package/lib/cjs/components/uniUpload/uniupload.js +48 -0
  164. package/lib/cjs/components/upload.d.ts +4 -1
  165. package/lib/cjs/components/upload.js +13 -45
  166. package/lib/cjs/helpers/prototype-helper.d.ts +3 -3
  167. package/lib/cjs/helpers/slottype.d.ts +10 -0
  168. package/lib/cjs/helpers/slottype.js +13 -0
  169. package/lib/cjs/index.d.ts +0 -1
  170. package/lib/cjs/index.js +1 -1
  171. package/lib/cjs/prototypes/affix.d.ts +1 -1
  172. package/lib/cjs/prototypes/alert.d.ts +1 -1
  173. package/lib/cjs/prototypes/anchor.d.ts +1 -1
  174. package/lib/cjs/prototypes/auto-complete.d.ts +1 -1
  175. package/lib/cjs/prototypes/avatar.d.ts +1 -1
  176. package/lib/cjs/prototypes/back-top.d.ts +1 -1
  177. package/lib/cjs/prototypes/badge.d.ts +1 -1
  178. package/lib/cjs/prototypes/box.d.ts +1 -1
  179. package/lib/cjs/prototypes/breadcrumb.d.ts +1 -1
  180. package/lib/cjs/prototypes/button.d.ts +1 -1
  181. package/lib/cjs/prototypes/calendar.d.ts +1 -1
  182. package/lib/cjs/prototypes/card.d.ts +1 -1
  183. package/lib/cjs/prototypes/carousel.d.ts +1 -1
  184. package/lib/cjs/prototypes/cascader.d.ts +1 -1
  185. package/lib/cjs/prototypes/checkbox.d.ts +1 -1
  186. package/lib/cjs/prototypes/collapse.d.ts +1 -1
  187. package/lib/cjs/prototypes/columns.d.ts +1 -1
  188. package/lib/cjs/prototypes/comment.d.ts +1 -1
  189. package/lib/cjs/prototypes/common.d.ts +1 -1
  190. package/lib/cjs/prototypes/date-picker.d.ts +3 -3
  191. package/lib/cjs/prototypes/descriptions.d.ts +2 -2
  192. package/lib/cjs/prototypes/divider.d.ts +1 -1
  193. package/lib/cjs/prototypes/drawer.d.ts +1 -1
  194. package/lib/cjs/prototypes/dropdown.d.ts +1 -1
  195. package/lib/cjs/prototypes/each.d.ts +1 -1
  196. package/lib/cjs/prototypes/empty.d.ts +1 -1
  197. package/lib/cjs/prototypes/form.d.ts +1 -1
  198. package/lib/cjs/prototypes/formily.d.ts +1 -1
  199. package/lib/cjs/prototypes/grid.d.ts +1 -1
  200. package/lib/cjs/prototypes/icon.d.ts +1 -1
  201. package/lib/cjs/prototypes/iframe.d.ts +1 -1
  202. package/lib/cjs/prototypes/image.d.ts +1 -1
  203. package/lib/cjs/prototypes/index.d.ts +1 -0
  204. package/lib/cjs/prototypes/index.js +1 -0
  205. package/lib/cjs/prototypes/input-number.d.ts +1 -1
  206. package/lib/cjs/prototypes/input.d.ts +1 -1
  207. package/lib/cjs/prototypes/interval.d.ts +1 -1
  208. package/lib/cjs/prototypes/link.d.ts +1 -1
  209. package/lib/cjs/prototypes/list.d.ts +1 -1
  210. package/lib/cjs/prototypes/mentions.d.ts +1 -1
  211. package/lib/cjs/prototypes/menu.d.ts +1 -1
  212. package/lib/cjs/prototypes/modal.d.ts +1 -1
  213. package/lib/cjs/prototypes/page-header.d.ts +1 -1
  214. package/lib/cjs/prototypes/page.d.ts +1 -1
  215. package/lib/cjs/prototypes/pagination.d.ts +1 -1
  216. package/lib/cjs/prototypes/popconfirm.d.ts +1 -1
  217. package/lib/cjs/prototypes/popover.d.ts +1 -1
  218. package/lib/cjs/prototypes/progress.d.ts +1 -1
  219. package/lib/cjs/prototypes/radio.d.ts +1 -1
  220. package/lib/cjs/prototypes/rate.d.ts +1 -1
  221. package/lib/cjs/prototypes/result.d.ts +1 -1
  222. package/lib/cjs/prototypes/row.d.ts +1 -1
  223. package/lib/cjs/prototypes/section.d.ts +1 -1
  224. package/lib/cjs/prototypes/select.d.ts +1 -1
  225. package/lib/cjs/prototypes/skeleton.d.ts +1 -1
  226. package/lib/cjs/prototypes/slider.d.ts +1 -1
  227. package/lib/cjs/prototypes/space.d.ts +1 -1
  228. package/lib/cjs/prototypes/spin.d.ts +1 -1
  229. package/lib/cjs/prototypes/statistic.d.ts +1 -1
  230. package/lib/cjs/prototypes/steps.d.ts +1 -1
  231. package/lib/cjs/prototypes/switch.d.ts +1 -1
  232. package/lib/cjs/prototypes/table.d.ts +1 -1
  233. package/lib/cjs/prototypes/tabs.d.ts +1 -1
  234. package/lib/cjs/prototypes/tag.d.ts +1 -1
  235. package/lib/cjs/prototypes/text.d.ts +1 -1
  236. package/lib/cjs/prototypes/time-picker.d.ts +3 -3
  237. package/lib/cjs/prototypes/timeline.d.ts +1 -1
  238. package/lib/cjs/prototypes/timeline.js +3 -3
  239. package/lib/cjs/prototypes/toolbar.d.ts +1 -1
  240. package/lib/cjs/prototypes/tooltip.d.ts +1 -1
  241. package/lib/cjs/prototypes/transfer.d.ts +1 -1
  242. package/lib/cjs/prototypes/tree-select.d.ts +1 -1
  243. package/lib/cjs/prototypes/tree.d.ts +1 -1
  244. package/lib/cjs/prototypes/typography.d.ts +1 -1
  245. package/lib/cjs/prototypes/unitabs.d.ts +2 -0
  246. package/lib/cjs/prototypes/unitabs.js +158 -0
  247. package/lib/cjs/prototypes/upload.d.ts +1 -1
  248. package/lib/cjs/prototypes/when.d.ts +1 -1
  249. package/lib/esm/components/LineChart.js +0 -1
  250. package/lib/esm/components/affix.d.ts +1 -1
  251. package/lib/esm/components/affix.js +1 -3
  252. package/lib/esm/components/alert.d.ts +1 -1
  253. package/lib/esm/components/alert.js +2 -4
  254. package/lib/esm/components/anchor.d.ts +15 -2
  255. package/lib/esm/components/anchor.js +15 -42
  256. package/lib/esm/components/auto-complete.d.ts +1 -1
  257. package/lib/esm/components/auto-complete.js +2 -4
  258. package/lib/esm/components/avatar.d.ts +1 -1
  259. package/lib/esm/components/avatar.js +2 -4
  260. package/lib/esm/components/backTop.d.ts +6 -0
  261. package/lib/esm/components/backTop.js +13 -0
  262. package/lib/esm/components/badge.d.ts +1 -1
  263. package/lib/esm/components/badge.js +3 -8
  264. package/lib/esm/components/box.d.ts +1 -1
  265. package/lib/esm/components/box.js +1 -1
  266. package/lib/esm/components/breadcrumb.d.ts +16 -2
  267. package/lib/esm/components/breadcrumb.js +16 -7
  268. package/lib/esm/components/button.d.ts +3 -3
  269. package/lib/esm/components/button.js +1 -27
  270. package/lib/esm/components/calendar.d.ts +1 -1
  271. package/lib/esm/components/calendar.js +2 -4
  272. package/lib/esm/components/card.d.ts +1 -1
  273. package/lib/esm/components/card.js +2 -4
  274. package/lib/esm/components/carousel.d.ts +4 -1
  275. package/lib/esm/components/carousel.js +11 -27
  276. package/lib/esm/components/cascader.d.ts +2 -2
  277. package/lib/esm/components/cascader.js +1 -2
  278. package/lib/esm/components/checkbox.d.ts +4 -3
  279. package/lib/esm/components/checkbox.js +8 -28
  280. package/lib/esm/components/collapse.d.ts +15 -2
  281. package/lib/esm/components/collapse.js +19 -30
  282. package/lib/esm/components/columns.d.ts +2 -2
  283. package/lib/esm/components/columns.js +1 -1
  284. package/lib/esm/components/comment.d.ts +1 -1
  285. package/lib/esm/components/comment.js +3 -7
  286. package/lib/esm/components/date-picker.d.ts +1 -1
  287. package/lib/esm/components/date-picker.js +2 -64
  288. package/lib/esm/components/descriptions.d.ts +1 -5
  289. package/lib/esm/components/descriptions.js +8 -56
  290. package/lib/esm/components/divider.d.ts +1 -1
  291. package/lib/esm/components/divider.js +2 -4
  292. package/lib/esm/components/drawer.d.ts +1 -1
  293. package/lib/esm/components/drawer.js +1 -1
  294. package/lib/esm/components/dropdown.d.ts +6 -2
  295. package/lib/esm/components/dropdown.js +8 -7
  296. package/lib/esm/components/each.d.ts +1 -1
  297. package/lib/esm/components/each.js +1 -1
  298. package/lib/esm/components/empty.d.ts +1 -1
  299. package/lib/esm/components/empty.js +2 -4
  300. package/lib/esm/components/form.d.ts +4 -4
  301. package/lib/esm/components/form.js +1 -1
  302. package/lib/esm/components/formily.d.ts +4 -4
  303. package/lib/esm/components/formily.js +1 -1
  304. package/lib/esm/components/icon.d.ts +1 -1
  305. package/lib/esm/components/icon.js +1 -27
  306. package/lib/esm/components/image.d.ts +1 -1
  307. package/lib/esm/components/image.js +2 -5
  308. package/lib/esm/components/index.d.ts +21 -1
  309. package/lib/esm/components/index.js +23 -10
  310. package/lib/esm/components/input-number.d.ts +1 -1
  311. package/lib/esm/components/input-number.js +1 -20
  312. package/lib/esm/components/input.d.ts +6 -3
  313. package/lib/esm/components/input.js +20 -10
  314. package/lib/esm/components/list.d.ts +2 -2
  315. package/lib/esm/components/list.js +1 -1
  316. package/lib/esm/components/mentions.d.ts +1 -1
  317. package/lib/esm/components/mentions.js +2 -4
  318. package/lib/esm/components/menu.d.ts +2 -2
  319. package/lib/esm/components/menu.js +1 -1
  320. package/lib/esm/components/modal.d.ts +1 -1
  321. package/lib/esm/components/modal.js +1 -1
  322. package/lib/esm/components/page.d.ts +1 -1
  323. package/lib/esm/components/page.js +1 -1
  324. package/lib/esm/components/pageheader.d.ts +1 -1
  325. package/lib/esm/components/pageheader.js +2 -19
  326. package/lib/esm/components/pagination.d.ts +1 -1
  327. package/lib/esm/components/pagination.js +2 -4
  328. package/lib/esm/components/placeholder.d.ts +11 -3
  329. package/lib/esm/components/placeholder.js +44 -15
  330. package/lib/esm/components/popconfirm.d.ts +4 -1
  331. package/lib/esm/components/popconfirm.js +12 -36
  332. package/lib/esm/components/popover.d.ts +4 -1
  333. package/lib/esm/components/popover.js +12 -36
  334. package/lib/esm/components/progress.d.ts +1 -1
  335. package/lib/esm/components/progress.js +2 -2
  336. package/lib/esm/components/radio.d.ts +4 -3
  337. package/lib/esm/components/radio.js +11 -36
  338. package/lib/esm/components/rate.d.ts +1 -1
  339. package/lib/esm/components/rate.js +2 -19
  340. package/lib/esm/components/result.d.ts +1 -1
  341. package/lib/esm/components/result.js +2 -4
  342. package/lib/esm/components/result1.js +1 -2
  343. package/lib/esm/components/result2.d.ts +4 -2
  344. package/lib/esm/components/result2.js +19 -4
  345. package/lib/esm/components/result3.js +0 -1
  346. package/lib/esm/components/row-back.d.ts +1 -1
  347. package/lib/esm/components/row-back.js +2 -4
  348. package/lib/esm/components/row.d.ts +1 -1
  349. package/lib/esm/components/row.js +1 -2
  350. package/lib/esm/components/section.d.ts +1 -1
  351. package/lib/esm/components/section.js +1 -1
  352. package/lib/esm/components/select.d.ts +1 -1
  353. package/lib/esm/components/select.js +1 -20
  354. package/lib/esm/components/skeleton.d.ts +1 -1
  355. package/lib/esm/components/skeleton.js +2 -19
  356. package/lib/esm/components/slider.d.ts +1 -1
  357. package/lib/esm/components/slider.js +2 -19
  358. package/lib/esm/components/space.d.ts +1 -1
  359. package/lib/esm/components/space.js +1 -1
  360. package/lib/esm/components/spin.d.ts +1 -1
  361. package/lib/esm/components/spin.js +2 -4
  362. package/lib/esm/components/statistic.js +2 -71
  363. package/lib/esm/components/steps.d.ts +11 -0
  364. package/lib/esm/components/steps.js +12 -0
  365. package/lib/esm/components/switch.d.ts +1 -1
  366. package/lib/esm/components/switch.js +2 -2
  367. package/lib/esm/components/table.d.ts +1 -1
  368. package/lib/esm/components/table.js +2 -2
  369. package/lib/esm/components/table1.d.ts +4 -2
  370. package/lib/esm/components/table1.js +3 -6
  371. package/lib/esm/components/tabs.d.ts +1 -1
  372. package/lib/esm/components/tabs.js +4 -5
  373. package/lib/esm/components/tag.d.ts +1 -1
  374. package/lib/esm/components/tag.js +2 -4
  375. package/lib/esm/components/tango-event-button.d.ts +1 -1
  376. package/lib/esm/components/tango-event-button.js +1 -1
  377. package/lib/esm/components/time-picker.d.ts +1 -1
  378. package/lib/esm/components/time-picker.js +2 -2
  379. package/lib/esm/components/timeline.d.ts +2 -2
  380. package/lib/esm/components/timeline.js +1 -37
  381. package/lib/esm/components/timeline1.js +0 -21
  382. package/lib/esm/components/tooltip.d.ts +5 -1
  383. package/lib/esm/components/tooltip.js +12 -36
  384. package/lib/esm/components/transfer.d.ts +1 -1
  385. package/lib/esm/components/transfer.js +2 -19
  386. package/lib/esm/components/tree-select.d.ts +1 -1
  387. package/lib/esm/components/tree-select.js +2 -2
  388. package/lib/esm/components/tree.d.ts +1 -1
  389. package/lib/esm/components/tree.js +2 -2
  390. package/lib/esm/components/typography.d.ts +3 -3
  391. package/lib/esm/components/typography.js +1 -1
  392. package/lib/esm/components/unSteps/unisteps.d.ts +17 -0
  393. package/lib/esm/components/unSteps/unisteps.js +90 -0
  394. package/lib/esm/components/uniButton/unibutton.d.ts +8 -0
  395. package/lib/esm/components/uniButton/unibutton.js +61 -0
  396. package/lib/esm/components/uniCascader/unicascader.d.ts +7 -0
  397. package/lib/esm/components/uniCascader/unicascader.js +50 -0
  398. package/lib/esm/components/uniModal/unimodal.d.ts +14 -0
  399. package/lib/esm/components/uniModal/unimodal.js +42 -0
  400. package/lib/esm/components/uniRadio/uniradio.d.ts +12 -0
  401. package/lib/esm/components/uniRadio/uniradio.js +128 -0
  402. package/lib/esm/components/uniSelect/uniselect.d.ts +7 -0
  403. package/lib/esm/components/uniSelect/uniselect.js +40 -0
  404. package/lib/esm/components/uniSwitch/uniswitch.d.ts +7 -0
  405. package/lib/esm/components/uniSwitch/uniswitch.js +36 -0
  406. package/lib/esm/components/uniTabs/unitabs.d.ts +17 -0
  407. package/lib/esm/components/uniTabs/unitabs.js +82 -0
  408. package/lib/esm/components/uniUpload/uniupload.d.ts +6 -0
  409. package/lib/esm/components/uniUpload/uniupload.js +44 -0
  410. package/lib/esm/components/upload.d.ts +4 -1
  411. package/lib/esm/components/upload.js +12 -45
  412. package/lib/esm/helpers/prototype-helper.d.ts +3 -3
  413. package/lib/esm/helpers/slottype.d.ts +10 -0
  414. package/lib/esm/helpers/slottype.js +10 -0
  415. package/lib/esm/index.d.ts +0 -1
  416. package/lib/esm/index.js +1 -1
  417. package/lib/esm/prototypes/affix.d.ts +1 -1
  418. package/lib/esm/prototypes/alert.d.ts +1 -1
  419. package/lib/esm/prototypes/anchor.d.ts +1 -1
  420. package/lib/esm/prototypes/auto-complete.d.ts +1 -1
  421. package/lib/esm/prototypes/avatar.d.ts +1 -1
  422. package/lib/esm/prototypes/back-top.d.ts +1 -1
  423. package/lib/esm/prototypes/badge.d.ts +1 -1
  424. package/lib/esm/prototypes/box.d.ts +1 -1
  425. package/lib/esm/prototypes/breadcrumb.d.ts +1 -1
  426. package/lib/esm/prototypes/button.d.ts +1 -1
  427. package/lib/esm/prototypes/calendar.d.ts +1 -1
  428. package/lib/esm/prototypes/card.d.ts +1 -1
  429. package/lib/esm/prototypes/carousel.d.ts +1 -1
  430. package/lib/esm/prototypes/cascader.d.ts +1 -1
  431. package/lib/esm/prototypes/checkbox.d.ts +1 -1
  432. package/lib/esm/prototypes/collapse.d.ts +1 -1
  433. package/lib/esm/prototypes/columns.d.ts +1 -1
  434. package/lib/esm/prototypes/comment.d.ts +1 -1
  435. package/lib/esm/prototypes/common.d.ts +1 -1
  436. package/lib/esm/prototypes/date-picker.d.ts +3 -3
  437. package/lib/esm/prototypes/descriptions.d.ts +2 -2
  438. package/lib/esm/prototypes/divider.d.ts +1 -1
  439. package/lib/esm/prototypes/drawer.d.ts +1 -1
  440. package/lib/esm/prototypes/dropdown.d.ts +1 -1
  441. package/lib/esm/prototypes/each.d.ts +1 -1
  442. package/lib/esm/prototypes/empty.d.ts +1 -1
  443. package/lib/esm/prototypes/form.d.ts +1 -1
  444. package/lib/esm/prototypes/formily.d.ts +1 -1
  445. package/lib/esm/prototypes/grid.d.ts +1 -1
  446. package/lib/esm/prototypes/icon.d.ts +1 -1
  447. package/lib/esm/prototypes/iframe.d.ts +1 -1
  448. package/lib/esm/prototypes/image.d.ts +1 -1
  449. package/lib/esm/prototypes/index.d.ts +1 -0
  450. package/lib/esm/prototypes/index.js +1 -0
  451. package/lib/esm/prototypes/input-number.d.ts +1 -1
  452. package/lib/esm/prototypes/input.d.ts +1 -1
  453. package/lib/esm/prototypes/interval.d.ts +1 -1
  454. package/lib/esm/prototypes/link.d.ts +1 -1
  455. package/lib/esm/prototypes/list.d.ts +1 -1
  456. package/lib/esm/prototypes/mentions.d.ts +1 -1
  457. package/lib/esm/prototypes/menu.d.ts +1 -1
  458. package/lib/esm/prototypes/modal.d.ts +1 -1
  459. package/lib/esm/prototypes/page-header.d.ts +1 -1
  460. package/lib/esm/prototypes/page.d.ts +1 -1
  461. package/lib/esm/prototypes/pagination.d.ts +1 -1
  462. package/lib/esm/prototypes/popconfirm.d.ts +1 -1
  463. package/lib/esm/prototypes/popover.d.ts +1 -1
  464. package/lib/esm/prototypes/progress.d.ts +1 -1
  465. package/lib/esm/prototypes/radio.d.ts +1 -1
  466. package/lib/esm/prototypes/rate.d.ts +1 -1
  467. package/lib/esm/prototypes/result.d.ts +1 -1
  468. package/lib/esm/prototypes/row.d.ts +1 -1
  469. package/lib/esm/prototypes/section.d.ts +1 -1
  470. package/lib/esm/prototypes/select.d.ts +1 -1
  471. package/lib/esm/prototypes/skeleton.d.ts +1 -1
  472. package/lib/esm/prototypes/slider.d.ts +1 -1
  473. package/lib/esm/prototypes/space.d.ts +1 -1
  474. package/lib/esm/prototypes/spin.d.ts +1 -1
  475. package/lib/esm/prototypes/statistic.d.ts +1 -1
  476. package/lib/esm/prototypes/steps.d.ts +1 -1
  477. package/lib/esm/prototypes/switch.d.ts +1 -1
  478. package/lib/esm/prototypes/table.d.ts +1 -1
  479. package/lib/esm/prototypes/tabs.d.ts +1 -1
  480. package/lib/esm/prototypes/tag.d.ts +1 -1
  481. package/lib/esm/prototypes/text.d.ts +1 -1
  482. package/lib/esm/prototypes/time-picker.d.ts +3 -3
  483. package/lib/esm/prototypes/timeline.d.ts +1 -1
  484. package/lib/esm/prototypes/timeline.js +3 -3
  485. package/lib/esm/prototypes/toolbar.d.ts +1 -1
  486. package/lib/esm/prototypes/tooltip.d.ts +1 -1
  487. package/lib/esm/prototypes/transfer.d.ts +1 -1
  488. package/lib/esm/prototypes/tree-select.d.ts +1 -1
  489. package/lib/esm/prototypes/tree.d.ts +1 -1
  490. package/lib/esm/prototypes/typography.d.ts +1 -1
  491. package/lib/esm/prototypes/unitabs.d.ts +2 -0
  492. package/lib/esm/prototypes/unitabs.js +155 -0
  493. package/lib/esm/prototypes/upload.d.ts +1 -1
  494. package/lib/esm/prototypes/when.d.ts +1 -1
  495. package/package.json +7 -7
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  export declare const FormilyFormItem: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
- export declare const FormilyForm: React.ForwardRefExoticComponent<import("@cuvp1225/formily/lib/esm/form").FormProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const FormilyForm: React.ForwardRefExoticComponent<import("@cuvp1225/formily/lib/esm/form").FormProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
4
4
  export declare const FormilyFormFooter: React.ForwardRefExoticComponent<Omit<{
5
5
  children?: React.ReactNode | undefined;
6
6
  }, keyof import("@cuvp1225/formily").IFormItemProps | "gutter"> & import("@cuvp1225/formily").IFormItemProps & {
7
7
  gutter?: number;
8
- } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
8
+ } & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
9
9
  export declare const FormilySubmit: React.ForwardRefExoticComponent<import("@cuvp1225/formily").ISubmitProps & {
10
10
  children?: React.ReactNode | undefined;
11
- } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
11
+ } & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
12
12
  export declare const FormilyReset: React.ForwardRefExoticComponent<import("@cuvp1225/formily").IResetProps & {
13
13
  children?: React.ReactNode | undefined;
14
- } & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
14
+ } & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
15
15
  export { createForm as createFormilyForm, FormConsumer as FormilyFormConsumer, } from '@cuvp1225/formily';
@@ -1,7 +1,7 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { Form, FormItem, FormFooter, Checkbox, DatePicker, Input, NumberPicker, Password, Radio, Select, Switch, TimePicker, TreeSelect, Submit, Reset, } from '@cuvp1225/formily';
4
- import { defineComponent } from '@music163/tango-boot';
4
+ import { defineComponent } from '@cuvp1225/boot';
5
5
  const componentMap = new Map();
6
6
  const register = (name, component) => {
7
7
  componentMap.set(name, component);
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const AntdIcon: React.ForwardRefExoticComponent<Omit<Omit<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "ref"> & React.RefAttributes<HTMLSpanElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
2
+ export declare const AntdIcon: React.ForwardRefExoticComponent<Omit<Omit<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "ref"> & React.RefAttributes<HTMLSpanElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -3,34 +3,8 @@ import React from 'react';
3
3
  // import * as icons from '@ant-design/icons';
4
4
  // import { createFromIconfontCN } from '@ant-design/icons';
5
5
  import HomeOutlined from "@ant-design/icons/HomeOutlined";
6
- import { defineComponent } from '@music163/tango-boot';
6
+ import { defineComponent } from '@cuvp1225/boot';
7
7
  import Icon from '@ant-design/icons';
8
- // function IconView = (props: IconProps, ref: Ref<any>) => {
9
- // const { type = '', size, color, ...rest } = props;
10
- // // const IconComp = ((icons || {}) as any)[type];
11
- // const style = {
12
- // ...rest.style,
13
- // fontSize: size,
14
- // color,
15
- // };
16
- // // if (!IconComp) {
17
- // // const IconFont = createFromIconfontCN();
18
- // // return <IconFont type={type} {...rest} style={style} ref={ref} />;
19
- // // }
20
- // return <ChromeFilled {...rest} style={style} twoToneColor={color} ref={ref} />;
21
- // };
22
- // function IconView({
23
- // ...props
24
- // }) {
25
- // const { type = '', size, color, ...rest } = props;
26
- // const style = {
27
- // ...props.style,
28
- // fontSize: size,
29
- // color,
30
- // };
31
- // return <ChromeFilled {...rest} style={style} twoToneColor={color}/>;
32
- // }
33
- // export const AntdIcon = defineComponent(IconView);
34
8
  function IconDesigner(_a) {
35
9
  var { children, style, icon } = _a, rest = __rest(_a, ["children", "style", "icon"]);
36
10
  return (React.createElement(Icon, Object.assign({}, rest, { style: style, component: HomeOutlined })));
@@ -1,3 +1,3 @@
1
1
  import { ImageProps } from 'antd';
2
2
  import React from 'react';
3
- export declare const Image: React.ForwardRefExoticComponent<ImageProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const Image: React.ForwardRefExoticComponent<ImageProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
@@ -1,16 +1,14 @@
1
1
  import { __rest } from "tslib";
2
2
  import { Image as AntImage } from 'antd';
3
- import { defineComponent } from '@music163/tango-boot';
3
+ import { defineComponent } from '@cuvp1225/boot';
4
4
  import React, { useEffect, useRef } from 'react';
5
- import { SLOT } from '@music163/tango-helpers';
5
+ import { SLOT } from '@cuvp1225/helpers';
6
6
  function ImageDesigner(_a) {
7
7
  var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
8
8
  const imageRef = useRef(null);
9
- console.log("wxy-image-rest: ", Object.assign({}, rest));
10
9
  useEffect(() => {
11
10
  Promise.resolve().then(() => {
12
11
  const popoverNode = document.querySelector(`.${dataId}`);
13
- console.log('spinNode', popoverNode);
14
12
  if (popoverNode) {
15
13
  popoverNode.setAttribute('data-dnd', dataDnd);
16
14
  popoverNode.setAttribute('data-id', dataId);
@@ -25,7 +23,6 @@ export const Image = defineComponent(AntImage, {
25
23
  name: 'Image',
26
24
  designerConfig: {
27
25
  render({ designerProps, originalProps }) {
28
- // console.log("Image: designerProps:", designerProps, "originalProps:", originalProps);
29
26
  return React.createElement(ImageDesigner, Object.assign({}, designerProps, originalProps));
30
27
  }
31
28
  }
@@ -10,17 +10,25 @@ export * from './placeholder';
10
10
  export * from './section';
11
11
  export { Select } from './select';
12
12
  export { Space } from './space';
13
+ export { Popconfirm } from './popconfirm';
14
+ export { Popover } from './popover';
15
+ export { Tooltip } from './tooltip';
16
+ export { Result } from './result2';
13
17
  export { Drawer } from "./drawer";
14
18
  export { DatePicker } from "./date-picker";
15
19
  export { Radio, RadioGroup } from "./radio";
16
20
  export { Checkbox, CheckboxGroup } from "./checkbox";
17
21
  export { Cascader } from "./cascader";
22
+ export { Breadcrumb } from './breadcrumb';
23
+ export { Menu } from './menu';
18
24
  export { Collapse } from './collapse';
19
- export { Dropdown, DropdownButton } from './dropdown';
25
+ export { Dropdown } from './dropdown';
20
26
  export { Upload } from "./upload";
21
27
  export { Skeleton } from "./skeleton";
22
28
  export { Spin } from './spin';
29
+ export { Anchor } from './anchor';
23
30
  export { Calendar } from './calendar';
31
+ export { Carousel } from './carousel';
24
32
  export { Divider } from './divider';
25
33
  export { Badge } from './badge';
26
34
  export { Pagination } from './pagination';
@@ -40,6 +48,18 @@ export { AutoComplete } from './auto-complete';
40
48
  export { Mentions } from './mentions';
41
49
  export { TreeSelect } from './tree-select';
42
50
  export { Image } from './image';
51
+ export { Descriptions } from './descriptions';
43
52
  export { Tree } from './tree';
44
53
  export { Alert } from "./alert";
45
54
  export { Progress } from './progress';
55
+ export { BackTop } from './backTop';
56
+ export { UniTabs } from './uniTabs/unitabs';
57
+ export { UniButton, UniButtonGroup } from './uniButton/unibutton';
58
+ export { Steps } from './steps';
59
+ export { UniModal } from './uniModal/unimodal';
60
+ export { UniUpload } from './uniUpload/uniupload';
61
+ export { UniRadio, UniRadioGroup } from './uniRadio/uniradio';
62
+ export { UniSwitch } from './uniSwitch/uniswitch';
63
+ export { UniSteps } from './unSteps/unisteps';
64
+ export { UniSelect } from './uniSelect/uniselect';
65
+ export { UniCascader } from './uniCascader/unicascader';
@@ -17,12 +17,12 @@ export { Select } from './select';
17
17
  export { Space } from './space';
18
18
  //export { Typography, Title, Paragraph,Text } from './typography';
19
19
  //export { Columns, Column } from './columns';
20
- //export { Popconfirm } from './popconfirm';
21
- //export {Popover} from './popover';
22
- //export {Tooltip} from './tooltip';
20
+ export { Popconfirm } from './popconfirm';
21
+ export { Popover } from './popover';
22
+ export { Tooltip } from './tooltip';
23
23
  //export {Result} from './result';
24
24
  //export {Result} from './result1';
25
- //export {Result} from './result2';
25
+ export { Result } from './result2';
26
26
  //export {Result} from './result3';
27
27
  export { Drawer } from "./drawer";
28
28
  export { DatePicker } from "./date-picker";
@@ -33,21 +33,22 @@ export { Cascader } from "./cascader";
33
33
  //export { Row,Col } from './grid'
34
34
  //export { RowCombination,ColCombination } from './gridCombination'
35
35
  //export { Form,Fieldset,FormItem,FormFooter } from './form'
36
- //export { Breadcrumb,BreadcrumbItem } from './breadcrumb'
37
- //export { MenuItem,Menu } from './menu'
36
+ export { Breadcrumb } from './breadcrumb';
37
+ export { Menu } from './menu';
38
38
  //export { Timeline,TimelineItem } from './timeline'
39
39
  // export { Timeline,TimelineItem } from './timeline1'
40
40
  // export { BasicTimeline } from './timeline2'
41
41
  //export { Each } from './each'
42
42
  export { Collapse } from './collapse';
43
43
  //export { List, ListItem } from './list'
44
- export { Dropdown, DropdownButton } from './dropdown';
44
+ //export { Dropdown, DropdownButton } from './dropdown'
45
+ export { Dropdown } from './dropdown';
45
46
  export { Upload } from "./upload";
46
47
  export { Skeleton } from "./skeleton";
47
48
  export { Spin } from './spin';
48
- //export { Anchor } from './anchor';
49
+ export { Anchor } from './anchor';
49
50
  export { Calendar } from './calendar';
50
- //export { Carousel } from './carousel';
51
+ export { Carousel } from './carousel';
51
52
  export { Divider } from './divider';
52
53
  export { Badge } from './badge';
53
54
  export { Pagination } from './pagination';
@@ -70,10 +71,22 @@ export { Mentions } from './mentions';
70
71
  export { TreeSelect } from './tree-select';
71
72
  export { Image } from './image';
72
73
  //export { Tabs } from './tabs'
73
- // export { Descriptions } from './descriptions'
74
+ export { Descriptions } from './descriptions';
74
75
  export { Tree } from './tree';
75
76
  export { Alert } from "./alert";
76
77
  export { Progress } from './progress';
78
+ export { BackTop } from './backTop';
79
+ //export { AntdIcon } from './icon'
77
80
  //export {Affix} from './affix';
78
81
  //import * as echarts from 'echarts';
79
82
  //export {LineChart} from './LineChart';
83
+ export { UniTabs } from './uniTabs/unitabs';
84
+ export { UniButton, UniButtonGroup } from './uniButton/unibutton';
85
+ export { Steps } from './steps';
86
+ export { UniModal } from './uniModal/unimodal';
87
+ export { UniUpload } from './uniUpload/uniupload';
88
+ export { UniRadio, UniRadioGroup } from './uniRadio/uniradio';
89
+ export { UniSwitch } from './uniSwitch/uniswitch';
90
+ export { UniSteps } from './unSteps/unisteps';
91
+ export { UniSelect } from './uniSelect/uniselect';
92
+ export { UniCascader } from './uniCascader/unicascader';
@@ -4,4 +4,4 @@ export declare const InputNumber: React.ForwardRefExoticComponent<Omit<InputNumb
4
4
  children?: React.ReactNode;
5
5
  } & {
6
6
  ref?: React.Ref<HTMLInputElement> | undefined;
7
- } & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
7
+ } & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -1,10 +1,9 @@
1
1
  import { __rest } from "tslib";
2
- import { defineComponent } from '@music163/tango-boot';
2
+ import { defineComponent } from '@cuvp1225/boot';
3
3
  import { InputNumber as AntInputNumber } from 'antd';
4
4
  import React from 'react';
5
5
  function InputNumberDesigner(_a) {
6
6
  var { style, value } = _a, rest = __rest(_a, ["style", "value"]);
7
- console.log("AntInputNumber:", value, rest);
8
7
  if (value === undefined || value === null) {
9
8
  return (React.createElement(AntInputNumber, Object.assign({}, rest, { style: style })));
10
9
  }
@@ -19,22 +18,4 @@ export const InputNumber = defineComponent(AntInputNumber, {
19
18
  return React.createElement(InputNumberDesigner, Object.assign({}, designerProps, originalProps));
20
19
  },
21
20
  },
22
- // registerState: {
23
- // getInitStates({ setPageState }, props) {
24
- // return {
25
- // value: props.defaultValue ?? props.value,
26
- // setValue(value: number) {
27
- // setPageState({ value });
28
- // },
29
- // };
30
- // },
31
- // getTriggerProps({ setPageState, getPageState }): InputNumberProps {
32
- // return {
33
- // value: getPageState()?.value,
34
- // onChange(value) {
35
- // setPageState({ value });
36
- // },
37
- // };
38
- // },
39
- // },
40
21
  });
@@ -1,6 +1,9 @@
1
1
  import { InputProps } from 'antd';
2
2
  import { TextAreaProps, PasswordProps } from 'antd/lib/input';
3
3
  import React from 'react';
4
- export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps & React.RefAttributes<import("antd").InputRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
5
- export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
6
- export declare const Password: React.ForwardRefExoticComponent<Omit<PasswordProps & React.RefAttributes<import("antd").InputRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
4
+ export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps & React.RefAttributes<import("antd").InputRef> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
5
+ export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
6
+ export declare const Password: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: PasswordProps & {
7
+ [key: string]: any;
8
+ children?: React.ReactNode;
9
+ }) => React.JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { __rest } from "tslib";
2
2
  import { Input as AntInput } from 'antd';
3
- import { defineComponent } from '@music163/tango-boot';
3
+ import { defineComponent } from '@cuvp1225/boot';
4
4
  import React from 'react';
5
+ import { SLOT } from '../helpers/slottype';
5
6
  function InputDesigner(_a) {
6
7
  var { style, value } = _a, rest = __rest(_a, ["style", "value"]);
7
- console.log("AntInput:", value, rest);
8
8
  if (value && value !== '') {
9
9
  return React.createElement(AntInput, Object.assign({ value: value }, rest, { style: style }));
10
10
  }
@@ -40,11 +40,21 @@ function PasswordDesigner(_a) {
40
40
  }
41
41
  return (React.createElement(AntInput.Password, Object.assign({}, rest, { style: style })));
42
42
  }
43
- export const Password = defineComponent(AntInput.Password, {
44
- name: 'Password',
45
- designerConfig: {
46
- render({ designerProps, originalProps, }) {
47
- return React.createElement(PasswordDesigner, Object.assign({}, designerProps, originalProps));
48
- },
49
- }
50
- });
43
+ // export const Password = defineComponent(AntInput.Password, {
44
+ // name: 'Password',
45
+ // designerConfig: {
46
+ // render({ designerProps, originalProps, }) {
47
+ // return <PasswordDesigner {...designerProps} {...originalProps} />;
48
+ // },
49
+ // }
50
+ // });
51
+ export const Password = (_a) => {
52
+ var
53
+ //items,
54
+ _b = SLOT.id,
55
+ //items,
56
+ dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
57
+ //console.log("新的Tooltip组件0507001", dataId, dataDnd, rest);
58
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
59
+ React.createElement(AntInput.Password, Object.assign({}, rest), rest.children)));
60
+ };
@@ -1,2 +1,2 @@
1
- export declare const List: import("react").ForwardRefExoticComponent<import("antd").ListProps<unknown> & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
2
- export declare const ListItem: import("react").ForwardRefExoticComponent<Omit<import("antd/lib/list").ListItemProps & import("react").RefAttributes<HTMLElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
1
+ export declare const List: import("react").ForwardRefExoticComponent<import("antd").ListProps<unknown> & import("@cuvp1225/boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
2
+ export declare const ListItem: import("react").ForwardRefExoticComponent<Omit<import("antd/lib/list").ListItemProps & import("react").RefAttributes<HTMLElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import { defineComponent } from '@music163/tango-boot';
1
+ import { defineComponent } from '@cuvp1225/boot';
2
2
  import { List as AntList } from 'antd';
3
3
  export const List = defineComponent(AntList, {
4
4
  name: 'List'
@@ -1,3 +1,3 @@
1
1
  import { MentionProps } from 'antd';
2
2
  import React from 'react';
3
- export declare const Mentions: React.ForwardRefExoticComponent<Omit<MentionProps & React.RefAttributes<import("antd/lib/mentions").MentionsRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const Mentions: React.ForwardRefExoticComponent<Omit<MentionProps & React.RefAttributes<import("antd/lib/mentions").MentionsRef> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
@@ -1,15 +1,14 @@
1
1
  import { __rest } from "tslib";
2
2
  import { Mentions as AntMentions } from 'antd';
3
- import { defineComponent } from '@music163/tango-boot';
3
+ import { defineComponent } from '@cuvp1225/boot';
4
4
  import React, { useEffect, useRef } from 'react';
5
- import { SLOT } from '@music163/tango-helpers';
5
+ import { SLOT } from '@cuvp1225/helpers';
6
6
  function MentionsDesigner(_a) {
7
7
  var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
8
8
  const mentionsRef = useRef(null);
9
9
  useEffect(() => {
10
10
  Promise.resolve().then(() => {
11
11
  const popoverNode = document.querySelector(`.${dataId}`);
12
- // console.log('spinNode', popoverNode);
13
12
  if (popoverNode) {
14
13
  popoverNode.setAttribute('data-dnd', dataDnd);
15
14
  popoverNode.setAttribute('data-id', dataId);
@@ -24,7 +23,6 @@ export const Mentions = defineComponent(AntMentions, {
24
23
  name: 'Mentions',
25
24
  designerConfig: {
26
25
  render({ designerProps, originalProps }) {
27
- // console.log("Mentions: designerProps:", designerProps, "originalProps:", originalProps);
28
26
  return React.createElement(MentionsDesigner, Object.assign({}, designerProps, originalProps));
29
27
  }
30
28
  }
@@ -1,2 +1,2 @@
1
- export declare const Menu: import("react").ForwardRefExoticComponent<import("antd").MenuProps & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
2
- export declare const MenuItem: import("react").ForwardRefExoticComponent<import("antd").MenuItemProps & import("@music163/tango-boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
1
+ export declare const Menu: import("react").ForwardRefExoticComponent<import("antd").MenuProps & import("@cuvp1225/boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
2
+ export declare const MenuItem: import("react").ForwardRefExoticComponent<import("antd").MenuItemProps & import("@cuvp1225/boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import { defineComponent } from '@music163/tango-boot';
1
+ import { defineComponent } from '@cuvp1225/boot';
2
2
  import { Menu as AntMenu } from 'antd';
3
3
  export const Menu = defineComponent(AntMenu, {
4
4
  name: 'Menu'
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ModalProps } from 'antd';
3
- export declare const Modal: React.ForwardRefExoticComponent<ModalProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const Modal: React.ForwardRefExoticComponent<ModalProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
@@ -5,7 +5,7 @@ import { coral } from 'coral-system';
5
5
  import { Button, Modal as AntModal } from 'antd';
6
6
  //import { CloseOutlined } from '@ant-design/icons';
7
7
  import CloseOutlined from '@ant-design/icons/CloseOutlined';
8
- import { defineComponent } from '@music163/tango-boot';
8
+ import { defineComponent } from '@cuvp1225/boot';
9
9
  import { Placeholder } from './placeholder';
10
10
  import { ShadowContainer } from './shadow-container';
11
11
  const BaseModalWrapper = coral('div', css `
@@ -15,4 +15,4 @@ export interface PageProps extends Omit<BoxProps, 'title'> {
15
15
  */
16
16
  onUnmount?: () => void;
17
17
  }
18
- export declare const Page: React.ForwardRefExoticComponent<PageProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
18
+ export declare const Page: React.ForwardRefExoticComponent<PageProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
@@ -3,7 +3,7 @@ import React, { useEffect } from 'react';
3
3
  import { css } from 'coral-system';
4
4
  import { Box } from '@cuvp1225/foundation';
5
5
  import { PageHeader } from 'antd';
6
- import { defineComponent } from '@music163/tango-boot';
6
+ import { defineComponent } from '@cuvp1225/boot';
7
7
  const pageStyle = css `
8
8
  .td-pageHeader {
9
9
  background: #fff;
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderProps } from 'antd';
2
2
  import React from 'react';
3
- export declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
@@ -1,30 +1,14 @@
1
1
  import { __rest } from "tslib";
2
2
  import { PageHeader as AntPageHeader } from 'antd';
3
- import { defineComponent } from '@music163/tango-boot';
3
+ import { defineComponent } from '@cuvp1225/boot';
4
4
  import React, { useEffect, useRef } from 'react';
5
- import { SLOT } from '@music163/tango-helpers';
5
+ import { SLOT } from '@cuvp1225/helpers';
6
6
  function PageHeaderDesigner(_a) {
7
7
  var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
8
8
  const pageHeaderRef = useRef(null);
9
- // 监听弹层显示事件
10
- // const handleVisibleChange = (visible: boolean) => {
11
- // console.log('handleVisibleChange', visible);
12
- // if (visible) {
13
- // // 使用微任务确保弹层已渲染
14
- // Promise.resolve().then(() => {
15
- // const popoverNode = document.querySelector('.ant-popover-placement-top');
16
- // console.log('popoverNode' ,popoverNode)
17
- // if (popoverNode) {
18
- // popoverNode.setAttribute('data-dnd', dataDnd);
19
- // popoverNode.setAttribute('data-id', dataId);
20
- // }
21
- // });
22
- // }
23
- // };
24
9
  useEffect(() => {
25
10
  Promise.resolve().then(() => {
26
11
  const popoverNode = document.querySelector(`.${dataId}`);
27
- console.log('pageHeader', popoverNode);
28
12
  if (popoverNode) {
29
13
  popoverNode.setAttribute('data-dnd', dataDnd);
30
14
  popoverNode.setAttribute('data-id', dataId);
@@ -39,7 +23,6 @@ export const PageHeader = defineComponent(AntPageHeader, {
39
23
  name: 'PageHeader',
40
24
  designerConfig: {
41
25
  render({ designerProps, originalProps }) {
42
- console.log("PageHeader: designerProps:", designerProps, "originalProps:", originalProps);
43
26
  return React.createElement(PageHeaderDesigner, Object.assign({ title: "\u4E00\u7EA7\u6807\u9898" }, designerProps, originalProps));
44
27
  },
45
28
  },
@@ -1,3 +1,3 @@
1
1
  import { PaginationProps } from 'antd';
2
2
  import React from 'react';
3
- export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
3
+ export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
@@ -1,15 +1,14 @@
1
1
  import { __rest } from "tslib";
2
2
  import { Pagination as AntPagination } from 'antd';
3
- import { defineComponent } from '@music163/tango-boot';
3
+ import { defineComponent } from '@cuvp1225/boot';
4
4
  import React, { useEffect, useRef } from 'react';
5
- import { SLOT } from '@music163/tango-helpers';
5
+ import { SLOT } from '@cuvp1225/helpers';
6
6
  function PaginationDesigner(_a) {
7
7
  var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
8
8
  const paginationRef = useRef(null);
9
9
  useEffect(() => {
10
10
  Promise.resolve().then(() => {
11
11
  const popoverNode = document.querySelector(`.${dataId}`);
12
- // console.log('spinNode', popoverNode);
13
12
  if (popoverNode) {
14
13
  popoverNode.setAttribute('data-dnd', dataDnd);
15
14
  popoverNode.setAttribute('data-id', dataId);
@@ -24,7 +23,6 @@ export const Pagination = defineComponent(AntPagination, {
24
23
  name: 'Pagination',
25
24
  designerConfig: {
26
25
  render({ designerProps, originalProps }) {
27
- // console.log("Pagination: designerProps:", designerProps, "originalProps:", originalProps);
28
26
  return React.createElement(PaginationDesigner, Object.assign({}, designerProps, originalProps));
29
27
  }
30
28
  }
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
- import { BoxProps } from '@music163/foundation';
2
+ import { BoxProps } from '@cuvp1225/foundation';
3
3
  export interface PlaceholderProps extends BoxProps {
4
4
  /**
5
5
  * 尺寸
6
6
  * small - 适合文本,按钮等小型控件
7
7
  * medium - 中型控件
8
8
  * large - 大型控件
9
+ * auto - 自适应父容器大小
9
10
  */
10
- size?: 'small' | 'medium' | 'large';
11
+ size?: 'small' | 'medium' | 'large' | 'auto';
11
12
  /**
12
13
  * 占位文本
13
14
  */
@@ -21,4 +22,11 @@ export interface PlaceholderProps extends BoxProps {
21
22
  */
22
23
  targetComponentName?: string;
23
24
  }
24
- export declare const Placeholder: React.ForwardRefExoticComponent<PlaceholderProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;
25
+ export declare const Placeholder: (props: {
26
+ [key: string]: any;
27
+ children?: React.ReactNode;
28
+ }) => React.JSX.Element;
29
+ export declare const PlaceholderNew: (props: {
30
+ [key: string]: any;
31
+ children?: React.ReactNode;
32
+ }) => React.JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { css } from 'coral-system';
4
- import { Box } from '@music163/foundation';
5
- import { defineComponent } from '@music163/tango-boot';
4
+ import { Box } from '@cuvp1225/foundation';
6
5
  const placeholderStyle = css `
7
6
  display: flex;
8
7
  flex-direction: column;
@@ -11,11 +10,27 @@ const placeholderStyle = css `
11
10
  background-color: #efefef;
12
11
  color: #333;
13
12
  border: 1px solid #666;
14
- padding-left: 12px;
15
- padding-right: 12px;
16
13
  user-select: none;
17
14
  overflow: hidden;
18
15
  white-space: nowrap;
16
+ min-height:64px;
17
+
18
+ & ~ .tango-placeholder {
19
+ margin-top: 12px;
20
+ }
21
+ `;
22
+ const placeholderStyleNew = css `
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ justify-content: center;
27
+ background-color: #dfdfdf;
28
+ color: #333;
29
+ border: 1px solid #666;
30
+ user-select: none;
31
+ overflow: hidden;
32
+ white-space: nowrap;
33
+ min-height:64px;
19
34
 
20
35
  & ~ .tango-placeholder {
21
36
  margin-top: 12px;
@@ -25,21 +40,35 @@ const sizeMap = {
25
40
  small: '32px',
26
41
  medium: '64px',
27
42
  large: '80px',
43
+ auto: '100%'
28
44
  };
29
45
  function PlaceholderView(_a) {
30
- var { size = 'medium',
46
+ var { size = 'auto',
31
47
  //placeholder = '点击或拖拽组件/区块到这里',
32
48
  placeholder = '点击或拖拽组件/区块到这里' } = _a, rest = __rest(_a, ["size", "placeholder"]);
33
49
  const height = sizeMap[size];
34
- //console.log('zcq-PlaceholderView01', rest);
35
- //去除rest里的dnd-id属性,解决row等容器组件能否直接选中问题(方案废弃,会导致占位符无法被替换)
36
- // const newRest = Object.keys(rest)
37
- // .filter(key => key !== "data-dnd")
38
- // .reduce((acc, key) => {
39
- // acc[key as keyof typeof rest] = rest[key as keyof typeof rest];
40
- // return acc;
41
- // }, {} as { [key: string]: any });
42
- // console.log('zcq-PlaceholderView02', newRest);
43
50
  return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyle }, rest), placeholder));
44
51
  }
45
- export const Placeholder = defineComponent(PlaceholderView);
52
+ //export const Placeholder = defineComponent(PlaceholderView);
53
+ export const Placeholder = (props) => {
54
+ return (
55
+ // <div data-dnd={dataDnd} data-id={rest.tid} draggable={true} style={style} >
56
+ React.createElement(PlaceholderView, Object.assign({ draggable: false, style: props.style }, props))
57
+ // </div>
58
+ );
59
+ };
60
+ function PlaceholderViewNew(_a) {
61
+ var { size = 'auto',
62
+ //placeholder = '点击或拖拽组件/区块到这里',
63
+ placeholder = '拖拽标题、文本和段落等到这里' } = _a, rest = __rest(_a, ["size", "placeholder"]);
64
+ const height = sizeMap[size];
65
+ return (React.createElement(Box, Object.assign({ className: "tango-placeholder", height: height, css: placeholderStyleNew }, rest), placeholder));
66
+ }
67
+ //另一种样式的占位符,为了和栅格组件中的样式做区分
68
+ export const PlaceholderNew = (props) => {
69
+ return (
70
+ // <div data-dnd={dataDnd} data-id={rest.tid} draggable={true} style={style} >
71
+ React.createElement(PlaceholderViewNew, Object.assign({ draggable: false, style: props.style }, props))
72
+ // </div>
73
+ );
74
+ };
@@ -1,3 +1,6 @@
1
1
  import { PopconfirmProps } from 'antd';
2
2
  import React from 'react';
3
- export declare const Popconfirm: React.ForwardRefExoticComponent<Omit<PopconfirmProps & React.RefAttributes<unknown> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const Popconfirm: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: PopconfirmProps & {
4
+ [key: string]: any;
5
+ children?: React.ReactNode;
6
+ }) => React.JSX.Element;