@pisell/materials 1.0.1 → 1.0.2

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 (315) hide show
  1. package/.tmp/assets-daily.json +93 -0
  2. package/.tmp/assets-dev.json +93 -0
  3. package/.tmp/assets-prod.json +93 -0
  4. package/.tmp/default.view.js +24 -0
  5. package/.tmp/index.jsx +279 -0
  6. package/.tmp/meta.js +251 -0
  7. package/.tmp/preview.jsx +72 -0
  8. package/.tmp/view.js +25 -0
  9. package/CHANGELOG.md +6 -0
  10. package/build/lowcode/assets-daily.json +93 -0
  11. package/build/lowcode/assets-dev.json +93 -0
  12. package/build/lowcode/assets-prod.json +93 -0
  13. package/build/lowcode/designer.html +303 -0
  14. package/build/lowcode/index.html +305 -0
  15. package/build/lowcode/index.js +1 -0
  16. package/build/lowcode/meta.js +9 -0
  17. package/build/lowcode/preview.css +1 -0
  18. package/build/lowcode/preview.html +35 -0
  19. package/build/lowcode/preview.js +304 -0
  20. package/build/lowcode/render/default/view.js +22 -0
  21. package/build/lowcode/view.js +22 -0
  22. package/build.lowcode.js +46 -0
  23. package/lowcode/_setters/antd-icon-setter/index.tsx +285 -0
  24. package/lowcode/_setters/antd-icon-setter/style.less +69 -0
  25. package/lowcode/_setters/index.tsx +1 -0
  26. package/lowcode/_utils/hoc.tsx +93 -0
  27. package/lowcode/_utils/transform-meta.ts +343 -0
  28. package/lowcode/_utils/utils.ts +6 -0
  29. package/lowcode/affix/__screenshots__/affix-1.jpg +0 -0
  30. package/lowcode/affix/meta.ts +68 -0
  31. package/lowcode/affix/snippets.ts +20 -0
  32. package/lowcode/alert/__screenshots__/alert-1.png +0 -0
  33. package/lowcode/alert/__screenshots__/alert-2.png +0 -0
  34. package/lowcode/alert/__screenshots__/alert-3.png +0 -0
  35. package/lowcode/alert/__screenshots__/alert-4.png +0 -0
  36. package/lowcode/alert/meta.ts +102 -0
  37. package/lowcode/alert/snippets.ts +54 -0
  38. package/lowcode/anchor/__screenshots__/anchor-1.png +0 -0
  39. package/lowcode/anchor/snippets.ts +30 -0
  40. package/lowcode/anchor.link/meta.ts +29 -0
  41. package/lowcode/anchor.link/snippets.ts +1 -0
  42. package/lowcode/auto-complete/__screenshots__/auto-complete-1.png +0 -0
  43. package/lowcode/auto-complete/meta.ts +453 -0
  44. package/lowcode/auto-complete/snippets.ts +26 -0
  45. package/lowcode/avatar/__screenshots__/avatar-1.jpg +0 -0
  46. package/lowcode/avatar/meta.ts +82 -0
  47. package/lowcode/avatar/snippets.ts +12 -0
  48. package/lowcode/badge/__screenshots__/badge-1.png +0 -0
  49. package/lowcode/badge/meta.ts +94 -0
  50. package/lowcode/badge/snippets.ts +12 -0
  51. package/lowcode/breadcrumb/__screenshots__/breadcrumb-1.jpg +0 -0
  52. package/lowcode/breadcrumb/meta.ts +136 -0
  53. package/lowcode/breadcrumb/snippets.ts +44 -0
  54. package/lowcode/button/__screenshots__/button-1.png +0 -0
  55. package/lowcode/button/__screenshots__/button-2.png +0 -0
  56. package/lowcode/button/__screenshots__/button-3.png +0 -0
  57. package/lowcode/button/__screenshots__/button-4.png +0 -0
  58. package/lowcode/button/__screenshots__/button-5.png +0 -0
  59. package/lowcode/button/__screenshots__/button-6.png +0 -0
  60. package/lowcode/button/meta.ts +510 -0
  61. package/lowcode/button/snippets.ts +68 -0
  62. package/lowcode/calendar/__screenshots__/calendar-1.jpg +0 -0
  63. package/lowcode/calendar/meta.ts +133 -0
  64. package/lowcode/calendar/snippets.ts +10 -0
  65. package/lowcode/card/__screenshots__/card-1.png +0 -0
  66. package/lowcode/card/meta.ts +97 -0
  67. package/lowcode/card/snippets.ts +12 -0
  68. package/lowcode/carousel/__screenshots__/carousel-1.jpg +0 -0
  69. package/lowcode/carousel/meta.ts +148 -0
  70. package/lowcode/carousel/snippets.ts +23 -0
  71. package/lowcode/cascader/__screenshots__/cascader-1.png +0 -0
  72. package/lowcode/cascader/meta.ts +175 -0
  73. package/lowcode/cascader/snippets.ts +46 -0
  74. package/lowcode/checkbox/__screenshots__/checkbox-1.png +0 -0
  75. package/lowcode/checkbox/meta.ts +85 -0
  76. package/lowcode/checkbox/snippets.ts +35 -0
  77. package/lowcode/checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
  78. package/lowcode/checkbox.group/meta.ts +150 -0
  79. package/lowcode/collapse/__screenshots__/collapse-1.png +0 -0
  80. package/lowcode/collapse/meta.ts +221 -0
  81. package/lowcode/collapse/snippets.ts +28 -0
  82. package/lowcode/collapse.pane/meta.ts +84 -0
  83. package/lowcode/config-provider/__screenshots__/config-provider-1.jpg +0 -0
  84. package/lowcode/config-provider/meta.ts +140 -0
  85. package/lowcode/config-provider/snippets.ts +10 -0
  86. package/lowcode/date-picker/__screenshots__/date-picker-1.png +0 -0
  87. package/lowcode/date-picker/__screenshots__/date-picker-2.png +0 -0
  88. package/lowcode/date-picker/__screenshots__/date-picker-3.png +0 -0
  89. package/lowcode/date-picker/__screenshots__/date-picker-4.png +0 -0
  90. package/lowcode/date-picker/__screenshots__/date-picker-5.png +0 -0
  91. package/lowcode/date-picker/meta.ts +281 -0
  92. package/lowcode/date-picker/snippets.ts +50 -0
  93. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-1.png +0 -0
  94. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-2.png +0 -0
  95. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-3.png +0 -0
  96. package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-4.png +0 -0
  97. package/lowcode/date-picker.range-picker/meta.ts +356 -0
  98. package/lowcode/date-picker.range-picker/snippets.ts +44 -0
  99. package/lowcode/descriptions/__screenshots__/descriptions-1.jpg +0 -0
  100. package/lowcode/descriptions/meta.ts +230 -0
  101. package/lowcode/descriptions/snippets.ts +18 -0
  102. package/lowcode/descriptions.item/meta.ts +37 -0
  103. package/lowcode/directory-tree/meta.ts +2747 -0
  104. package/lowcode/divider/__screenshots__/divider-1.png +0 -0
  105. package/lowcode/divider/__screenshots__/divider-2.png +0 -0
  106. package/lowcode/divider/meta.ts +70 -0
  107. package/lowcode/divider/snippets.ts +27 -0
  108. package/lowcode/drawer/__screenshots__/drawer-1.png +0 -0
  109. package/lowcode/drawer/__screenshots__/drawer-2.png +0 -0
  110. package/lowcode/drawer/meta.ts +420 -0
  111. package/lowcode/drawer/snippets.ts +40 -0
  112. package/lowcode/dropdown/__screenshots__/dropdown-1.png +0 -0
  113. package/lowcode/dropdown/meta.ts +143 -0
  114. package/lowcode/dropdown/snippets.ts +73 -0
  115. package/lowcode/empty/__screenshots__/empty-1.png +0 -0
  116. package/lowcode/empty/meta.ts +40 -0
  117. package/lowcode/empty/snippets.ts +10 -0
  118. package/lowcode/form/__screenshots__/form-1.png +0 -0
  119. package/lowcode/form/meta.ts +380 -0
  120. package/lowcode/form/snippets.ts +511 -0
  121. package/lowcode/form.item/__screenshots__/form-item-1.jpg +0 -0
  122. package/lowcode/form.item/meta.ts +348 -0
  123. package/lowcode/form.item/snippets.ts +12 -0
  124. package/lowcode/form.list/meta.ts +42 -0
  125. package/lowcode/form.list/snippets.ts +11 -0
  126. package/lowcode/grid.col/meta.ts +116 -0
  127. package/lowcode/grid.col/snippets.ts +1 -0
  128. package/lowcode/grid.row/__screenshots__/1-1-1-1.png +0 -0
  129. package/lowcode/grid.row/__screenshots__/1-1-1.png +0 -0
  130. package/lowcode/grid.row/__screenshots__/1-1.png +0 -0
  131. package/lowcode/grid.row/__screenshots__/1-3.png +0 -0
  132. package/lowcode/grid.row/meta.ts +118 -0
  133. package/lowcode/grid.row/snippets.ts +108 -0
  134. package/lowcode/icon/__screenshots__/icon-1.jpg +0 -0
  135. package/lowcode/icon/meta.ts +74 -0
  136. package/lowcode/icon/snippets.ts +13 -0
  137. package/lowcode/image/__screenshots__/image-1.png +0 -0
  138. package/lowcode/image/meta.ts +53 -0
  139. package/lowcode/image/snippets.ts +14 -0
  140. package/lowcode/input/__screenshots__/input-1.png +0 -0
  141. package/lowcode/input/meta.ts +190 -0
  142. package/lowcode/input/snippets.ts +12 -0
  143. package/lowcode/input-number/__screenshots__/input-number-1.png +0 -0
  144. package/lowcode/input-number/meta.ts +213 -0
  145. package/lowcode/input-number/snippets.ts +12 -0
  146. package/lowcode/input.group/__screenshots__/input-group-1.jpg +0 -0
  147. package/lowcode/input.group/meta.ts +53 -0
  148. package/lowcode/input.group/snippets.ts +24 -0
  149. package/lowcode/input.password/__screenshots__/input-password-1.png +0 -0
  150. package/lowcode/input.password/meta.ts +192 -0
  151. package/lowcode/input.password/snippets.ts +12 -0
  152. package/lowcode/input.search/__screenshots__/input-search-1.png +0 -0
  153. package/lowcode/input.search/meta.ts +206 -0
  154. package/lowcode/input.search/snippets.ts +12 -0
  155. package/lowcode/input.text-area/__screenshots__/input-text-area-1.png +0 -0
  156. package/lowcode/input.text-area/meta.ts +210 -0
  157. package/lowcode/input.text-area/snippets.ts +16 -0
  158. package/lowcode/list/__screenshots__/list-1.png +0 -0
  159. package/lowcode/list/meta.ts +499 -0
  160. package/lowcode/list/snippets.ts +201 -0
  161. package/lowcode/list.item/meta.ts +58 -0
  162. package/lowcode/list.item.meta/meta.ts +49 -0
  163. package/lowcode/login/meta.ts +56 -0
  164. package/lowcode/mentions/__screenshots__/mentions-1.png +0 -0
  165. package/lowcode/mentions/meta.ts +159 -0
  166. package/lowcode/mentions/snippets.ts +10 -0
  167. package/lowcode/menu/__screenshots__/menu-1.jpg +0 -0
  168. package/lowcode/menu/meta.ts +248 -0
  169. package/lowcode/menu/snippets.ts +22 -0
  170. package/lowcode/menu/utils.ts +97 -0
  171. package/lowcode/menu.item/meta.ts +63 -0
  172. package/lowcode/menu.item/snippets.ts +1 -0
  173. package/lowcode/menu.item-group/__screenshots__/menu-item-group-1.png +0 -0
  174. package/lowcode/menu.item-group/meta.ts +110 -0
  175. package/lowcode/menu.item-group/snippets.ts +1 -0
  176. package/lowcode/menu.sub-menu/meta.ts +131 -0
  177. package/lowcode/menu.sub-menu/snippets.ts +1 -0
  178. package/lowcode/modal/__screenshots__/modal-1.png +0 -0
  179. package/lowcode/modal/__screenshots__/modal-2.png +0 -0
  180. package/lowcode/modal/meta.ts +270 -0
  181. package/lowcode/modal/snippets.ts +33 -0
  182. package/lowcode/page-header/__screenshots__/page-header-1.jpg +0 -0
  183. package/lowcode/page-header/meta.ts +157 -0
  184. package/lowcode/page-header/snippets.ts +13 -0
  185. package/lowcode/pagination/__screenshots__/pagination-1.jpg +0 -0
  186. package/lowcode/pagination/meta.ts +231 -0
  187. package/lowcode/pagination/snippets.ts +14 -0
  188. package/lowcode/popconfirm/__screenshots__/popconfirm-1.jpg +0 -0
  189. package/lowcode/popconfirm/meta.ts +121 -0
  190. package/lowcode/popconfirm/snippets.ts +21 -0
  191. package/lowcode/popover/__screenshots__/popover-1.jpg +0 -0
  192. package/lowcode/popover/meta.ts +332 -0
  193. package/lowcode/popover/snippets.ts +10 -0
  194. package/lowcode/progress/__screenshots__/progress-1.png +0 -0
  195. package/lowcode/progress/__screenshots__/progress-2.png +0 -0
  196. package/lowcode/progress/meta.ts +142 -0
  197. package/lowcode/progress/snippets.ts +24 -0
  198. package/lowcode/radio/__screenshots__/radio-1.png +0 -0
  199. package/lowcode/radio/meta.ts +69 -0
  200. package/lowcode/radio/snippets.ts +35 -0
  201. package/lowcode/radio.group/__screenshots__/radio-group-1.png +0 -0
  202. package/lowcode/radio.group/meta.ts +213 -0
  203. package/lowcode/rate/__screenshots__/rate-1.png +0 -0
  204. package/lowcode/rate/meta.ts +132 -0
  205. package/lowcode/rate/snippets.ts +12 -0
  206. package/lowcode/result/__screenshots__/result-1.png +0 -0
  207. package/lowcode/result/meta.ts +53 -0
  208. package/lowcode/result/snippets.ts +14 -0
  209. package/lowcode/select/__screenshots__/select-1.png +0 -0
  210. package/lowcode/select/meta.ts +427 -0
  211. package/lowcode/select/snippets.ts +28 -0
  212. package/lowcode/skeleton/__screenshots__/skeleton-1.png +0 -0
  213. package/lowcode/skeleton/meta.ts +63 -0
  214. package/lowcode/skeleton/snippets.ts +13 -0
  215. package/lowcode/slider/__screenshots__/slider-1.png +0 -0
  216. package/lowcode/slider/meta.ts +218 -0
  217. package/lowcode/slider/snippets.ts +12 -0
  218. package/lowcode/slot/meta.ts +61 -0
  219. package/lowcode/slot/view.tsx +58 -0
  220. package/lowcode/space/__screenshots__/space-1.png +0 -0
  221. package/lowcode/space/meta.ts +65 -0
  222. package/lowcode/space/snippets.ts +24 -0
  223. package/lowcode/spin/__screenshots__/spin-1.png +0 -0
  224. package/lowcode/spin/meta.ts +60 -0
  225. package/lowcode/spin/snippets.ts +13 -0
  226. package/lowcode/statistic/__screenshots__/statistic-1.png +0 -0
  227. package/lowcode/statistic/meta.ts +67 -0
  228. package/lowcode/statistic/snippets.ts +13 -0
  229. package/lowcode/steps/__screenshots__/steps-1.png +0 -0
  230. package/lowcode/steps/meta.ts +281 -0
  231. package/lowcode/steps/snippets.ts +36 -0
  232. package/lowcode/steps.step/meta.ts +54 -0
  233. package/lowcode/steps.step/snippets.ts +1 -0
  234. package/lowcode/switch/__screenshots__/switch-1.png +0 -0
  235. package/lowcode/switch/meta.ts +122 -0
  236. package/lowcode/switch/snippets.ts +12 -0
  237. package/lowcode/table/__screenshots__/table-1.png +0 -0
  238. package/lowcode/table/meta.ts +847 -0
  239. package/lowcode/table/snippets.ts +43 -0
  240. package/lowcode/tabs/__screenshots__/tabs-1.jpg +0 -0
  241. package/lowcode/tabs/__screenshots__/tabs-2.jpg +0 -0
  242. package/lowcode/tabs/__screenshots__/tabs-3.jpg +0 -0
  243. package/lowcode/tabs/meta.ts +415 -0
  244. package/lowcode/tabs/snippets.ts +86 -0
  245. package/lowcode/tabs.tab-pane/meta.ts +78 -0
  246. package/lowcode/tag/__screenshots__/tag-1.png +0 -0
  247. package/lowcode/tag/meta.ts +69 -0
  248. package/lowcode/tag/snippets.ts +13 -0
  249. package/lowcode/time-picker/__screenshots__/time-picker-1.png +0 -0
  250. package/lowcode/time-picker/meta.ts +224 -0
  251. package/lowcode/time-picker/snippets.ts +10 -0
  252. package/lowcode/timeline/__screenshots__/timeline-1.jpg +0 -0
  253. package/lowcode/timeline/meta.ts +189 -0
  254. package/lowcode/timeline/snippets.ts +21 -0
  255. package/lowcode/timeline.item/__screenshots__/timeline-1.jpg +0 -0
  256. package/lowcode/timeline.item/meta.ts +53 -0
  257. package/lowcode/timeline.item/snippets.ts +10 -0
  258. package/lowcode/tooltip/__screenshots__/tooltip-1.jpg +0 -0
  259. package/lowcode/tooltip/meta.ts +306 -0
  260. package/lowcode/tooltip/snippets.ts +12 -0
  261. package/lowcode/transfer/__screenshots__/transfer-1.png +0 -0
  262. package/lowcode/transfer/meta.ts +304 -0
  263. package/lowcode/transfer/snippets.ts +42 -0
  264. package/lowcode/tree/__screenshots__/tree-1.jpg +0 -0
  265. package/lowcode/tree/meta.ts +377 -0
  266. package/lowcode/tree/snippets.ts +30 -0
  267. package/lowcode/tree-select/__screenshots__/tree-select-1.png +0 -0
  268. package/lowcode/tree-select/meta.ts +314 -0
  269. package/lowcode/tree-select/snippets.ts +34 -0
  270. package/lowcode/typography.link/__screenshots__/typography-link-1.png +0 -0
  271. package/lowcode/typography.link/meta.ts +44 -0
  272. package/lowcode/typography.link/snippets.ts +14 -0
  273. package/lowcode/typography.paragraph/__screenshots__/typography-paragraph-1.png +0 -0
  274. package/lowcode/typography.paragraph/meta.ts +129 -0
  275. package/lowcode/typography.paragraph/snippets.ts +14 -0
  276. package/lowcode/typography.text/__screenshots__/typography-text-1.png +0 -0
  277. package/lowcode/typography.text/__screenshots__/typography-text-2.png +0 -0
  278. package/lowcode/typography.text/__screenshots__/typography-text-3.png +0 -0
  279. package/lowcode/typography.text/meta.ts +200 -0
  280. package/lowcode/typography.text/snippets.ts +34 -0
  281. package/lowcode/typography.title/__screenshots__/typography-title-1.png +0 -0
  282. package/lowcode/typography.title/__screenshots__/typography-title-2.png +0 -0
  283. package/lowcode/typography.title/__screenshots__/typography-title-3.png +0 -0
  284. package/lowcode/typography.title/__screenshots__/typography-title-4.png +0 -0
  285. package/lowcode/typography.title/meta.ts +130 -0
  286. package/lowcode/typography.title/snippets.ts +46 -0
  287. package/lowcode/upload/__screenshots__/upload-1.png +0 -0
  288. package/lowcode/upload/meta.ts +439 -0
  289. package/lowcode/upload/snippets.ts +16 -0
  290. package/package.json +29 -3
  291. package/src/components/auto-complete/index.tsx +6 -0
  292. package/src/components/button/index.tsx +12 -0
  293. package/src/components/calendar/index.tsx +10 -0
  294. package/src/components/cascader/index.tsx +6 -0
  295. package/src/components/checkbox/index.tsx +7 -0
  296. package/src/components/config-provider/index.tsx +27 -0
  297. package/src/components/date-picker/index.tsx +22 -0
  298. package/src/components/drawer/index.tsx +13 -0
  299. package/src/components/dropdown/index.tsx +13 -0
  300. package/src/components/form/index.tsx +97 -0
  301. package/src/components/icon/index.tsx +34 -0
  302. package/src/components/input/index.tsx +18 -0
  303. package/src/components/modal/index.tsx +18 -0
  304. package/src/components/radio/index.tsx +7 -0
  305. package/src/components/select/index.tsx +6 -0
  306. package/src/components/skeleton/index.tsx +6 -0
  307. package/src/components/slider/index.tsx +18 -0
  308. package/src/components/table/index.tsx +10 -0
  309. package/src/components/tabs/index.tsx +67 -0
  310. package/src/components/time-picker/index.tsx +9 -0
  311. package/src/components/tree-select/index.tsx +8 -0
  312. package/src/components/upload/index.tsx +5 -0
  313. package/src/index.tsx +141 -0
  314. package/src/utils/hoc.tsx +92 -0
  315. package/src/utils/warning.ts +3 -0
@@ -0,0 +1,53 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Input.Group',
6
+ title: '输入框组合',
7
+ category: '表单',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Input",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "Group",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'compact',
22
+ title: { label: '紧凑模式', tip: '是否用紧凑模式' },
23
+ propType: 'bool',
24
+ setter: 'BoolSetter'
25
+ },
26
+ {
27
+ name: 'size',
28
+ title: { label: '尺寸', tip: '尺寸大小' },
29
+ propType: { type: 'oneOf', value: ['large', 'default', 'small'] },
30
+ setter: {
31
+ componentName: 'RadioGroupSetter',
32
+ props: {
33
+ options: [
34
+ {
35
+ title: '大',
36
+ value: 'large',
37
+ },
38
+ {
39
+ title: '中',
40
+ value: 'middle',
41
+ },
42
+ {
43
+ title: '小',
44
+ value: 'small',
45
+ },
46
+ ],
47
+ },
48
+ },
49
+ defaultValue: 'default',
50
+ },
51
+ ],
52
+ configure: { component: { isContainer: true }, supports: { style: true } },
53
+ };
@@ -0,0 +1,24 @@
1
+ export default [
2
+ {
3
+ title: '输入框组合',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/input-group-1.jpg',
5
+ schema: {
6
+ componentName: 'Input.Group',
7
+ props: {},
8
+ children: [
9
+ {
10
+ componentName: 'Input',
11
+ props: {
12
+ placeholder: '请输入',
13
+ },
14
+ },
15
+ {
16
+ componentName: 'Input',
17
+ props: {
18
+ placeholder: '请输入',
19
+ },
20
+ },
21
+ ],
22
+ },
23
+ },
24
+ ];
@@ -0,0 +1,192 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Input.Password',
6
+ title: '密码框',
7
+ category: '表单',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Input",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "Password",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'defaultValue',
22
+ title: { label: '默认值', tip: '默认内容' },
23
+ propType: 'string',
24
+ setter: 'StringSetter',
25
+ },
26
+ {
27
+ name: 'value',
28
+ title: { label: '当前值', tip: '当前值' },
29
+ propType: 'string',
30
+ setter: 'StringSetter',
31
+ },
32
+ {
33
+ name: 'allowClear',
34
+ title: { label: '支持清除', tip: '是否允许清除' },
35
+ propType: 'bool',
36
+ setter: 'BoolSetter',
37
+ },
38
+ {
39
+ name: 'bordered',
40
+ title: { label: '显示边框', tip: '是否有边框' },
41
+ propType: 'bool',
42
+ defaultValue: true,
43
+ setter: 'BoolSetter'
44
+ },
45
+ {
46
+ name: 'disabled',
47
+ title: { label: '是否禁用', tip: '是否为禁用状态' },
48
+ propType: 'bool',
49
+ defaultValue: false,
50
+ setter: 'BoolSetter'
51
+ },
52
+ {
53
+ name: 'visibilityToggle',
54
+ title: { label: '切换按钮', tip: '是否显示切换按钮' },
55
+ propType: 'bool',
56
+ defaultValue: true,
57
+ setter: 'BoolSetter'
58
+ },
59
+ {
60
+ name: 'placeholder',
61
+ title: { label: '占位提示', tip: '占位提示' },
62
+ propType: 'string',
63
+ defaultValue: '请输入',
64
+ setter: 'StringSetter'
65
+ },
66
+ // {
67
+ // name: 'id',
68
+ // title: { label: '输入框ID', tip: '输入框的ID' },
69
+ // propType: 'string',
70
+ // },
71
+ {
72
+ name: 'maxLength',
73
+ title: { label: '最大长度', tip: '最大长度' },
74
+ propType: 'number',
75
+ setter: 'NumberSetter'
76
+ },
77
+ {
78
+ name: 'size',
79
+ title: { label: '控件大小', tip: '控件大小' },
80
+ propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
81
+ setter: {
82
+ componentName: 'RadioGroupSetter',
83
+ props: {
84
+ options: [
85
+ {
86
+ title: '大',
87
+ value: 'large',
88
+ },
89
+ {
90
+ title: '中',
91
+ value: 'middle',
92
+ },
93
+ {
94
+ title: '小',
95
+ value: 'small',
96
+ },
97
+ ],
98
+ },
99
+ },
100
+ defaultValue: 'middle',
101
+ },
102
+ {
103
+ name: 'addonAfter',
104
+ title: { label: '后置标签', tip: '后置标签' },
105
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
106
+ },
107
+ {
108
+ name: 'addonBefore',
109
+ title: { label: '前置标签', tip: '前置标签' },
110
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
111
+ },
112
+ {
113
+ name: 'prefix',
114
+ title: { label: '前缀', tip: '前缀' },
115
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
116
+ },
117
+ {
118
+ name: 'onChange',
119
+ title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
120
+ propType: 'func',
121
+ },
122
+ {
123
+ name: 'onPressEnter',
124
+ title: { label: '按下回车的回调', tip: '按下回车的回调' },
125
+ propType: 'func',
126
+ },
127
+ {
128
+ name: 'onFocus',
129
+ title: { label: '获取焦点回调', tip: '获取焦点回调' },
130
+ propType: 'func',
131
+ },
132
+ {
133
+ name: 'onKeyDown',
134
+ title: { label: '按键按下时的回调', tip: '按键按下时的回调' },
135
+ propType: 'func',
136
+ },
137
+ {
138
+ name: 'onKeyPress',
139
+ title: { label: '按键按下后的回调', tip: '按键按下之后释放之前的回调' },
140
+ propType: 'func',
141
+ },
142
+ {
143
+ name: 'onKeyUp',
144
+ title: { label: '按键释放回调', tip: '按键释放之后的回调' },
145
+ propType: 'func',
146
+ },
147
+ {
148
+ name: 'onBlur',
149
+ title: { label: '失去焦点回调', tip: '失去焦点回调' },
150
+ propType: 'func',
151
+ },
152
+ ],
153
+ configure: {
154
+ supports: {
155
+ style: true,
156
+ events: [
157
+ {
158
+ name: 'onChange',
159
+ template:
160
+ "onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
161
+ },
162
+ {
163
+ name: 'onPressEnter',
164
+ template:
165
+ "onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
166
+ },
167
+ {
168
+ name: 'onFocus',
169
+ template: "onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
170
+ },
171
+ {
172
+ name: 'onKeyDown',
173
+ template:
174
+ "onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
175
+ },
176
+ {
177
+ name: 'onKeyPress',
178
+ template:
179
+ "onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
180
+ },
181
+ {
182
+ name: 'onKeyUp',
183
+ template: "onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
184
+ },
185
+ {
186
+ name: 'onBlur',
187
+ template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
188
+ },
189
+ ],
190
+ },
191
+ },
192
+ };
@@ -0,0 +1,12 @@
1
+ export default [
2
+ {
3
+ title: '密码框',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/input-password-1.png',
5
+ schema: {
6
+ componentName: 'Input.Password',
7
+ props: {
8
+ // defaultValue: '123456',
9
+ },
10
+ },
11
+ },
12
+ ];
@@ -0,0 +1,206 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Input.Search',
6
+ title: '搜索框',
7
+ category: '表单',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Input",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "Search",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'defaultValue',
22
+ title: { label: '默认值', tip: '默认值' },
23
+ propType: 'string',
24
+ setter: 'StringSetter'
25
+ },
26
+ {
27
+ name: 'value',
28
+ title: { label: '当前值', tip: '当前值' },
29
+ propType: 'string',
30
+ setter: 'StringSetter'
31
+ },
32
+ {
33
+ name: 'bordered',
34
+ title: { label: '显示边框', tip: '是否有边框' },
35
+ propType: 'bool',
36
+ defaultValue: true,
37
+ setter: 'BoolSetter'
38
+ },
39
+ {
40
+ name: 'loading',
41
+ title: { label: '加载状态', tip: 'loading' },
42
+ propType: 'bool',
43
+ setter: 'BoolSetter'
44
+ },
45
+ {
46
+ name: 'disabled',
47
+ title: { label: '是否禁用', tip: '是否为禁用状态' },
48
+ propType: 'bool',
49
+ defaultValue: false,
50
+ setter: 'BoolSetter'
51
+ },
52
+ {
53
+ name: 'placeholder',
54
+ title: { label: '占位提示', tip: '占位提示' },
55
+ propType: 'string',
56
+ defaultValue: '请输入',
57
+ setter: 'StringSetter'
58
+ },
59
+ // {
60
+ // name: 'id',
61
+ // title: { label: '输入框ID', tip: '输入框的ID' },
62
+ // propType: 'string',
63
+ // },
64
+ {
65
+ name: 'size',
66
+ title: { label: '控件大小', tip: '控件大小' },
67
+ propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
68
+ setter: {
69
+ componentName: 'RadioGroupSetter',
70
+ props: {
71
+ options: [
72
+ {
73
+ title: '大',
74
+ value: 'large',
75
+ },
76
+ {
77
+ title: '中',
78
+ value: 'middle',
79
+ },
80
+ {
81
+ title: '小',
82
+ value: 'small',
83
+ },
84
+ ],
85
+ },
86
+ },
87
+ defaultValue: 'middle',
88
+ },
89
+ {
90
+ name: 'enterButton',
91
+ title: {
92
+ label: '确认按钮',
93
+ tip: '是否有确认按钮,可设为按钮文字。该属性会与 addonAfter 冲突。',
94
+ },
95
+ propType: { type: 'oneOfType', value: ['bool', 'node'] },
96
+ defaultValue: false,
97
+ },
98
+ {
99
+ name: 'addonAfter',
100
+ title: { label: '后置标签', tip: '后置标签' },
101
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
102
+ },
103
+ {
104
+ name: 'addonBefore',
105
+ title: { label: '前置标签', tip: '前置标签' },
106
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
107
+ },
108
+ {
109
+ name: 'prefix',
110
+ title: { label: '前缀', tip: '前缀' },
111
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
112
+ },
113
+ {
114
+ name: 'suffix',
115
+ title: { label: '后缀', tip: '后缀' },
116
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
117
+ },
118
+ {
119
+ name: 'onChange',
120
+ title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
121
+ propType: 'func',
122
+ },
123
+ {
124
+ name: 'onPressEnter',
125
+ title: { label: '按下回车的回调', tip: '按下回车的回调' },
126
+ propType: 'func',
127
+ },
128
+ {
129
+ name: 'onSearch',
130
+ title: {
131
+ label: '点击搜索或按下回车键时的回调',
132
+ tip: '点击搜索或按下回车键时的回调',
133
+ },
134
+ propType: 'func',
135
+ },
136
+ {
137
+ name: 'onFocus',
138
+ title: { label: '获取焦点回调', tip: '获取焦点回调' },
139
+ propType: 'func',
140
+ },
141
+ {
142
+ name: 'onKeyDown',
143
+ title: { label: '按键按下时的回调', tip: '按键按下时的回调' },
144
+ propType: 'func',
145
+ },
146
+ {
147
+ name: 'onKeyPress',
148
+ title: { label: '按键按下后的回调', tip: '按键按下之后释放之前的回调' },
149
+ propType: 'func',
150
+ },
151
+ {
152
+ name: 'onKeyUp',
153
+ title: { label: '按键释放回调', tip: '按键释放之后的回调' },
154
+ propType: 'func',
155
+ },
156
+ {
157
+ name: 'onBlur',
158
+ title: { label: '失去焦点回调', tip: '失去焦点回调' },
159
+ propType: 'func',
160
+ },
161
+ ],
162
+ configure: {
163
+ supports: {
164
+ style: true,
165
+ events: [
166
+ {
167
+ name: 'onChange',
168
+ template:
169
+ "onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
170
+ },
171
+ {
172
+ name: 'onPressEnter',
173
+ template:
174
+ "onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
175
+ },
176
+ {
177
+ name: 'onSearch',
178
+ template:
179
+ "onSearch(value,event,${extParams}){\n// 点击搜索图标、清除图标,或按下回车键时的回调\nconsole.log('onSearch',value,event);}",
180
+ },
181
+ {
182
+ name: 'onFocus',
183
+ template: "onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
184
+ },
185
+ {
186
+ name: 'onKeyDown',
187
+ template:
188
+ "onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
189
+ },
190
+ {
191
+ name: 'onKeyPress',
192
+ template:
193
+ "onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
194
+ },
195
+ {
196
+ name: 'onKeyUp',
197
+ template: "onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
198
+ },
199
+ {
200
+ name: 'onBlur',
201
+ template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
202
+ },
203
+ ],
204
+ },
205
+ },
206
+ };
@@ -0,0 +1,12 @@
1
+ export default [
2
+ {
3
+ title: '搜索框',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/input-search-1.png',
5
+ schema: {
6
+ componentName: 'Input.Search',
7
+ props: {
8
+ placeholder: '搜索...',
9
+ },
10
+ },
11
+ },
12
+ ];