@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
@@ -0,0 +1,90 @@
1
+ import { __rest } from "tslib";
2
+ import { Steps as AntdSteps } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from '../../helpers/slottype';
5
+ export const UniSteps = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ .uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
9
+ background: #B30000;
10
+ }
11
+ .uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
12
+ background-color: #fff;
13
+ border-color: #B30000;
14
+ }
15
+
16
+ .uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
17
+ background-color: #fff;
18
+ border-color: #B30000;
19
+ }
20
+
21
+ .uni-${dataId} .anticon svg {
22
+ color: #B30000;
23
+ }
24
+
25
+
26
+ .uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
27
+ background-color: #f0f0f0;
28
+ }
29
+ `;
30
+ const blueCss = `
31
+ .uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
32
+ background: #1890ff;
33
+ }
34
+ .uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
35
+ background-color: #fff;
36
+ border-color: #1890ff;
37
+ }
38
+
39
+ .uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
40
+ background-color: #fff;
41
+ border-color: #1890ff;
42
+ }
43
+
44
+ .uni-${dataId} .anticon svg {
45
+ color: #1890ff;
46
+ }
47
+
48
+
49
+ .uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
50
+ background-color: #f0f0f0;
51
+ }
52
+ `;
53
+ const greenCss = `
54
+ .uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
55
+ background: #17c60e;
56
+ }
57
+ .uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
58
+ background-color: #fff;
59
+ border-color: #17c60e;
60
+ }
61
+
62
+ .uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
63
+ background-color: #fff;
64
+ border-color: #17c60e;
65
+ }
66
+
67
+ .uni-${dataId} .anticon svg {
68
+ color: #17c60e;
69
+ }
70
+
71
+ .uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
72
+ background-color: #f0f0f0;
73
+ }
74
+ `;
75
+ useEffect(() => {
76
+ const allow = ['blue', 'green', 'red'];
77
+ if (allow.includes(theme)) {
78
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
79
+ const style = document.createElement('style');
80
+ style.innerHTML = css;
81
+ document.head.appendChild(style);
82
+ }
83
+ }, [theme]);
84
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
85
+ React.createElement(AntdSteps, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
86
+ };
87
+ export const UniStepsStep = (props) => {
88
+ return (React.createElement(AntdSteps.Step, Object.assign({}, props)));
89
+ };
90
+ UniSteps.Step = UniStepsStep;
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from "antd";
2
+ import React from "react";
3
+ export declare const UniButton: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: ButtonProps & {
4
+ [key: string]: any;
5
+ dnd?: string;
6
+ children?: React.ReactNode;
7
+ }) => React.JSX.Element;
8
+ export declare const UniButtonGroup: React.FC<import("antd/lib/button").ButtonGroupProps>;
@@ -0,0 +1,61 @@
1
+ import { __rest } from "tslib";
2
+ import { Button as AntButton } from "antd";
3
+ import { SLOT } from "../../helpers/slottype";
4
+ import React, { useEffect } from "react";
5
+ export const UniButton = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ .uni-${dataId} {
9
+ color: #fff;
10
+ border-color: #B30000 !important;
11
+ background: #B30000 !important;
12
+
13
+ }
14
+
15
+ .uni-${dataId}:hover,
16
+ .uni-${dataId}:focus {
17
+ color: #fff;
18
+ border-color: #B30000 !important;
19
+ background: #B30000 !important;
20
+ }
21
+ `;
22
+ const blueCss = `
23
+ .uni-${dataId} {
24
+ color: #fff;
25
+ border-color: #1890ff !important;
26
+ background: #1890ff !important;
27
+
28
+ }
29
+
30
+ .uni-${dataId}:hover,
31
+ .uni-${dataId}:focus {
32
+ color: #fff;
33
+ border-color: #1890ff !important;
34
+ background: #1890ff !important;
35
+ }`;
36
+ const greenCss = `
37
+ .uni-${dataId} {
38
+ color: #fff;
39
+ border-color: #17c60e !important;
40
+ background: #17c60e !important;
41
+
42
+ }
43
+
44
+ .uni-${dataId}:hover,
45
+ .uni-${dataId}:focus {
46
+ color: #fff;
47
+ border-color: #17c60e !important;
48
+ background: #17c60e !important;
49
+ }`;
50
+ useEffect(() => {
51
+ const allow = ['blue', 'green', 'red'];
52
+ if (allow.includes(theme) && rest.type === 'primary') {
53
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
54
+ const style = document.createElement('style');
55
+ style.innerHTML = css;
56
+ document.head.appendChild(style);
57
+ }
58
+ }, [theme]);
59
+ return (React.createElement(AntButton, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style }, rest)));
60
+ };
61
+ export const UniButtonGroup = AntButton.Group;
@@ -0,0 +1,7 @@
1
+ import { CascaderProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniCascader: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: CascaderProps & {
4
+ [key: string]: any;
5
+ dnd?: string;
6
+ children?: React.ReactNode;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,50 @@
1
+ import { __rest } from "tslib";
2
+ import { Cascader as AntdCascader } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from "../../helpers/slottype";
5
+ export const UniCascader = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ .uni-${dataId} .ant-cascader-menu-item-active {
9
+ color: #c20000;
10
+ background: #fff3f3
11
+ }
12
+
13
+ .uni-${dataId} .ant-cascader-menu-item-active:hover {
14
+ color: #c20000;
15
+ background: #fff3f3
16
+ }
17
+ `;
18
+ const blueCss = `
19
+ .uni-${dataId} .ant-cascader-menu-item-active {
20
+ color: #1890ff;
21
+ background: #e6f7ff
22
+ }
23
+
24
+ .uni-${dataId} .ant-cascader-menu-item-active:hover {
25
+ color: #1890ff;
26
+ background: #e6f7ff
27
+ }`;
28
+ const greenCss = `
29
+ .uni-${dataId} .ant-cascader-menu-item-active {
30
+ color: #17c60e;
31
+ background: #f6ffed
32
+ }
33
+
34
+ .uni-${dataId} .ant-cascader-menu-item-active:hover {
35
+ color: #17c60e;
36
+ background: #f6ffed
37
+ }
38
+ `;
39
+ useEffect(() => {
40
+ const allow = ['blue', 'green', 'red'];
41
+ if (allow.includes(theme)) {
42
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
43
+ const style = document.createElement('style');
44
+ style.innerHTML = css;
45
+ document.head.appendChild(style);
46
+ }
47
+ }, [theme]);
48
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
49
+ React.createElement(AntdCascader, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, dropdownClassName: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, style: style }, rest))));
50
+ };
@@ -0,0 +1,14 @@
1
+ import { ModalProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniModal: {
4
+ ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, children, style, theme, ...rest }: ModalProps & {
5
+ [key: string]: any;
6
+ dnd?: string;
7
+ children?: React.ReactNode;
8
+ }): React.JSX.Element;
9
+ info: import("antd/lib/modal/confirm").ModalFunc;
10
+ success: import("antd/lib/modal/confirm").ModalFunc;
11
+ error: import("antd/lib/modal/confirm").ModalFunc;
12
+ warning: import("antd/lib/modal/confirm").ModalFunc;
13
+ confirm: import("antd/lib/modal/confirm").ModalFunc;
14
+ };
@@ -0,0 +1,42 @@
1
+ import { __rest } from "tslib";
2
+ import { Modal as AntModal } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from '../../helpers/slottype';
5
+ export const UniModal = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { children, style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "children", "style", "theme"]);
7
+ // 主题样式定义
8
+ const redCss = `
9
+ .uni-${dataId} .ant-modal-footer .ant-btn-primary {
10
+ background: #B20000;
11
+ border-color: #B20000;
12
+ }
13
+ `;
14
+ const blueCss = `
15
+ .uni-${dataId} .ant-modal-footer .ant-btn-primary {
16
+ background: #1890ff;
17
+ border-color: #1890ff;
18
+ }
19
+ `;
20
+ const greenCss = `
21
+ .uni-${dataId} .ant-modal-footer .ant-btn-primary {
22
+ background: #17c60e;
23
+ border-color: #17c60e;
24
+ }
25
+ `;
26
+ useEffect(() => {
27
+ const allow = ['blue', 'green', 'red'];
28
+ if (allow.includes(theme)) {
29
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
30
+ const style = document.createElement('style');
31
+ style.innerHTML = css;
32
+ document.head.appendChild(style);
33
+ }
34
+ }, [theme]);
35
+ return (React.createElement(AntModal, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, style: style }, rest), children));
36
+ };
37
+ // 导出静态方法以支持 Modal.info() 等调用方式
38
+ UniModal.info = AntModal.info;
39
+ UniModal.success = AntModal.success;
40
+ UniModal.error = AntModal.error;
41
+ UniModal.warning = AntModal.warning;
42
+ UniModal.confirm = AntModal.confirm;
@@ -0,0 +1,12 @@
1
+ import { RadioProps, RadioGroupProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniRadio: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: RadioProps & {
4
+ [key: string]: any;
5
+ dnd?: string;
6
+ children?: React.ReactNode;
7
+ }) => React.JSX.Element;
8
+ export declare const UniRadioGroup: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: RadioGroupProps & {
9
+ [key: string]: any;
10
+ dnd?: string;
11
+ children?: React.ReactNode;
12
+ }) => React.JSX.Element;
@@ -0,0 +1,128 @@
1
+ import { __rest } from "tslib";
2
+ import { Radio as AntdRadio } from 'antd';
3
+ import { SLOT } from "../../helpers/slottype";
4
+ import React, { useEffect } from 'react';
5
+ export const UniRadio = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ /* 悬停时圆圈变红 */
9
+ .uni-${dataId}:hover .ant-radio-inner {
10
+ border-color: #B30000 !important;
11
+ }
12
+
13
+ /* 选中状态 - 边框变红 */
14
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
15
+ border-color: #B30000 !important;
16
+ }
17
+
18
+ /* 选中状态 - 中心点变红(覆盖整个内圆) */
19
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
20
+ background-color: #B30000 !important;
21
+ }
22
+ `;
23
+ const blueCss = `
24
+ /* 悬停时圆圈变蓝 */
25
+ .uni-${dataId}:hover .ant-radio-inner {
26
+ border-color: #1890ff !important;
27
+ }
28
+
29
+ /* 选中状态 - 边框变蓝 */
30
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
31
+ border-color: #1890ff !important;
32
+ }
33
+
34
+ /* 选中状态 - 中心点变蓝(覆盖整个内圆) */
35
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
36
+ background-color: #1890ff !important;
37
+ }
38
+ `;
39
+ const greenCss = `
40
+ /* 悬停时圆圈变绿 */
41
+ .uni-${dataId}:hover .ant-radio-inner {
42
+ border-color: #17c60e !important;
43
+ }
44
+
45
+ /* 选中状态 - 边框变绿 */
46
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
47
+ border-color: #17c60e !important;
48
+ }
49
+
50
+ /* 选中状态 - 中心点变绿(覆盖整个内圆) */
51
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
52
+ background-color: #17c60e !important;
53
+ }
54
+ `;
55
+ useEffect(() => {
56
+ const allow = ['blue', 'green', 'red'];
57
+ if (allow.includes(theme)) {
58
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
59
+ const style = document.createElement('style');
60
+ style.innerHTML = css;
61
+ document.head.appendChild(style);
62
+ }
63
+ }, [theme]);
64
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
65
+ React.createElement(AntdRadio, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest))));
66
+ };
67
+ export const UniRadioGroup = (_a) => {
68
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
69
+ const redCss = `
70
+ /* 悬停时圆圈变红 */
71
+ .uni-${dataId}:hover .ant-radio-inner {
72
+ border-color: #B30000 !important;
73
+ }
74
+
75
+ /* 选中状态 - 边框变红 */
76
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
77
+ border-color: #B30000 !important;
78
+ }
79
+
80
+ /* 选中状态 - 中心点变红(覆盖整个内圆) */
81
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
82
+ background-color: #B30000 !important;
83
+ }
84
+ `;
85
+ const blueCss = `
86
+ /* 悬停时圆圈变蓝 */
87
+ .uni-${dataId}:hover .ant-radio-inner {
88
+ border-color: #1890ff !important;
89
+ }
90
+
91
+ /* 选中状态 - 边框变蓝 */
92
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
93
+ border-color: #1890ff !important;
94
+ }
95
+
96
+ /* 选中状态 - 中心点变蓝(覆盖整个内圆) */
97
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
98
+ background-color: #1890ff !important;
99
+ }
100
+ `;
101
+ const greenCss = `
102
+ /* 悬停时圆圈变绿 */
103
+ .uni-${dataId}:hover .ant-radio-inner {
104
+ border-color: #17c60e !important;
105
+ }
106
+
107
+ /* 选中状态 - 边框变绿 */
108
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
109
+ border-color: #17c60e !important;
110
+ }
111
+
112
+ /* 选中状态 - 中心点变绿(覆盖整个内圆) */
113
+ .uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
114
+ background-color: #17c60e !important;
115
+ }
116
+ `;
117
+ useEffect(() => {
118
+ const allow = ['blue', 'green', 'red'];
119
+ if (allow.includes(theme)) {
120
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
121
+ const style = document.createElement('style');
122
+ style.innerHTML = css;
123
+ document.head.appendChild(style);
124
+ }
125
+ }, [theme]);
126
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
127
+ React.createElement(AntdRadio.Group, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
128
+ };
@@ -0,0 +1,7 @@
1
+ import { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniSelect: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: SelectProps & {
4
+ [key: string]: any;
5
+ dnd?: string;
6
+ children?: React.ReactNode;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { __rest } from "tslib";
2
+ import { Select as AntSelect } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from '../../helpers/slottype';
5
+ export const UniSelect = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ .uni-${dataId} .ant-select-item-option-selected {
9
+ color: #B30000;
10
+ background: #fff3f3
11
+ }
12
+ `;
13
+ const blueCss = `
14
+ .uni-${dataId} .ant-select-item-option-selected {
15
+ color: #1890ff;
16
+ background: #e6f7ff
17
+ }
18
+ `;
19
+ const greenCss = `
20
+ .uni-${dataId} .ant-select-item-option-selected {
21
+ color: #17c60e;
22
+ background: #f6ffed
23
+ }
24
+ `;
25
+ useEffect(() => {
26
+ const allow = ['blue', 'green', 'red'];
27
+ if (allow.includes(theme)) {
28
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
29
+ const style = document.createElement('style');
30
+ style.innerHTML = css;
31
+ document.head.appendChild(style);
32
+ }
33
+ }, [theme]);
34
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
35
+ React.createElement(AntSelect
36
+ // className={`uni-${dataId}`}
37
+ , Object.assign({
38
+ // className={`uni-${dataId}`}
39
+ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, dropdownClassName: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, style: style }, rest))));
40
+ };
@@ -0,0 +1,7 @@
1
+ import { SwitchProps } from "antd";
2
+ import React from 'react';
3
+ export declare const UniSwitch: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: SwitchProps & {
4
+ [key: string]: any;
5
+ dnd?: string;
6
+ children?: React.ReactNode;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,36 @@
1
+ import { __rest } from "tslib";
2
+ import { Switch as AntdSwitch } from "antd";
3
+ import { SLOT } from "../../helpers/slottype";
4
+ import React, { useEffect } from 'react';
5
+ export const UniSwitch = (_a) => {
6
+ var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `
8
+ /* 根据tid定制Switch组件样式 */
9
+ .uni-${dataId}[tid="${dataId}"].ant-switch-checked {
10
+ background-color: #B30000;
11
+ }
12
+ `;
13
+ const blueCss = `
14
+ /* 根据tid定制Switch组件样式 */
15
+ .uni-${dataId}[tid="${dataId}"].ant-switch-checked {
16
+ background-color: #1890ff;
17
+ }
18
+ `;
19
+ const greenCss = `
20
+ /* 根据tid定制Switch组件样式 */
21
+ .uni-${dataId}[tid="${dataId}"].ant-switch-checked {
22
+ background-color: #17c60e;
23
+ }
24
+ `;
25
+ useEffect(() => {
26
+ const allow = ['blue', 'green', 'red'];
27
+ if (allow.includes(theme)) {
28
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
29
+ const style = document.createElement('style');
30
+ style.innerHTML = css;
31
+ document.head.appendChild(style);
32
+ }
33
+ }, [theme]);
34
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
35
+ React.createElement(AntdSwitch, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest))));
36
+ };
@@ -0,0 +1,17 @@
1
+ import { TabsProps, TabPaneProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniTabs: {
4
+ ({ children, [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: TabsProps & {
5
+ [key: string]: any;
6
+ dnd?: string;
7
+ children?: React.ReactNode;
8
+ }): React.JSX.Element;
9
+ TabPane: (props: TabPaneProps & {
10
+ [key: string]: any;
11
+ children?: React.ReactNode;
12
+ }) => React.JSX.Element;
13
+ };
14
+ export declare const UniTabsPane: (props: TabPaneProps & {
15
+ [key: string]: any;
16
+ children?: React.ReactNode;
17
+ }) => React.JSX.Element;
@@ -0,0 +1,82 @@
1
+ import { __rest } from "tslib";
2
+ import { Tabs as AntTabs } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from '../../helpers/slottype';
5
+ export const UniTabs = (_a) => {
6
+ var { children } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = __rest(_a, ["children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
7
+ const redCss = `.uni-${dataId} .ant-tabs-ink-bar{
8
+ background: #C20000;
9
+ }
10
+
11
+ .uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
12
+ color: #C20000;
13
+ font-size: "16px";
14
+ font-weight: 600;
15
+ line-height: "24px";
16
+ letter-spacing: "0px";
17
+ text-align: left;
18
+ }
19
+
20
+ .uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
21
+ color: #C20000;
22
+ }
23
+
24
+ .uni-${dataId} .ant-tabs-tab:hover {
25
+ color: #C20000;
26
+ }
27
+ `;
28
+ const blueCss = `.uni-${dataId} .ant-tabs-ink-bar{
29
+ background: #1890ff;
30
+ }
31
+
32
+ .uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
33
+ color: #1890ff;
34
+ font-size: "16px";
35
+ font-weight: 600;
36
+ line-height: "24px";
37
+ letter-spacing: "0px";
38
+ text-align: left;
39
+ }
40
+
41
+ .uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
42
+ color: #1890ff;
43
+ }
44
+
45
+ .uni-${dataId} .ant-tabs-tab:hover {
46
+ color: #1890ff;
47
+ }`;
48
+ const greenCss = `.uni-${dataId} .ant-tabs-ink-bar{
49
+ background: #17c60e;
50
+ }
51
+
52
+ .uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
53
+ color: #17c60e;
54
+ font-size: "16px";
55
+ font-weight: 600;
56
+ line-height: "24px";
57
+ letter-spacing: "0px";
58
+ text-align: left;
59
+ }
60
+
61
+ .uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
62
+ color: #17c60e;
63
+ }
64
+
65
+ .uni-${dataId} .ant-tabs-tab:hover {
66
+ color: #17c60e;
67
+ }`;
68
+ useEffect(() => {
69
+ const allow = ['blue', 'green', 'red'];
70
+ if (allow.includes(theme)) {
71
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
72
+ const style = document.createElement('style');
73
+ style.innerHTML = css;
74
+ document.head.appendChild(style);
75
+ }
76
+ }, [theme]);
77
+ return (React.createElement(AntTabs, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style }, rest), children));
78
+ };
79
+ export const UniTabsPane = (props) => {
80
+ return (React.createElement(AntTabs.TabPane, Object.assign({}, props), props.children));
81
+ };
82
+ UniTabs.TabPane = UniTabsPane;
@@ -0,0 +1,6 @@
1
+ import { UploadProps } from 'antd';
2
+ import React from 'react';
3
+ export declare const UniUpload: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, theme, ...rest }: UploadProps & {
4
+ [key: string]: any;
5
+ children?: React.ReactNode;
6
+ }) => React.JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { __rest } from "tslib";
2
+ import { Upload as AntUpload } from 'antd';
3
+ import React, { useEffect } from 'react';
4
+ import { SLOT } from '../../helpers/slottype';
5
+ export const UniUpload = (_a) => {
6
+ var
7
+ //items,
8
+ _b = SLOT.id,
9
+ //items,
10
+ dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], { style, theme } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
11
+ //console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
12
+ const redCss = `
13
+ .uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
14
+ color: #fff;
15
+ border-color: #B20000;
16
+ background: #B20000;
17
+ }
18
+ `;
19
+ const blueCss = `
20
+ .uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
21
+ color: #fff;
22
+ border-color: #1890ff;
23
+ background: #1890ff;
24
+ }
25
+ `;
26
+ const greenCss = `
27
+ .uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
28
+ color: #fff;
29
+ border-color: #17c60e;
30
+ background: #17c60e;
31
+ }
32
+ `;
33
+ useEffect(() => {
34
+ const allow = ['blue', 'green', 'red'];
35
+ if (allow.includes(theme)) {
36
+ const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
37
+ const style = document.createElement('style');
38
+ style.innerHTML = css;
39
+ document.head.appendChild(style);
40
+ }
41
+ }, [theme]);
42
+ return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
43
+ React.createElement(AntUpload, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
44
+ };