@pisell/materials 1.0.1 → 1.0.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 (383) hide show
  1. package/build/lowcode/assets-daily.json +93 -0
  2. package/build/lowcode/assets-dev.json +93 -0
  3. package/build/lowcode/assets-prod.json +93 -0
  4. package/build/lowcode/designer.html +303 -0
  5. package/build/lowcode/index.html +305 -0
  6. package/build/lowcode/index.js +1 -0
  7. package/build/lowcode/meta.js +9 -0
  8. package/build/lowcode/preview.css +1 -0
  9. package/build/lowcode/preview.html +35 -0
  10. package/build/lowcode/preview.js +304 -0
  11. package/build/lowcode/render/default/view.js +22 -0
  12. package/build/lowcode/view.js +22 -0
  13. package/es/components/auto-complete/index.d.ts +3 -0
  14. package/es/components/auto-complete/index.js +4 -0
  15. package/es/components/button/index.d.ts +3 -0
  16. package/es/components/button/index.js +15 -0
  17. package/es/components/calendar/index.d.ts +3 -0
  18. package/es/components/calendar/index.js +4 -0
  19. package/es/components/cascader/index.d.ts +3 -0
  20. package/es/components/cascader/index.js +4 -0
  21. package/es/components/checkbox/index.d.ts +3 -0
  22. package/es/components/checkbox/index.js +5 -0
  23. package/es/components/config-provider/index.d.ts +4 -0
  24. package/es/components/config-provider/index.js +30 -0
  25. package/es/components/date-picker/index.d.ts +3 -0
  26. package/es/components/date-picker/index.js +7 -0
  27. package/es/components/drawer/index.d.ts +2 -0
  28. package/es/components/drawer/index.js +13 -0
  29. package/es/components/dropdown/index.d.ts +3 -0
  30. package/es/components/dropdown/index.js +13 -0
  31. package/es/components/form/index.d.ts +8 -0
  32. package/es/components/form/index.js +132 -0
  33. package/es/components/icon/index.d.ts +12 -0
  34. package/es/components/icon/index.js +40 -0
  35. package/es/components/input/index.d.ts +3 -0
  36. package/es/components/input/index.js +12 -0
  37. package/es/components/modal/index.d.ts +2 -0
  38. package/es/components/modal/index.js +18 -0
  39. package/es/components/radio/index.d.ts +3 -0
  40. package/es/components/radio/index.js +5 -0
  41. package/es/components/select/index.d.ts +3 -0
  42. package/es/components/select/index.js +4 -0
  43. package/es/components/skeleton/index.d.ts +3 -0
  44. package/es/components/skeleton/index.js +5 -0
  45. package/es/components/slider/index.d.ts +3 -0
  46. package/es/components/slider/index.js +16 -0
  47. package/es/components/table/index.d.ts +3 -0
  48. package/es/components/table/index.js +12 -0
  49. package/es/components/tabs/index.d.ts +11 -0
  50. package/es/components/tabs/index.js +93 -0
  51. package/es/components/time-picker/index.d.ts +3 -0
  52. package/es/components/time-picker/index.js +4 -0
  53. package/es/components/tree-select/index.d.ts +2 -0
  54. package/es/components/tree-select/index.js +6 -0
  55. package/es/components/upload/index.d.ts +3 -0
  56. package/es/components/upload/index.js +4 -0
  57. package/es/index.d.ts +63 -0
  58. package/es/index.js +85 -0
  59. package/es/utils/hoc.d.ts +17 -0
  60. package/es/utils/hoc.js +80 -0
  61. package/es/utils/warning.d.ts +1 -0
  62. package/es/utils/warning.js +6 -0
  63. package/lib/components/auto-complete/index.d.ts +3 -0
  64. package/lib/components/auto-complete/index.js +28 -0
  65. package/lib/components/button/index.d.ts +3 -0
  66. package/lib/components/button/index.js +45 -0
  67. package/lib/components/calendar/index.d.ts +3 -0
  68. package/lib/components/calendar/index.js +32 -0
  69. package/lib/components/cascader/index.d.ts +3 -0
  70. package/lib/components/cascader/index.js +28 -0
  71. package/lib/components/checkbox/index.d.ts +3 -0
  72. package/lib/components/checkbox/index.js +29 -0
  73. package/lib/components/config-provider/index.d.ts +4 -0
  74. package/lib/components/config-provider/index.js +54 -0
  75. package/lib/components/date-picker/index.d.ts +3 -0
  76. package/lib/components/date-picker/index.js +41 -0
  77. package/lib/components/drawer/index.d.ts +2 -0
  78. package/lib/components/drawer/index.js +45 -0
  79. package/lib/components/dropdown/index.d.ts +3 -0
  80. package/lib/components/dropdown/index.js +45 -0
  81. package/lib/components/form/index.d.ts +8 -0
  82. package/lib/components/form/index.js +114 -0
  83. package/lib/components/icon/index.d.ts +12 -0
  84. package/lib/components/icon/index.js +52 -0
  85. package/lib/components/input/index.d.ts +3 -0
  86. package/lib/components/input/index.js +38 -0
  87. package/lib/components/modal/index.d.ts +2 -0
  88. package/lib/components/modal/index.js +50 -0
  89. package/lib/components/radio/index.d.ts +3 -0
  90. package/lib/components/radio/index.js +29 -0
  91. package/lib/components/select/index.d.ts +3 -0
  92. package/lib/components/select/index.js +28 -0
  93. package/lib/components/skeleton/index.d.ts +3 -0
  94. package/lib/components/skeleton/index.js +29 -0
  95. package/lib/components/slider/index.d.ts +3 -0
  96. package/lib/components/slider/index.js +47 -0
  97. package/lib/components/table/index.d.ts +3 -0
  98. package/lib/components/table/index.js +41 -0
  99. package/lib/components/tabs/index.d.ts +11 -0
  100. package/lib/components/tabs/index.js +92 -0
  101. package/lib/components/time-picker/index.d.ts +3 -0
  102. package/lib/components/time-picker/index.js +31 -0
  103. package/lib/components/tree-select/index.d.ts +2 -0
  104. package/lib/components/tree-select/index.js +40 -0
  105. package/lib/components/upload/index.d.ts +3 -0
  106. package/lib/components/upload/index.js +28 -0
  107. package/lib/index.d.ts +63 -0
  108. package/lib/index.js +225 -0
  109. package/lib/utils/hoc.d.ts +17 -0
  110. package/lib/utils/hoc.js +101 -0
  111. package/lib/utils/warning.d.ts +1 -0
  112. package/lib/utils/warning.js +31 -0
  113. package/lowcode/_setters/antd-icon-setter/index.tsx +285 -0
  114. package/lowcode/_setters/antd-icon-setter/style.less +69 -0
  115. package/lowcode/_setters/index.tsx +1 -0
  116. package/lowcode/_utils/hoc.tsx +93 -0
  117. package/lowcode/_utils/transform-meta.ts +343 -0
  118. package/lowcode/_utils/utils.ts +6 -0
  119. package/lowcode/affix/__screenshots__/affix-1.jpg +0 -0
  120. package/lowcode/affix/meta.ts +68 -0
  121. package/lowcode/affix/snippets.ts +20 -0
  122. package/lowcode/alert/__screenshots__/alert-1.png +0 -0
  123. package/lowcode/alert/__screenshots__/alert-2.png +0 -0
  124. package/lowcode/alert/__screenshots__/alert-3.png +0 -0
  125. package/lowcode/alert/__screenshots__/alert-4.png +0 -0
  126. package/lowcode/alert/meta.ts +102 -0
  127. package/lowcode/alert/snippets.ts +54 -0
  128. package/lowcode/anchor/__screenshots__/anchor-1.png +0 -0
  129. package/lowcode/anchor/snippets.ts +30 -0
  130. package/lowcode/anchor.link/meta.ts +29 -0
  131. package/lowcode/anchor.link/snippets.ts +1 -0
  132. package/lowcode/auto-complete/__screenshots__/auto-complete-1.png +0 -0
  133. package/lowcode/auto-complete/meta.ts +453 -0
  134. package/lowcode/auto-complete/snippets.ts +26 -0
  135. package/lowcode/avatar/__screenshots__/avatar-1.jpg +0 -0
  136. package/lowcode/avatar/meta.ts +82 -0
  137. package/lowcode/avatar/snippets.ts +12 -0
  138. package/lowcode/badge/__screenshots__/badge-1.png +0 -0
  139. package/lowcode/badge/meta.ts +94 -0
  140. package/lowcode/badge/snippets.ts +12 -0
  141. package/lowcode/breadcrumb/__screenshots__/breadcrumb-1.jpg +0 -0
  142. package/lowcode/breadcrumb/meta.ts +136 -0
  143. package/lowcode/breadcrumb/snippets.ts +44 -0
  144. package/lowcode/button/__screenshots__/button-1.png +0 -0
  145. package/lowcode/button/__screenshots__/button-2.png +0 -0
  146. package/lowcode/button/__screenshots__/button-3.png +0 -0
  147. package/lowcode/button/__screenshots__/button-4.png +0 -0
  148. package/lowcode/button/__screenshots__/button-5.png +0 -0
  149. package/lowcode/button/__screenshots__/button-6.png +0 -0
  150. package/lowcode/button/meta.ts +510 -0
  151. package/lowcode/button/snippets.ts +68 -0
  152. package/lowcode/calendar/__screenshots__/calendar-1.jpg +0 -0
  153. package/lowcode/calendar/meta.ts +133 -0
  154. package/lowcode/calendar/snippets.ts +10 -0
  155. package/lowcode/card/__screenshots__/card-1.png +0 -0
  156. package/lowcode/card/meta.ts +97 -0
  157. package/lowcode/card/snippets.ts +12 -0
  158. package/lowcode/carousel/__screenshots__/carousel-1.jpg +0 -0
  159. package/lowcode/carousel/meta.ts +148 -0
  160. package/lowcode/carousel/snippets.ts +23 -0
  161. package/lowcode/cascader/__screenshots__/cascader-1.png +0 -0
  162. package/lowcode/cascader/meta.ts +175 -0
  163. package/lowcode/cascader/snippets.ts +46 -0
  164. package/lowcode/checkbox/__screenshots__/checkbox-1.png +0 -0
  165. package/lowcode/checkbox/meta.ts +85 -0
  166. package/lowcode/checkbox/snippets.ts +35 -0
  167. package/lowcode/checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
  168. package/lowcode/checkbox.group/meta.ts +150 -0
  169. package/lowcode/collapse/__screenshots__/collapse-1.png +0 -0
  170. package/lowcode/collapse/meta.ts +221 -0
  171. package/lowcode/collapse/snippets.ts +28 -0
  172. package/lowcode/collapse.pane/meta.ts +84 -0
  173. package/lowcode/config-provider/__screenshots__/config-provider-1.jpg +0 -0
  174. package/lowcode/config-provider/meta.ts +140 -0
  175. package/lowcode/config-provider/snippets.ts +10 -0
  176. package/lowcode/date-picker/__screenshots__/date-picker-1.png +0 -0
  177. package/lowcode/date-picker/__screenshots__/date-picker-2.png +0 -0
  178. package/lowcode/date-picker/__screenshots__/date-picker-3.png +0 -0
  179. package/lowcode/date-picker/__screenshots__/date-picker-4.png +0 -0
  180. package/lowcode/date-picker/__screenshots__/date-picker-5.png +0 -0
  181. package/lowcode/date-picker/meta.ts +281 -0
  182. package/lowcode/date-picker/snippets.ts +50 -0
  183. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-1.png +0 -0
  184. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-2.png +0 -0
  185. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-3.png +0 -0
  186. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-4.png +0 -0
  187. package/lowcode/date-picker.range-picker/meta.ts +356 -0
  188. package/lowcode/date-picker.range-picker/snippets.ts +44 -0
  189. package/lowcode/descriptions/__screenshots__/descriptions-1.jpg +0 -0
  190. package/lowcode/descriptions/meta.ts +230 -0
  191. package/lowcode/descriptions/snippets.ts +18 -0
  192. package/lowcode/descriptions.item/meta.ts +37 -0
  193. package/lowcode/directory-tree/meta.ts +2747 -0
  194. package/lowcode/divider/__screenshots__/divider-1.png +0 -0
  195. package/lowcode/divider/__screenshots__/divider-2.png +0 -0
  196. package/lowcode/divider/meta.ts +70 -0
  197. package/lowcode/divider/snippets.ts +27 -0
  198. package/lowcode/drawer/__screenshots__/drawer-1.png +0 -0
  199. package/lowcode/drawer/__screenshots__/drawer-2.png +0 -0
  200. package/lowcode/drawer/meta.ts +420 -0
  201. package/lowcode/drawer/snippets.ts +40 -0
  202. package/lowcode/dropdown/__screenshots__/dropdown-1.png +0 -0
  203. package/lowcode/dropdown/meta.ts +143 -0
  204. package/lowcode/dropdown/snippets.ts +73 -0
  205. package/lowcode/empty/__screenshots__/empty-1.png +0 -0
  206. package/lowcode/empty/meta.ts +40 -0
  207. package/lowcode/empty/snippets.ts +10 -0
  208. package/lowcode/form/__screenshots__/form-1.png +0 -0
  209. package/lowcode/form/meta.ts +380 -0
  210. package/lowcode/form/snippets.ts +511 -0
  211. package/lowcode/form.item/__screenshots__/form-item-1.jpg +0 -0
  212. package/lowcode/form.item/meta.ts +348 -0
  213. package/lowcode/form.item/snippets.ts +12 -0
  214. package/lowcode/form.list/meta.ts +42 -0
  215. package/lowcode/form.list/snippets.ts +11 -0
  216. package/lowcode/grid.col/meta.ts +116 -0
  217. package/lowcode/grid.col/snippets.ts +1 -0
  218. package/lowcode/grid.row/__screenshots__/1-1-1-1.png +0 -0
  219. package/lowcode/grid.row/__screenshots__/1-1-1.png +0 -0
  220. package/lowcode/grid.row/__screenshots__/1-1.png +0 -0
  221. package/lowcode/grid.row/__screenshots__/1-3.png +0 -0
  222. package/lowcode/grid.row/meta.ts +118 -0
  223. package/lowcode/grid.row/snippets.ts +108 -0
  224. package/lowcode/icon/__screenshots__/icon-1.jpg +0 -0
  225. package/lowcode/icon/meta.ts +74 -0
  226. package/lowcode/icon/snippets.ts +13 -0
  227. package/lowcode/image/__screenshots__/image-1.png +0 -0
  228. package/lowcode/image/meta.ts +53 -0
  229. package/lowcode/image/snippets.ts +14 -0
  230. package/lowcode/input/__screenshots__/input-1.png +0 -0
  231. package/lowcode/input/meta.ts +190 -0
  232. package/lowcode/input/snippets.ts +12 -0
  233. package/lowcode/input-number/__screenshots__/input-number-1.png +0 -0
  234. package/lowcode/input-number/meta.ts +213 -0
  235. package/lowcode/input-number/snippets.ts +12 -0
  236. package/lowcode/input.group/__screenshots__/input-group-1.jpg +0 -0
  237. package/lowcode/input.group/meta.ts +53 -0
  238. package/lowcode/input.group/snippets.ts +24 -0
  239. package/lowcode/input.password/__screenshots__/input-password-1.png +0 -0
  240. package/lowcode/input.password/meta.ts +192 -0
  241. package/lowcode/input.password/snippets.ts +12 -0
  242. package/lowcode/input.search/__screenshots__/input-search-1.png +0 -0
  243. package/lowcode/input.search/meta.ts +206 -0
  244. package/lowcode/input.search/snippets.ts +12 -0
  245. package/lowcode/input.text-area/__screenshots__/input-text-area-1.png +0 -0
  246. package/lowcode/input.text-area/meta.ts +210 -0
  247. package/lowcode/input.text-area/snippets.ts +16 -0
  248. package/lowcode/list/__screenshots__/list-1.png +0 -0
  249. package/lowcode/list/meta.ts +499 -0
  250. package/lowcode/list/snippets.ts +201 -0
  251. package/lowcode/list.item/meta.ts +58 -0
  252. package/lowcode/list.item.meta/meta.ts +49 -0
  253. package/lowcode/login/meta.ts +56 -0
  254. package/lowcode/mentions/__screenshots__/mentions-1.png +0 -0
  255. package/lowcode/mentions/meta.ts +159 -0
  256. package/lowcode/mentions/snippets.ts +10 -0
  257. package/lowcode/menu/__screenshots__/menu-1.jpg +0 -0
  258. package/lowcode/menu/meta.ts +248 -0
  259. package/lowcode/menu/snippets.ts +22 -0
  260. package/lowcode/menu/utils.ts +97 -0
  261. package/lowcode/menu.item/meta.ts +63 -0
  262. package/lowcode/menu.item/snippets.ts +1 -0
  263. package/lowcode/menu.item-group/__screenshots__/menu-item-group-1.png +0 -0
  264. package/lowcode/menu.item-group/meta.ts +110 -0
  265. package/lowcode/menu.item-group/snippets.ts +1 -0
  266. package/lowcode/menu.sub-menu/meta.ts +131 -0
  267. package/lowcode/menu.sub-menu/snippets.ts +1 -0
  268. package/lowcode/modal/__screenshots__/modal-1.png +0 -0
  269. package/lowcode/modal/__screenshots__/modal-2.png +0 -0
  270. package/lowcode/modal/meta.ts +270 -0
  271. package/lowcode/modal/snippets.ts +33 -0
  272. package/lowcode/page-header/__screenshots__/page-header-1.jpg +0 -0
  273. package/lowcode/page-header/meta.ts +157 -0
  274. package/lowcode/page-header/snippets.ts +13 -0
  275. package/lowcode/pagination/__screenshots__/pagination-1.jpg +0 -0
  276. package/lowcode/pagination/meta.ts +231 -0
  277. package/lowcode/pagination/snippets.ts +14 -0
  278. package/lowcode/popconfirm/__screenshots__/popconfirm-1.jpg +0 -0
  279. package/lowcode/popconfirm/meta.ts +121 -0
  280. package/lowcode/popconfirm/snippets.ts +21 -0
  281. package/lowcode/popover/__screenshots__/popover-1.jpg +0 -0
  282. package/lowcode/popover/meta.ts +332 -0
  283. package/lowcode/popover/snippets.ts +10 -0
  284. package/lowcode/progress/__screenshots__/progress-1.png +0 -0
  285. package/lowcode/progress/__screenshots__/progress-2.png +0 -0
  286. package/lowcode/progress/meta.ts +142 -0
  287. package/lowcode/progress/snippets.ts +24 -0
  288. package/lowcode/radio/__screenshots__/radio-1.png +0 -0
  289. package/lowcode/radio/meta.ts +69 -0
  290. package/lowcode/radio/snippets.ts +35 -0
  291. package/lowcode/radio.group/__screenshots__/radio-group-1.png +0 -0
  292. package/lowcode/radio.group/meta.ts +213 -0
  293. package/lowcode/rate/__screenshots__/rate-1.png +0 -0
  294. package/lowcode/rate/meta.ts +132 -0
  295. package/lowcode/rate/snippets.ts +12 -0
  296. package/lowcode/result/__screenshots__/result-1.png +0 -0
  297. package/lowcode/result/meta.ts +53 -0
  298. package/lowcode/result/snippets.ts +14 -0
  299. package/lowcode/select/__screenshots__/select-1.png +0 -0
  300. package/lowcode/select/meta.ts +427 -0
  301. package/lowcode/select/snippets.ts +28 -0
  302. package/lowcode/skeleton/__screenshots__/skeleton-1.png +0 -0
  303. package/lowcode/skeleton/meta.ts +63 -0
  304. package/lowcode/skeleton/snippets.ts +13 -0
  305. package/lowcode/slider/__screenshots__/slider-1.png +0 -0
  306. package/lowcode/slider/meta.ts +218 -0
  307. package/lowcode/slider/snippets.ts +12 -0
  308. package/lowcode/slot/meta.ts +61 -0
  309. package/lowcode/slot/view.tsx +58 -0
  310. package/lowcode/space/__screenshots__/space-1.png +0 -0
  311. package/lowcode/space/meta.ts +65 -0
  312. package/lowcode/space/snippets.ts +24 -0
  313. package/lowcode/spin/__screenshots__/spin-1.png +0 -0
  314. package/lowcode/spin/meta.ts +60 -0
  315. package/lowcode/spin/snippets.ts +13 -0
  316. package/lowcode/statistic/__screenshots__/statistic-1.png +0 -0
  317. package/lowcode/statistic/meta.ts +67 -0
  318. package/lowcode/statistic/snippets.ts +13 -0
  319. package/lowcode/steps/__screenshots__/steps-1.png +0 -0
  320. package/lowcode/steps/meta.ts +281 -0
  321. package/lowcode/steps/snippets.ts +36 -0
  322. package/lowcode/steps.step/meta.ts +54 -0
  323. package/lowcode/steps.step/snippets.ts +1 -0
  324. package/lowcode/switch/__screenshots__/switch-1.png +0 -0
  325. package/lowcode/switch/meta.ts +122 -0
  326. package/lowcode/switch/snippets.ts +12 -0
  327. package/lowcode/table/__screenshots__/table-1.png +0 -0
  328. package/lowcode/table/meta.ts +847 -0
  329. package/lowcode/table/snippets.ts +43 -0
  330. package/lowcode/tabs/__screenshots__/tabs-1.jpg +0 -0
  331. package/lowcode/tabs/__screenshots__/tabs-2.jpg +0 -0
  332. package/lowcode/tabs/__screenshots__/tabs-3.jpg +0 -0
  333. package/lowcode/tabs/meta.ts +415 -0
  334. package/lowcode/tabs/snippets.ts +86 -0
  335. package/lowcode/tabs.tab-pane/meta.ts +78 -0
  336. package/lowcode/tag/__screenshots__/tag-1.png +0 -0
  337. package/lowcode/tag/meta.ts +69 -0
  338. package/lowcode/tag/snippets.ts +13 -0
  339. package/lowcode/time-picker/__screenshots__/time-picker-1.png +0 -0
  340. package/lowcode/time-picker/meta.ts +224 -0
  341. package/lowcode/time-picker/snippets.ts +10 -0
  342. package/lowcode/timeline/__screenshots__/timeline-1.jpg +0 -0
  343. package/lowcode/timeline/meta.ts +189 -0
  344. package/lowcode/timeline/snippets.ts +21 -0
  345. package/lowcode/timeline.item/__screenshots__/timeline-1.jpg +0 -0
  346. package/lowcode/timeline.item/meta.ts +53 -0
  347. package/lowcode/timeline.item/snippets.ts +10 -0
  348. package/lowcode/tooltip/__screenshots__/tooltip-1.jpg +0 -0
  349. package/lowcode/tooltip/meta.ts +306 -0
  350. package/lowcode/tooltip/snippets.ts +12 -0
  351. package/lowcode/transfer/__screenshots__/transfer-1.png +0 -0
  352. package/lowcode/transfer/meta.ts +304 -0
  353. package/lowcode/transfer/snippets.ts +42 -0
  354. package/lowcode/tree/__screenshots__/tree-1.jpg +0 -0
  355. package/lowcode/tree/meta.ts +377 -0
  356. package/lowcode/tree/snippets.ts +30 -0
  357. package/lowcode/tree-select/__screenshots__/tree-select-1.png +0 -0
  358. package/lowcode/tree-select/meta.ts +314 -0
  359. package/lowcode/tree-select/snippets.ts +34 -0
  360. package/lowcode/typography.link/__screenshots__/typography-link-1.png +0 -0
  361. package/lowcode/typography.link/meta.ts +44 -0
  362. package/lowcode/typography.link/snippets.ts +14 -0
  363. package/lowcode/typography.paragraph/__screenshots__/typography-paragraph-1.png +0 -0
  364. package/lowcode/typography.paragraph/meta.ts +129 -0
  365. package/lowcode/typography.paragraph/snippets.ts +14 -0
  366. package/lowcode/typography.text/__screenshots__/typography-text-1.png +0 -0
  367. package/lowcode/typography.text/__screenshots__/typography-text-2.png +0 -0
  368. package/lowcode/typography.text/__screenshots__/typography-text-3.png +0 -0
  369. package/lowcode/typography.text/meta.ts +200 -0
  370. package/lowcode/typography.text/snippets.ts +34 -0
  371. package/lowcode/typography.title/__screenshots__/typography-title-1.png +0 -0
  372. package/lowcode/typography.title/__screenshots__/typography-title-2.png +0 -0
  373. package/lowcode/typography.title/__screenshots__/typography-title-3.png +0 -0
  374. package/lowcode/typography.title/__screenshots__/typography-title-4.png +0 -0
  375. package/lowcode/typography.title/meta.ts +130 -0
  376. package/lowcode/typography.title/snippets.ts +46 -0
  377. package/lowcode/upload/__screenshots__/upload-1.png +0 -0
  378. package/lowcode/upload/meta.ts +439 -0
  379. package/lowcode/upload/snippets.ts +16 -0
  380. package/package.json +37 -3
  381. package/.fatherrc.ts +0 -7
  382. package/CHANGELOG.md +0 -7
  383. package/tsconfig.json +0 -14
@@ -0,0 +1,68 @@
1
+ export default [
2
+ {
3
+ title: '主按钮',
4
+ screenshot: require('./__screenshots__/button-1.png'),
5
+ schema: {
6
+ componentName: 'Button',
7
+ props: {
8
+ type: 'primary',
9
+ children: '主按钮',
10
+ },
11
+ },
12
+ },
13
+ {
14
+ title: '次按钮',
15
+ screenshot: require('./__screenshots__/button-2.png'),
16
+ schema: {
17
+ componentName: 'Button',
18
+ props: {
19
+ type: 'default',
20
+ children: '次按钮',
21
+ },
22
+ },
23
+ },
24
+ {
25
+ title: '危险按钮',
26
+ screenshot: require('./__screenshots__/button-3.png'),
27
+ schema: {
28
+ componentName: 'Button',
29
+ props: {
30
+ type: 'danger',
31
+ children: '危险按钮',
32
+ },
33
+ },
34
+ },
35
+ {
36
+ title: '文字按钮',
37
+ screenshot: require('./__screenshots__/button-4.png'),
38
+ schema: {
39
+ componentName: 'Button',
40
+ props: {
41
+ type: 'text',
42
+ children: '文字按钮',
43
+ },
44
+ },
45
+ },
46
+ {
47
+ title: '虚框按钮',
48
+ screenshot: require('./__screenshots__/button-5.png'),
49
+ schema: {
50
+ componentName: 'Button',
51
+ props: {
52
+ type: 'dashed',
53
+ children: '虚框按钮',
54
+ },
55
+ },
56
+ },
57
+ {
58
+ title: '链接按钮',
59
+ screenshot: require('./__screenshots__/button-6.png'),
60
+ schema: {
61
+ componentName: 'Button',
62
+ props: {
63
+ type: 'link',
64
+ children: '链接按钮',
65
+ },
66
+ },
67
+ },
68
+ ];
@@ -0,0 +1,133 @@
1
+ import snippets from "./snippets";
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: "Calendar",
6
+ title: "日历",
7
+ category: "数据展示",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Calendar",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ configure: {
20
+ props: [
21
+ {
22
+ name: "defaultValue",
23
+ title: { label: "默认值", tip: "默认展示的日期" },
24
+ propType: "date",
25
+ setter: "DateSetter",
26
+ },
27
+ // {
28
+ // name: 'dateCellRender',
29
+ // title: {
30
+ // label: '自定义日期追加渲染',
31
+ // tip: '自定义渲染日期单元格,返回内容会被追加到单元格',
32
+ // },
33
+ // propType: 'func',
34
+ // },
35
+ // {
36
+ // name: 'dateFullCellRender',
37
+ // title: {
38
+ // label: '自定义渲染日期单元格,返回内容覆盖单元格',
39
+ // tip: '自定义渲染日期单元格,返回内容覆盖单元格',
40
+ // },
41
+ // propType: 'func',
42
+ // },
43
+ {
44
+ name: "disabledDate",
45
+ title: { label: "不可选日期", tip: "不可选择的日期" },
46
+ propType: "func",
47
+ },
48
+ {
49
+ name: "fullscreen",
50
+ title: { label: "全屏显示", tip: "是否全屏显示" },
51
+ propType: "bool",
52
+ defaultValue: true,
53
+ },
54
+ // {
55
+ // name: 'locale',
56
+ // title: { label: '国际化配置', tip: '国际化配置' },
57
+ // propType: 'object',
58
+ // },
59
+ {
60
+ name: "mode",
61
+ title: { label: "初始模式", tip: "初始模式" },
62
+ propType: { type: "oneOf", value: ["month", "year"] },
63
+ defaultValue: "month",
64
+ },
65
+ // {
66
+ // name: 'monthCellRender',
67
+ // title: {
68
+ // label: '自定义渲染月单元格,返回内容会被追加到单元格',
69
+ // tip: '自定义渲染月单元格,返回内容会被追加到单元格',
70
+ // },
71
+ // propType: 'func',
72
+ // },
73
+ // {
74
+ // name: 'monthFullCellRender',
75
+ // title: {
76
+ // label: '自定义渲染月单元格,返回内容覆盖单元格',
77
+ // tip: '自定义渲染月单元格,返回内容覆盖单元格',
78
+ // },
79
+ // propType: 'func',
80
+ // },
81
+ // {
82
+ // name: 'validRange',
83
+ // title: { label: '设置可以显示的日期', tip: '设置可以显示的日期' },
84
+ // propType: { type: 'arrayOf', value: 'object' },
85
+ // },
86
+ // {
87
+ // name: 'value',
88
+ // title: { label: '当前值', tip: '展示日期' },
89
+ // propType: 'object',
90
+ // },
91
+ {
92
+ name: "onPanelChange",
93
+ title: { label: "日期面板变化回调", tip: "日期面板变化回调" },
94
+ propType: "func",
95
+ },
96
+ {
97
+ name: "onSelect",
98
+ title: { label: "点击选择日期回调", tip: "点击选择日期回调" },
99
+ propType: "func",
100
+ },
101
+ {
102
+ name: "onChange",
103
+ title: { label: "日期变化回调", tip: "日期变化回调" },
104
+ propType: "func",
105
+ },
106
+ // {
107
+ // name: 'headerRender',
108
+ // title: { label: '自定义头部内容', tip: '自定义头部内容' },
109
+ // propType: 'func',
110
+ // },
111
+ ],
112
+ supports: {
113
+ style: true,
114
+ events: [
115
+ {
116
+ name: "onPanelChange",
117
+ template:
118
+ "onPanelChange(date,mode,${extParams}){\n// 日期面板变化回调\nconsole.log('onPanelChange', date, mode);}",
119
+ },
120
+ {
121
+ name: "onSelect",
122
+ template:
123
+ "onSelect(date,${extParams}){\n// 点击选择日期回调\nconsole.log('onSelect', date);}",
124
+ },
125
+ {
126
+ name: "onChange",
127
+ template:
128
+ "onChange(date,${extParams}){\n// 日期变化回调\nconsole.log('onChange', date);}",
129
+ },
130
+ ],
131
+ },
132
+ },
133
+ };
@@ -0,0 +1,10 @@
1
+ export default [
2
+ {
3
+ title: '日历',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/calendar-1.jpg',
5
+ schema: {
6
+ componentName: 'Calendar',
7
+ props: {},
8
+ },
9
+ },
10
+ ];
@@ -0,0 +1,97 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Card',
6
+ title: '卡片',
7
+ category: '数据展示',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Card",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ configure: {
20
+ props: [
21
+ {
22
+ name: 'title',
23
+ title: { label: '卡片标题', tip: '卡片标题' },
24
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
25
+ },
26
+ // {
27
+ // name: 'actions',
28
+ // title: { label: '卡片操作组', tip: '卡片操作组,位置在卡片底部' },
29
+ // propType: { type: 'arrayOf', value: 'node' },
30
+ // },
31
+ // {
32
+ // name: 'headStyle',
33
+ // title: { label: '标题区域样式', tip: '自定义标题区域样式' },
34
+ // propType: 'object',
35
+ // },
36
+ // {
37
+ // name: 'bodyStyle',
38
+ // title: { label: '内容区域样式', tip: '内容区域自定义样式' },
39
+ // propType: 'object',
40
+ // },
41
+ {
42
+ name: 'bordered',
43
+ title: { label: '显示边框', tip: '是否有边框' },
44
+ propType: 'bool',
45
+ defaultValue: true,
46
+ },
47
+ {
48
+ name: 'cover',
49
+ title: { label: '卡片封面', tip: '卡片封面' },
50
+ propType: 'node',
51
+ },
52
+ {
53
+ name: 'extra',
54
+ title: { label: '额外元素', tip: '卡片右上角的操作区域' },
55
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
56
+ },
57
+ {
58
+ name: 'hoverable',
59
+ title: { label: '可浮起', tip: '鼠标移过时可浮起' },
60
+ propType: 'bool',
61
+ defaultValue: false,
62
+ },
63
+ {
64
+ name: 'loading',
65
+ title: {
66
+ label: 'loading',
67
+ tip: '当卡片内容还在加载中时,可以用 loading 展示一个占位',
68
+ },
69
+ propType: 'bool',
70
+ defaultValue: false,
71
+ },
72
+ {
73
+ name: 'size',
74
+ title: { label: '尺寸', tip: 'card 的尺寸' },
75
+ propType: { type: 'oneOf', value: ['default', 'small'] },
76
+ defaultValue: 'default',
77
+ },
78
+ {
79
+ name: 'type',
80
+ title: { label: '卡片类型', tip: '卡片类型' },
81
+ propType: { type: 'oneOf', value: ['default', 'inner'] },
82
+ defaultValue: 'default',
83
+ },
84
+ ],
85
+ component: { isContainer: true },
86
+ supports: {
87
+ style: true,
88
+ events: [
89
+ {
90
+ name: 'onTabChange',
91
+ template:
92
+ "onTabChange(key,${extParams}){\n// 页签切换的回调\nconsole.log('onTabChange', key);}",
93
+ },
94
+ ],
95
+ },
96
+ },
97
+ };
@@ -0,0 +1,12 @@
1
+ export default [
2
+ {
3
+ title: '卡片',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/card-1.png',
5
+ schema: {
6
+ componentName: 'Card',
7
+ props: {
8
+ title: 'Default size card',
9
+ },
10
+ },
11
+ },
12
+ ];
@@ -0,0 +1,148 @@
1
+ import { uuid } from "../_utils/utils";
2
+
3
+ import snippets from "./snippets";
4
+
5
+ export default {
6
+ snippets,
7
+ componentName: "Carousel",
8
+ title: "走马灯",
9
+ category: "数据展示",
10
+ docUrl: "",
11
+ screenshot: "",
12
+ devMode: "proCode",
13
+ npm: {
14
+ package: "@pisell/materials",
15
+ version: "1.0.1",
16
+ exportName: "Carousel",
17
+ main: "src/index.tsx",
18
+ destructuring: true,
19
+ subName: "",
20
+ },
21
+ configure: {
22
+ props: [
23
+ {
24
+ name: "afterChange",
25
+ title: { label: "切换面板的回调", tip: "切换面板的回调" },
26
+ propType: "func",
27
+ },
28
+ {
29
+ name: "autoplay",
30
+ title: { label: "是否自动切换", tip: "是否自动切换" },
31
+ propType: "bool",
32
+ defaultValue: false,
33
+ },
34
+ {
35
+ name: "beforeChange",
36
+ title: { label: "切换面板的回调", tip: "切换面板的回调" },
37
+ propType: "func",
38
+ },
39
+ {
40
+ name: "dotPosition",
41
+ title: {
42
+ label: "指示点位置",
43
+ tip: "面板指示点位置,可选 `top` `bottom` `left` `right`",
44
+ },
45
+ propType: {
46
+ type: "oneOf",
47
+ value: ["top", "bottom", "left", "right"],
48
+ },
49
+ },
50
+ {
51
+ name: "dots",
52
+ title: {
53
+ label: "显示指示点",
54
+ tip: "是否显示面板指示点",
55
+ },
56
+ propType: { type: "oneOfType", value: ["bool", "object"] },
57
+ },
58
+ {
59
+ name: "easing",
60
+ title: { label: "动画效果", tip: "动画效果" },
61
+ propType: "string",
62
+ },
63
+ {
64
+ name: "effect",
65
+ title: { label: "动画效果函数", tip: "动画效果函数" },
66
+ propType: { type: "oneOf", value: ["scrollx", "fade"] },
67
+ },
68
+ {
69
+ name: "items",
70
+ title: "折叠项",
71
+ setter: {
72
+ componentName: "ArraySetter",
73
+ props: {
74
+ itemSetter: {
75
+ componentName: "ObjectSetter",
76
+ initialValue: () => {
77
+ return {
78
+ key: uuid(),
79
+ };
80
+ },
81
+ },
82
+ },
83
+ },
84
+ extraProps: {
85
+ getValue(target, fieldValue) {
86
+ console.log("getValue", target.node.children.length);
87
+ const map = target.node.children.map((child) => {
88
+ const key = child.getPropValue("key")
89
+ ? String(child.getPropValue("key"))
90
+ : child.id;
91
+ return { key };
92
+ });
93
+ return map;
94
+ },
95
+ setValue(target, value) {
96
+ const { node } = target;
97
+ const map = {};
98
+ if (!Array.isArray(value)) {
99
+ value = [];
100
+ }
101
+ value.forEach((item) => {
102
+ const tabItem = Object.assign({}, item);
103
+ map[item.key] = tabItem;
104
+ });
105
+
106
+ node.children.mergeChildren(
107
+ (child) => {
108
+ const key = String(child.getPropValue("key"));
109
+ if (Object.hasOwnProperty.call(map, key)) {
110
+ delete map[key];
111
+ return false;
112
+ }
113
+ return true;
114
+ },
115
+ () => {
116
+ const items = [];
117
+ for (const key in map) {
118
+ if (Object.hasOwnProperty.call(map, key)) {
119
+ items.push({
120
+ componentName: "Card",
121
+ props: map[key],
122
+ });
123
+ }
124
+ }
125
+ return items;
126
+ },
127
+ (child1, child2) => {
128
+ const a = value.findIndex(
129
+ (item) =>
130
+ String(item.key) === String(child1.getPropValue("key"))
131
+ );
132
+ const b = value.findIndex(
133
+ (item) =>
134
+ String(item.key) === String(child2.getPropValue("key"))
135
+ );
136
+ return a - b;
137
+ }
138
+ );
139
+ },
140
+ },
141
+ },
142
+ ],
143
+ supports: { style: true },
144
+ component: {
145
+ isContainer: true,
146
+ },
147
+ },
148
+ };
@@ -0,0 +1,23 @@
1
+ export default [
2
+ {
3
+ title: '走马灯',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/carousel-1.jpg',
5
+ schema: {
6
+ componentName: 'Carousel',
7
+ children: [
8
+ {
9
+ componentName: 'Card',
10
+ props: {
11
+ key: 'panel-1',
12
+ },
13
+ },
14
+ {
15
+ componentName: 'Card',
16
+ props: {
17
+ key: 'panel-2',
18
+ },
19
+ },
20
+ ],
21
+ },
22
+ },
23
+ ];
@@ -0,0 +1,175 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Cascader',
6
+ title: '级联选择',
7
+ category: '表单',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Cascader",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ configure: {
20
+ props: [
21
+ {
22
+ name: 'defaultValue',
23
+ title: { label: '默认的选中项', tip: '默认的选中项' },
24
+ propType: {
25
+ type: 'arrayOf',
26
+ value: { type: 'oneOfType', value: ['string', 'number'] },
27
+ },
28
+ },
29
+ {
30
+ name: 'value',
31
+ title: { label: '当前选中项', tip: '当前选中项' },
32
+ propType: {
33
+ type: 'arrayOf',
34
+ value: { type: 'oneOfType', value: ['string', 'number'] },
35
+ },
36
+ },
37
+ {
38
+ name: 'options',
39
+ title: { label: '选项数据', tip: '可选项数据源' },
40
+ setter: 'JsonSetter',
41
+ },
42
+ {
43
+ name: 'allowClear',
44
+ title: { label: '支持清除', tip: '是否允许清除' },
45
+ propType: 'bool',
46
+ defaultValue: true,
47
+ setter: 'BoolSetter'
48
+ },
49
+ {
50
+ name: 'autoFocus',
51
+ title: { label: '自动聚焦', tip: '自动获取焦点' },
52
+ propType: 'bool',
53
+ defaultValue: false,
54
+ setter: 'BoolSetter'
55
+ },
56
+ {
57
+ name: 'bordered',
58
+ title: { label: '显示边框', tip: '是否有边框' },
59
+ propType: 'bool',
60
+ defaultValue: true,
61
+ setter: 'BoolSetter'
62
+ },
63
+ {
64
+ name: 'changeOnSelect',
65
+ title: {
66
+ label: '点选触发',
67
+ tip: '点选每级菜单选项值都会触发onChange',
68
+ },
69
+ propType: 'bool',
70
+ defaultValue: false,
71
+ setter: 'BoolSetter'
72
+ },
73
+ {
74
+ name: 'className',
75
+ title: { label: '自定义类名', tip: '自定义类名' },
76
+ propType: 'string',
77
+ setter: 'StringSetter'
78
+ },
79
+ {
80
+ name: 'disabled',
81
+ title: { label: '是否禁用', tip: '是否为禁用状态' },
82
+ propType: 'bool',
83
+ defaultValue: false,
84
+ setter: 'BoolSetter'
85
+ },
86
+ {
87
+ name: 'expandTrigger',
88
+ title: { label: '菜单触发方式', tip: '触发次级菜单的展开的方式' },
89
+ propType: { type: 'oneOf', value: ['click', 'hover'] },
90
+ },
91
+ {
92
+ name: 'notFoundContent',
93
+ title: { label: '无数据展示', tip: '无数据' },
94
+ propType: 'string',
95
+ setter: 'StringSetter'
96
+ },
97
+ {
98
+ name: 'placeholder',
99
+ title: { label: '输入框占位文本', tip: '输入框占位文本' },
100
+ propType: 'string',
101
+ setter: 'StringSetter'
102
+ },
103
+ {
104
+ name: 'placement',
105
+ title: { label: '浮层预设位置', tip: '浮层预设位置' },
106
+ propType: {
107
+ type: 'oneOf',
108
+ value: ['bottomLeft', 'bottomRight', 'topLeft', 'topRight'],
109
+ },
110
+ },
111
+ {
112
+ name: 'showSearch',
113
+ title: { label: '支持搜索', tip: '在选择框中显示搜索框' },
114
+ propType: 'bool',
115
+ defaultValue: false,
116
+ setter: 'BoolSetter'
117
+ },
118
+ {
119
+ name: 'size',
120
+ title: { label: '尺寸', tip: '输入框大小' },
121
+ propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
122
+ setter: {
123
+ componentName: 'SelectSetter',
124
+ props: {
125
+ options: [
126
+ {
127
+ title: '大',
128
+ value: 'large',
129
+ },
130
+ {
131
+ title: '中',
132
+ value: 'middle',
133
+ },
134
+ {
135
+ title: '小',
136
+ value: 'small',
137
+ },
138
+ ],
139
+ },
140
+ },
141
+ defaultValue: 'middle',
142
+ },
143
+ {
144
+ name: 'style',
145
+ title: { label: '自定义样式', tip: '自定义样式' },
146
+ propType: 'object',
147
+ },
148
+ {
149
+ name: 'onChange',
150
+ title: { label: '选择完成后的回调', tip: '选择完成后的回调' },
151
+ propType: 'func',
152
+ },
153
+ {
154
+ name: 'onPopupVisibleChange',
155
+ title: { label: '显示/隐藏浮层的回调', tip: '显示/隐藏浮层的回调' },
156
+ propType: 'func',
157
+ },
158
+ ],
159
+ supports: {
160
+ style: true,
161
+ events: [
162
+ {
163
+ name: 'onChange',
164
+ template:
165
+ "onChange(value,selectedOptions,${extParams}){\n// 选择完成后的回调\nconsole.log('onChange', value, selectedOptions);}",
166
+ },
167
+ {
168
+ name: 'onPopupVisibleChange',
169
+ template:
170
+ "onPopupVisibleChange(value,selectedOptions,${extParams}){\n// 显示/隐藏浮层的回调\nconsole.log('onPopupVisibleChange', value, selectedOptions);}",
171
+ },
172
+ ],
173
+ },
174
+ },
175
+ };