@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.
- package/build/lowcode/assets-daily.json +93 -0
- package/build/lowcode/assets-dev.json +93 -0
- package/build/lowcode/assets-prod.json +93 -0
- package/build/lowcode/designer.html +303 -0
- package/build/lowcode/index.html +305 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +9 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +35 -0
- package/build/lowcode/preview.js +304 -0
- package/build/lowcode/render/default/view.js +22 -0
- package/build/lowcode/view.js +22 -0
- package/es/components/auto-complete/index.d.ts +3 -0
- package/es/components/auto-complete/index.js +4 -0
- package/es/components/button/index.d.ts +3 -0
- package/es/components/button/index.js +15 -0
- package/es/components/calendar/index.d.ts +3 -0
- package/es/components/calendar/index.js +4 -0
- package/es/components/cascader/index.d.ts +3 -0
- package/es/components/cascader/index.js +4 -0
- package/es/components/checkbox/index.d.ts +3 -0
- package/es/components/checkbox/index.js +5 -0
- package/es/components/config-provider/index.d.ts +4 -0
- package/es/components/config-provider/index.js +30 -0
- package/es/components/date-picker/index.d.ts +3 -0
- package/es/components/date-picker/index.js +7 -0
- package/es/components/drawer/index.d.ts +2 -0
- package/es/components/drawer/index.js +13 -0
- package/es/components/dropdown/index.d.ts +3 -0
- package/es/components/dropdown/index.js +13 -0
- package/es/components/form/index.d.ts +8 -0
- package/es/components/form/index.js +132 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.js +40 -0
- package/es/components/input/index.d.ts +3 -0
- package/es/components/input/index.js +12 -0
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/modal/index.js +18 -0
- package/es/components/radio/index.d.ts +3 -0
- package/es/components/radio/index.js +5 -0
- package/es/components/select/index.d.ts +3 -0
- package/es/components/select/index.js +4 -0
- package/es/components/skeleton/index.d.ts +3 -0
- package/es/components/skeleton/index.js +5 -0
- package/es/components/slider/index.d.ts +3 -0
- package/es/components/slider/index.js +16 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/index.d.ts +11 -0
- package/es/components/tabs/index.js +93 -0
- package/es/components/time-picker/index.d.ts +3 -0
- package/es/components/time-picker/index.js +4 -0
- package/es/components/tree-select/index.d.ts +2 -0
- package/es/components/tree-select/index.js +6 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/index.js +4 -0
- package/es/index.d.ts +63 -0
- package/es/index.js +85 -0
- package/es/utils/hoc.d.ts +17 -0
- package/es/utils/hoc.js +80 -0
- package/es/utils/warning.d.ts +1 -0
- package/es/utils/warning.js +6 -0
- package/lib/components/auto-complete/index.d.ts +3 -0
- package/lib/components/auto-complete/index.js +28 -0
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/index.js +45 -0
- package/lib/components/calendar/index.d.ts +3 -0
- package/lib/components/calendar/index.js +32 -0
- package/lib/components/cascader/index.d.ts +3 -0
- package/lib/components/cascader/index.js +28 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/checkbox/index.js +29 -0
- package/lib/components/config-provider/index.d.ts +4 -0
- package/lib/components/config-provider/index.js +54 -0
- package/lib/components/date-picker/index.d.ts +3 -0
- package/lib/components/date-picker/index.js +41 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/index.js +45 -0
- package/lib/components/dropdown/index.d.ts +3 -0
- package/lib/components/dropdown/index.js +45 -0
- package/lib/components/form/index.d.ts +8 -0
- package/lib/components/form/index.js +114 -0
- package/lib/components/icon/index.d.ts +12 -0
- package/lib/components/icon/index.js +52 -0
- package/lib/components/input/index.d.ts +3 -0
- package/lib/components/input/index.js +38 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/index.js +50 -0
- package/lib/components/radio/index.d.ts +3 -0
- package/lib/components/radio/index.js +29 -0
- package/lib/components/select/index.d.ts +3 -0
- package/lib/components/select/index.js +28 -0
- package/lib/components/skeleton/index.d.ts +3 -0
- package/lib/components/skeleton/index.js +29 -0
- package/lib/components/slider/index.d.ts +3 -0
- package/lib/components/slider/index.js +47 -0
- package/lib/components/table/index.d.ts +3 -0
- package/lib/components/table/index.js +41 -0
- package/lib/components/tabs/index.d.ts +11 -0
- package/lib/components/tabs/index.js +92 -0
- package/lib/components/time-picker/index.d.ts +3 -0
- package/lib/components/time-picker/index.js +31 -0
- package/lib/components/tree-select/index.d.ts +2 -0
- package/lib/components/tree-select/index.js +40 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/index.js +28 -0
- package/lib/index.d.ts +63 -0
- package/lib/index.js +225 -0
- package/lib/utils/hoc.d.ts +17 -0
- package/lib/utils/hoc.js +101 -0
- package/lib/utils/warning.d.ts +1 -0
- package/lib/utils/warning.js +31 -0
- package/lowcode/_setters/antd-icon-setter/index.tsx +285 -0
- package/lowcode/_setters/antd-icon-setter/style.less +69 -0
- package/lowcode/_setters/index.tsx +1 -0
- package/lowcode/_utils/hoc.tsx +93 -0
- package/lowcode/_utils/transform-meta.ts +343 -0
- package/lowcode/_utils/utils.ts +6 -0
- package/lowcode/affix/__screenshots__/affix-1.jpg +0 -0
- package/lowcode/affix/meta.ts +68 -0
- package/lowcode/affix/snippets.ts +20 -0
- package/lowcode/alert/__screenshots__/alert-1.png +0 -0
- package/lowcode/alert/__screenshots__/alert-2.png +0 -0
- package/lowcode/alert/__screenshots__/alert-3.png +0 -0
- package/lowcode/alert/__screenshots__/alert-4.png +0 -0
- package/lowcode/alert/meta.ts +102 -0
- package/lowcode/alert/snippets.ts +54 -0
- package/lowcode/anchor/__screenshots__/anchor-1.png +0 -0
- package/lowcode/anchor/snippets.ts +30 -0
- package/lowcode/anchor.link/meta.ts +29 -0
- package/lowcode/anchor.link/snippets.ts +1 -0
- package/lowcode/auto-complete/__screenshots__/auto-complete-1.png +0 -0
- package/lowcode/auto-complete/meta.ts +453 -0
- package/lowcode/auto-complete/snippets.ts +26 -0
- package/lowcode/avatar/__screenshots__/avatar-1.jpg +0 -0
- package/lowcode/avatar/meta.ts +82 -0
- package/lowcode/avatar/snippets.ts +12 -0
- package/lowcode/badge/__screenshots__/badge-1.png +0 -0
- package/lowcode/badge/meta.ts +94 -0
- package/lowcode/badge/snippets.ts +12 -0
- package/lowcode/breadcrumb/__screenshots__/breadcrumb-1.jpg +0 -0
- package/lowcode/breadcrumb/meta.ts +136 -0
- package/lowcode/breadcrumb/snippets.ts +44 -0
- package/lowcode/button/__screenshots__/button-1.png +0 -0
- package/lowcode/button/__screenshots__/button-2.png +0 -0
- package/lowcode/button/__screenshots__/button-3.png +0 -0
- package/lowcode/button/__screenshots__/button-4.png +0 -0
- package/lowcode/button/__screenshots__/button-5.png +0 -0
- package/lowcode/button/__screenshots__/button-6.png +0 -0
- package/lowcode/button/meta.ts +510 -0
- package/lowcode/button/snippets.ts +68 -0
- package/lowcode/calendar/__screenshots__/calendar-1.jpg +0 -0
- package/lowcode/calendar/meta.ts +133 -0
- package/lowcode/calendar/snippets.ts +10 -0
- package/lowcode/card/__screenshots__/card-1.png +0 -0
- package/lowcode/card/meta.ts +97 -0
- package/lowcode/card/snippets.ts +12 -0
- package/lowcode/carousel/__screenshots__/carousel-1.jpg +0 -0
- package/lowcode/carousel/meta.ts +148 -0
- package/lowcode/carousel/snippets.ts +23 -0
- package/lowcode/cascader/__screenshots__/cascader-1.png +0 -0
- package/lowcode/cascader/meta.ts +175 -0
- package/lowcode/cascader/snippets.ts +46 -0
- package/lowcode/checkbox/__screenshots__/checkbox-1.png +0 -0
- package/lowcode/checkbox/meta.ts +85 -0
- package/lowcode/checkbox/snippets.ts +35 -0
- package/lowcode/checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
- package/lowcode/checkbox.group/meta.ts +150 -0
- package/lowcode/collapse/__screenshots__/collapse-1.png +0 -0
- package/lowcode/collapse/meta.ts +221 -0
- package/lowcode/collapse/snippets.ts +28 -0
- package/lowcode/collapse.pane/meta.ts +84 -0
- package/lowcode/config-provider/__screenshots__/config-provider-1.jpg +0 -0
- package/lowcode/config-provider/meta.ts +140 -0
- package/lowcode/config-provider/snippets.ts +10 -0
- package/lowcode/date-picker/__screenshots__/date-picker-1.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-2.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-3.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-4.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-5.png +0 -0
- package/lowcode/date-picker/meta.ts +281 -0
- package/lowcode/date-picker/snippets.ts +50 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-1.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-2.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-3.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-4.png +0 -0
- package/lowcode/date-picker.range-picker/meta.ts +356 -0
- package/lowcode/date-picker.range-picker/snippets.ts +44 -0
- package/lowcode/descriptions/__screenshots__/descriptions-1.jpg +0 -0
- package/lowcode/descriptions/meta.ts +230 -0
- package/lowcode/descriptions/snippets.ts +18 -0
- package/lowcode/descriptions.item/meta.ts +37 -0
- package/lowcode/directory-tree/meta.ts +2747 -0
- package/lowcode/divider/__screenshots__/divider-1.png +0 -0
- package/lowcode/divider/__screenshots__/divider-2.png +0 -0
- package/lowcode/divider/meta.ts +70 -0
- package/lowcode/divider/snippets.ts +27 -0
- package/lowcode/drawer/__screenshots__/drawer-1.png +0 -0
- package/lowcode/drawer/__screenshots__/drawer-2.png +0 -0
- package/lowcode/drawer/meta.ts +420 -0
- package/lowcode/drawer/snippets.ts +40 -0
- package/lowcode/dropdown/__screenshots__/dropdown-1.png +0 -0
- package/lowcode/dropdown/meta.ts +143 -0
- package/lowcode/dropdown/snippets.ts +73 -0
- package/lowcode/empty/__screenshots__/empty-1.png +0 -0
- package/lowcode/empty/meta.ts +40 -0
- package/lowcode/empty/snippets.ts +10 -0
- package/lowcode/form/__screenshots__/form-1.png +0 -0
- package/lowcode/form/meta.ts +380 -0
- package/lowcode/form/snippets.ts +511 -0
- package/lowcode/form.item/__screenshots__/form-item-1.jpg +0 -0
- package/lowcode/form.item/meta.ts +348 -0
- package/lowcode/form.item/snippets.ts +12 -0
- package/lowcode/form.list/meta.ts +42 -0
- package/lowcode/form.list/snippets.ts +11 -0
- package/lowcode/grid.col/meta.ts +116 -0
- package/lowcode/grid.col/snippets.ts +1 -0
- package/lowcode/grid.row/__screenshots__/1-1-1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-3.png +0 -0
- package/lowcode/grid.row/meta.ts +118 -0
- package/lowcode/grid.row/snippets.ts +108 -0
- package/lowcode/icon/__screenshots__/icon-1.jpg +0 -0
- package/lowcode/icon/meta.ts +74 -0
- package/lowcode/icon/snippets.ts +13 -0
- package/lowcode/image/__screenshots__/image-1.png +0 -0
- package/lowcode/image/meta.ts +53 -0
- package/lowcode/image/snippets.ts +14 -0
- package/lowcode/input/__screenshots__/input-1.png +0 -0
- package/lowcode/input/meta.ts +190 -0
- package/lowcode/input/snippets.ts +12 -0
- package/lowcode/input-number/__screenshots__/input-number-1.png +0 -0
- package/lowcode/input-number/meta.ts +213 -0
- package/lowcode/input-number/snippets.ts +12 -0
- package/lowcode/input.group/__screenshots__/input-group-1.jpg +0 -0
- package/lowcode/input.group/meta.ts +53 -0
- package/lowcode/input.group/snippets.ts +24 -0
- package/lowcode/input.password/__screenshots__/input-password-1.png +0 -0
- package/lowcode/input.password/meta.ts +192 -0
- package/lowcode/input.password/snippets.ts +12 -0
- package/lowcode/input.search/__screenshots__/input-search-1.png +0 -0
- package/lowcode/input.search/meta.ts +206 -0
- package/lowcode/input.search/snippets.ts +12 -0
- package/lowcode/input.text-area/__screenshots__/input-text-area-1.png +0 -0
- package/lowcode/input.text-area/meta.ts +210 -0
- package/lowcode/input.text-area/snippets.ts +16 -0
- package/lowcode/list/__screenshots__/list-1.png +0 -0
- package/lowcode/list/meta.ts +499 -0
- package/lowcode/list/snippets.ts +201 -0
- package/lowcode/list.item/meta.ts +58 -0
- package/lowcode/list.item.meta/meta.ts +49 -0
- package/lowcode/login/meta.ts +56 -0
- package/lowcode/mentions/__screenshots__/mentions-1.png +0 -0
- package/lowcode/mentions/meta.ts +159 -0
- package/lowcode/mentions/snippets.ts +10 -0
- package/lowcode/menu/__screenshots__/menu-1.jpg +0 -0
- package/lowcode/menu/meta.ts +248 -0
- package/lowcode/menu/snippets.ts +22 -0
- package/lowcode/menu/utils.ts +97 -0
- package/lowcode/menu.item/meta.ts +63 -0
- package/lowcode/menu.item/snippets.ts +1 -0
- package/lowcode/menu.item-group/__screenshots__/menu-item-group-1.png +0 -0
- package/lowcode/menu.item-group/meta.ts +110 -0
- package/lowcode/menu.item-group/snippets.ts +1 -0
- package/lowcode/menu.sub-menu/meta.ts +131 -0
- package/lowcode/menu.sub-menu/snippets.ts +1 -0
- package/lowcode/modal/__screenshots__/modal-1.png +0 -0
- package/lowcode/modal/__screenshots__/modal-2.png +0 -0
- package/lowcode/modal/meta.ts +270 -0
- package/lowcode/modal/snippets.ts +33 -0
- package/lowcode/page-header/__screenshots__/page-header-1.jpg +0 -0
- package/lowcode/page-header/meta.ts +157 -0
- package/lowcode/page-header/snippets.ts +13 -0
- package/lowcode/pagination/__screenshots__/pagination-1.jpg +0 -0
- package/lowcode/pagination/meta.ts +231 -0
- package/lowcode/pagination/snippets.ts +14 -0
- package/lowcode/popconfirm/__screenshots__/popconfirm-1.jpg +0 -0
- package/lowcode/popconfirm/meta.ts +121 -0
- package/lowcode/popconfirm/snippets.ts +21 -0
- package/lowcode/popover/__screenshots__/popover-1.jpg +0 -0
- package/lowcode/popover/meta.ts +332 -0
- package/lowcode/popover/snippets.ts +10 -0
- package/lowcode/progress/__screenshots__/progress-1.png +0 -0
- package/lowcode/progress/__screenshots__/progress-2.png +0 -0
- package/lowcode/progress/meta.ts +142 -0
- package/lowcode/progress/snippets.ts +24 -0
- package/lowcode/radio/__screenshots__/radio-1.png +0 -0
- package/lowcode/radio/meta.ts +69 -0
- package/lowcode/radio/snippets.ts +35 -0
- package/lowcode/radio.group/__screenshots__/radio-group-1.png +0 -0
- package/lowcode/radio.group/meta.ts +213 -0
- package/lowcode/rate/__screenshots__/rate-1.png +0 -0
- package/lowcode/rate/meta.ts +132 -0
- package/lowcode/rate/snippets.ts +12 -0
- package/lowcode/result/__screenshots__/result-1.png +0 -0
- package/lowcode/result/meta.ts +53 -0
- package/lowcode/result/snippets.ts +14 -0
- package/lowcode/select/__screenshots__/select-1.png +0 -0
- package/lowcode/select/meta.ts +427 -0
- package/lowcode/select/snippets.ts +28 -0
- package/lowcode/skeleton/__screenshots__/skeleton-1.png +0 -0
- package/lowcode/skeleton/meta.ts +63 -0
- package/lowcode/skeleton/snippets.ts +13 -0
- package/lowcode/slider/__screenshots__/slider-1.png +0 -0
- package/lowcode/slider/meta.ts +218 -0
- package/lowcode/slider/snippets.ts +12 -0
- package/lowcode/slot/meta.ts +61 -0
- package/lowcode/slot/view.tsx +58 -0
- package/lowcode/space/__screenshots__/space-1.png +0 -0
- package/lowcode/space/meta.ts +65 -0
- package/lowcode/space/snippets.ts +24 -0
- package/lowcode/spin/__screenshots__/spin-1.png +0 -0
- package/lowcode/spin/meta.ts +60 -0
- package/lowcode/spin/snippets.ts +13 -0
- package/lowcode/statistic/__screenshots__/statistic-1.png +0 -0
- package/lowcode/statistic/meta.ts +67 -0
- package/lowcode/statistic/snippets.ts +13 -0
- package/lowcode/steps/__screenshots__/steps-1.png +0 -0
- package/lowcode/steps/meta.ts +281 -0
- package/lowcode/steps/snippets.ts +36 -0
- package/lowcode/steps.step/meta.ts +54 -0
- package/lowcode/steps.step/snippets.ts +1 -0
- package/lowcode/switch/__screenshots__/switch-1.png +0 -0
- package/lowcode/switch/meta.ts +122 -0
- package/lowcode/switch/snippets.ts +12 -0
- package/lowcode/table/__screenshots__/table-1.png +0 -0
- package/lowcode/table/meta.ts +847 -0
- package/lowcode/table/snippets.ts +43 -0
- package/lowcode/tabs/__screenshots__/tabs-1.jpg +0 -0
- package/lowcode/tabs/__screenshots__/tabs-2.jpg +0 -0
- package/lowcode/tabs/__screenshots__/tabs-3.jpg +0 -0
- package/lowcode/tabs/meta.ts +415 -0
- package/lowcode/tabs/snippets.ts +86 -0
- package/lowcode/tabs.tab-pane/meta.ts +78 -0
- package/lowcode/tag/__screenshots__/tag-1.png +0 -0
- package/lowcode/tag/meta.ts +69 -0
- package/lowcode/tag/snippets.ts +13 -0
- package/lowcode/time-picker/__screenshots__/time-picker-1.png +0 -0
- package/lowcode/time-picker/meta.ts +224 -0
- package/lowcode/time-picker/snippets.ts +10 -0
- package/lowcode/timeline/__screenshots__/timeline-1.jpg +0 -0
- package/lowcode/timeline/meta.ts +189 -0
- package/lowcode/timeline/snippets.ts +21 -0
- package/lowcode/timeline.item/__screenshots__/timeline-1.jpg +0 -0
- package/lowcode/timeline.item/meta.ts +53 -0
- package/lowcode/timeline.item/snippets.ts +10 -0
- package/lowcode/tooltip/__screenshots__/tooltip-1.jpg +0 -0
- package/lowcode/tooltip/meta.ts +306 -0
- package/lowcode/tooltip/snippets.ts +12 -0
- package/lowcode/transfer/__screenshots__/transfer-1.png +0 -0
- package/lowcode/transfer/meta.ts +304 -0
- package/lowcode/transfer/snippets.ts +42 -0
- package/lowcode/tree/__screenshots__/tree-1.jpg +0 -0
- package/lowcode/tree/meta.ts +377 -0
- package/lowcode/tree/snippets.ts +30 -0
- package/lowcode/tree-select/__screenshots__/tree-select-1.png +0 -0
- package/lowcode/tree-select/meta.ts +314 -0
- package/lowcode/tree-select/snippets.ts +34 -0
- package/lowcode/typography.link/__screenshots__/typography-link-1.png +0 -0
- package/lowcode/typography.link/meta.ts +44 -0
- package/lowcode/typography.link/snippets.ts +14 -0
- package/lowcode/typography.paragraph/__screenshots__/typography-paragraph-1.png +0 -0
- package/lowcode/typography.paragraph/meta.ts +129 -0
- package/lowcode/typography.paragraph/snippets.ts +14 -0
- package/lowcode/typography.text/__screenshots__/typography-text-1.png +0 -0
- package/lowcode/typography.text/__screenshots__/typography-text-2.png +0 -0
- package/lowcode/typography.text/__screenshots__/typography-text-3.png +0 -0
- package/lowcode/typography.text/meta.ts +200 -0
- package/lowcode/typography.text/snippets.ts +34 -0
- package/lowcode/typography.title/__screenshots__/typography-title-1.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-2.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-3.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-4.png +0 -0
- package/lowcode/typography.title/meta.ts +130 -0
- package/lowcode/typography.title/snippets.ts +46 -0
- package/lowcode/upload/__screenshots__/upload-1.png +0 -0
- package/lowcode/upload/meta.ts +439 -0
- package/lowcode/upload/snippets.ts +16 -0
- package/package.json +37 -3
- package/.fatherrc.ts +0 -7
- package/CHANGELOG.md +0 -7
- package/tsconfig.json +0 -14
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '普通型',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/modal-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Modal',
|
|
7
|
+
props: {
|
|
8
|
+
title: 'Basic Modal',
|
|
9
|
+
okText: '确认',
|
|
10
|
+
cancelText: '取消',
|
|
11
|
+
open: true,
|
|
12
|
+
destroyOnClose: true,
|
|
13
|
+
},
|
|
14
|
+
children: [],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: '隐藏底部',
|
|
19
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/modal-2.png',
|
|
20
|
+
schema: {
|
|
21
|
+
componentName: 'Modal',
|
|
22
|
+
props: {
|
|
23
|
+
title: 'Basic Modal',
|
|
24
|
+
okText: '确认',
|
|
25
|
+
cancelText: '取消',
|
|
26
|
+
open: true,
|
|
27
|
+
footer: null,
|
|
28
|
+
destroyOnClose: true,
|
|
29
|
+
},
|
|
30
|
+
children: [],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PageHeader',
|
|
6
|
+
title: '页头',
|
|
7
|
+
category: '导航',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "PageHeader",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'title',
|
|
22
|
+
title: { label: '标题', tip: '自定义标题文字' },
|
|
23
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'subTitle',
|
|
27
|
+
title: { label: '二级标题', tip: '自定义的二级标题文字' },
|
|
28
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'ghost',
|
|
32
|
+
title: { label: 'ghost风格', tip: 'ghost风格' },
|
|
33
|
+
propType: 'bool',
|
|
34
|
+
defaultValue: true,
|
|
35
|
+
},
|
|
36
|
+
// {
|
|
37
|
+
// name: 'backIcon',
|
|
38
|
+
// title: {
|
|
39
|
+
// label: '返回按钮',
|
|
40
|
+
// tip: '自定义 back icon ,如果为 false 不渲染 back icon',
|
|
41
|
+
// },
|
|
42
|
+
// propType: { type: 'oneOfType', value: ['node', 'bool'] },
|
|
43
|
+
// },
|
|
44
|
+
{
|
|
45
|
+
name: 'tags',
|
|
46
|
+
title: { label: 'tag 列表', tip: 'title 旁的 tag 列表' },
|
|
47
|
+
propType: 'node',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'extra',
|
|
51
|
+
title: { label: '操作区', tip: '操作区,位于 title 行的行尾' },
|
|
52
|
+
propType: 'node',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'footer',
|
|
56
|
+
title: { label: '页脚', tip: 'PageHeader 的页脚,一般用于渲染 TabBar' },
|
|
57
|
+
propType: 'node',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'avatar',
|
|
61
|
+
title: { label: '头像', tip: '标题栏旁的头像' },
|
|
62
|
+
propType: 'object',
|
|
63
|
+
supportVariable: false,
|
|
64
|
+
setter: [
|
|
65
|
+
{
|
|
66
|
+
componentName: 'ObjectSetter',
|
|
67
|
+
props: {
|
|
68
|
+
config: {
|
|
69
|
+
items: [
|
|
70
|
+
{
|
|
71
|
+
name: 'src',
|
|
72
|
+
title: { label: '地址', tip: '头像地址' },
|
|
73
|
+
setter: {
|
|
74
|
+
componentName: 'StringSetter',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
'JsonSetter',
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'breadcrumb',
|
|
86
|
+
title: { label: '面包屑的配置', tip: '面包屑的配置' },
|
|
87
|
+
propType: 'object',
|
|
88
|
+
supportVariable: false,
|
|
89
|
+
setter: [
|
|
90
|
+
{
|
|
91
|
+
componentName: 'ObjectSetter',
|
|
92
|
+
props: {
|
|
93
|
+
config: {
|
|
94
|
+
items: [
|
|
95
|
+
{
|
|
96
|
+
name: 'routes',
|
|
97
|
+
title: { label: '路由栈信息', tip: '路由栈信息' },
|
|
98
|
+
setter: {
|
|
99
|
+
componentName: 'ArraySetter',
|
|
100
|
+
props: {
|
|
101
|
+
itemSetter: {
|
|
102
|
+
componentName: 'ObjectSetter',
|
|
103
|
+
initialValue: {
|
|
104
|
+
path: 'path',
|
|
105
|
+
breadcrumbName: 'pathName',
|
|
106
|
+
},
|
|
107
|
+
isRequired: true,
|
|
108
|
+
props: {
|
|
109
|
+
config: {
|
|
110
|
+
items: [
|
|
111
|
+
{
|
|
112
|
+
name: 'path',
|
|
113
|
+
defaultValue: 'path',
|
|
114
|
+
title: { label: '路径', tip: 'path | 路径' },
|
|
115
|
+
setter: 'StringSetter',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'breadcrumbName',
|
|
119
|
+
defaultValue: 'pathName',
|
|
120
|
+
title: {
|
|
121
|
+
label: '名称',
|
|
122
|
+
tip: 'breadcrumbName | 名称',
|
|
123
|
+
},
|
|
124
|
+
setter: 'StringSetter',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
'JsonSetter',
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'onBack',
|
|
142
|
+
title: { label: '返回按钮的点击事件', tip: '返回按钮的点击事件' },
|
|
143
|
+
propType: 'func',
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
configure: {
|
|
147
|
+
supports: {
|
|
148
|
+
style: true,
|
|
149
|
+
events: [
|
|
150
|
+
{
|
|
151
|
+
name: 'onBack',
|
|
152
|
+
template: "onBack(${extParams}){\n// 返回按钮的点击事件\nconsole.log('onBack');}",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Pagination',
|
|
6
|
+
title: '分页',
|
|
7
|
+
category: '导航',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Pagination",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '数据',
|
|
22
|
+
display: 'block',
|
|
23
|
+
type: 'group',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: 'defaultPageSize',
|
|
27
|
+
title: {
|
|
28
|
+
label: '默认每页条数',
|
|
29
|
+
tip: 'defaultPageSize | 默认每页条数',
|
|
30
|
+
},
|
|
31
|
+
propType: 'number',
|
|
32
|
+
setter: 'NumberSetter',
|
|
33
|
+
defaultValue: 10,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'pageSize',
|
|
37
|
+
title: { label: '每页条数', tip: 'pageSize | 每页条数' },
|
|
38
|
+
propType: 'number',
|
|
39
|
+
setter: 'NumberSetter',
|
|
40
|
+
defaultValue: 10,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'total',
|
|
44
|
+
title: { label: '数据总数', tip: 'total | 数据总数' },
|
|
45
|
+
propType: 'number',
|
|
46
|
+
setter: 'NumberSetter',
|
|
47
|
+
defaultValue: 15,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'defaultCurrent',
|
|
51
|
+
title: {
|
|
52
|
+
label: '默认当前页',
|
|
53
|
+
tip: 'defaultCurrent | 默认的当前页数',
|
|
54
|
+
},
|
|
55
|
+
propType: 'number',
|
|
56
|
+
setter: 'NumberSetter',
|
|
57
|
+
defaultValue: 1,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'current',
|
|
61
|
+
title: { label: '当前页数', tip: 'current | 当前页数' },
|
|
62
|
+
propType: 'number',
|
|
63
|
+
setter: 'NumberSetter',
|
|
64
|
+
defaultValue: 1,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: '功能',
|
|
70
|
+
display: 'block',
|
|
71
|
+
type: 'group',
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
name: 'disabled',
|
|
75
|
+
title: {
|
|
76
|
+
label: '是否禁用',
|
|
77
|
+
tip: 'disabled | 是否禁用',
|
|
78
|
+
},
|
|
79
|
+
propType: 'bool',
|
|
80
|
+
setter: 'BoolSetter',
|
|
81
|
+
defaultValue: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'showSizeChanger',
|
|
85
|
+
title: {
|
|
86
|
+
label: '页数切换',
|
|
87
|
+
tip: 'showSizeChanger | 是否展示 pageSize 切换器',
|
|
88
|
+
},
|
|
89
|
+
propType: 'bool',
|
|
90
|
+
setter: 'BoolSetter',
|
|
91
|
+
defaultValue: false,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'showQuickJumper',
|
|
95
|
+
title: {
|
|
96
|
+
label: '快速跳转',
|
|
97
|
+
tip: 'showQuickJumper | 是否可以快速跳转至某页',
|
|
98
|
+
},
|
|
99
|
+
propType: 'bool',
|
|
100
|
+
setter: 'BoolSetter',
|
|
101
|
+
defaultValue: false,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'hideOnSinglePage',
|
|
105
|
+
title: {
|
|
106
|
+
label: '单页隐藏',
|
|
107
|
+
tip: 'hideOnSinglePage | 只有一页时是否隐藏分页器',
|
|
108
|
+
},
|
|
109
|
+
propType: 'bool',
|
|
110
|
+
setter: 'BoolSetter',
|
|
111
|
+
defaultValue: false,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'showLessItems',
|
|
115
|
+
title: {
|
|
116
|
+
label: '显示较少页面',
|
|
117
|
+
tip: 'showLessItems | 是否显示较少页面内容',
|
|
118
|
+
},
|
|
119
|
+
propType: 'bool',
|
|
120
|
+
setter: 'BoolSetter',
|
|
121
|
+
defaultValue: false,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'pageSizeOptions',
|
|
125
|
+
title: {
|
|
126
|
+
label: '可选分页数',
|
|
127
|
+
tip: 'pageSizeOptions | 指定 pageSize切换器 可选择的每页条数',
|
|
128
|
+
},
|
|
129
|
+
propType: 'object',
|
|
130
|
+
setter: 'JsonSetter',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
title: '外观',
|
|
136
|
+
display: 'block',
|
|
137
|
+
type: 'group',
|
|
138
|
+
items: [
|
|
139
|
+
{
|
|
140
|
+
name: 'simple',
|
|
141
|
+
title: { label: '简单分页', tip: 'simple | 简单分页' },
|
|
142
|
+
propType: 'bool',
|
|
143
|
+
setter: 'BoolSetter',
|
|
144
|
+
defaultValue: false,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'size',
|
|
148
|
+
title: { label: '分页尺寸', tip: 'size | 分页尺寸' },
|
|
149
|
+
propType: {
|
|
150
|
+
type: 'oneOf',
|
|
151
|
+
value: ['default', 'small'],
|
|
152
|
+
},
|
|
153
|
+
setter: [
|
|
154
|
+
{
|
|
155
|
+
componentName: 'RadioGroupSetter',
|
|
156
|
+
props: {
|
|
157
|
+
options: [
|
|
158
|
+
{
|
|
159
|
+
title: '默认',
|
|
160
|
+
value: 'default',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: '小',
|
|
164
|
+
value: 'small',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
'VariableSetter',
|
|
170
|
+
],
|
|
171
|
+
defaultValue: 'default',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'showTotal',
|
|
175
|
+
title: {
|
|
176
|
+
label: '显示总数',
|
|
177
|
+
tip: 'showTotal | 用于显示数据总量和当前数据顺序',
|
|
178
|
+
},
|
|
179
|
+
propType: 'func',
|
|
180
|
+
setter: [
|
|
181
|
+
{
|
|
182
|
+
componentName: 'FunctionSetter',
|
|
183
|
+
props: {
|
|
184
|
+
template:
|
|
185
|
+
'showTotal(total,range,${extParams}){\n// 用于格式化显示表格数据总量\nreturn `共 ${total} 条`;\n}',
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
'VariableSetter',
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'showTitle',
|
|
193
|
+
title: {
|
|
194
|
+
label: '页码提示',
|
|
195
|
+
tip: 'showTitle | 是否显示原生 tooltip 页码提示',
|
|
196
|
+
},
|
|
197
|
+
propType: 'bool',
|
|
198
|
+
setter: 'BoolSetter',
|
|
199
|
+
defaultValue: false,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'responsive',
|
|
203
|
+
title: {
|
|
204
|
+
label: '宽度自适应',
|
|
205
|
+
tip: 'responsive | 当 size 未指定时,根据屏幕宽度自动调整尺寸',
|
|
206
|
+
},
|
|
207
|
+
propType: 'bool',
|
|
208
|
+
setter: 'BoolSetter',
|
|
209
|
+
defaultValue: false,
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
configure: {
|
|
215
|
+
supports: {
|
|
216
|
+
style: true,
|
|
217
|
+
events: [
|
|
218
|
+
{
|
|
219
|
+
name: 'onChange',
|
|
220
|
+
template:
|
|
221
|
+
"onChange(page,pageSize,${extParams}){\n// 页码或 pageSize 改变的回调\nconsole.log('onChange',page,pageSize);}",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'onShowSizeChange',
|
|
225
|
+
template:
|
|
226
|
+
"onShowSizeChange(current,size,${extParams}){\n// pageSize 变化的回调\nconsole.log('onShowSizeChange',current,size);}",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Popconfirm',
|
|
6
|
+
title: '气泡确认框',
|
|
7
|
+
category: '反馈',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Popconfirm",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'title',
|
|
22
|
+
title: { label: '确认框内容', tip: '确认框内容' },
|
|
23
|
+
propType: { type: 'oneOfType', value: ['string', 'node', 'func'] },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'okText',
|
|
27
|
+
title: { label: '确认按钮文字', tip: '确认按钮文字' },
|
|
28
|
+
propType: 'string',
|
|
29
|
+
setter: 'StringSetter',
|
|
30
|
+
supportVariable: true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'cancelText',
|
|
34
|
+
title: { label: '取消按钮文字', tip: '取消按钮文字' },
|
|
35
|
+
propType: 'string',
|
|
36
|
+
setter: 'StringSetter',
|
|
37
|
+
supportVariable: true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'onConfirm',
|
|
41
|
+
title: { label: '点击确认回调', tip: '点击确认回调' },
|
|
42
|
+
propType: 'func',
|
|
43
|
+
},
|
|
44
|
+
// {
|
|
45
|
+
// name: 'okType',
|
|
46
|
+
// title: { label: '确认按钮类型', tip: '确认按钮类型' },
|
|
47
|
+
// propType: {
|
|
48
|
+
// type: 'oneOf',
|
|
49
|
+
// value: ['primary', 'ghost', 'dashed', 'danger', 'link', 'text'],
|
|
50
|
+
// },
|
|
51
|
+
// setter: {
|
|
52
|
+
// componentName: 'SelectSetter',
|
|
53
|
+
// props: {
|
|
54
|
+
// options: [
|
|
55
|
+
// {
|
|
56
|
+
// title: '主按钮',
|
|
57
|
+
// value: 'primary',
|
|
58
|
+
// },
|
|
59
|
+
// {
|
|
60
|
+
// title: '虚线框按钮',
|
|
61
|
+
// value: 'dashed',
|
|
62
|
+
// },
|
|
63
|
+
// {
|
|
64
|
+
// title: '危险按钮',
|
|
65
|
+
// value: 'danger',
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// title: '链接按钮',
|
|
69
|
+
// value: 'link',
|
|
70
|
+
// },
|
|
71
|
+
// {
|
|
72
|
+
// title: '类文本按钮',
|
|
73
|
+
// value: 'text',
|
|
74
|
+
// },
|
|
75
|
+
// ],
|
|
76
|
+
// },
|
|
77
|
+
// },
|
|
78
|
+
// },
|
|
79
|
+
// {
|
|
80
|
+
// name: 'okButtonProps',
|
|
81
|
+
// title: { label: 'ok按钮props', tip: 'ok按钮props' },
|
|
82
|
+
// propType: 'object',
|
|
83
|
+
// },
|
|
84
|
+
// {
|
|
85
|
+
// name: 'cancelButtonProps',
|
|
86
|
+
// title: { label: 'cancel按钮props', tip: 'cancel按钮props' },
|
|
87
|
+
// propType: 'object',
|
|
88
|
+
// },
|
|
89
|
+
// {
|
|
90
|
+
// name: 'onCancel',
|
|
91
|
+
// title: { label: '点击取消回调', tip: '点击取消回调' },
|
|
92
|
+
// propType: 'func',
|
|
93
|
+
// },
|
|
94
|
+
// {
|
|
95
|
+
// name: 'icon',
|
|
96
|
+
// title: { label: '自定义Icon图标', tip: '自定义弹出气泡Icon图标' },
|
|
97
|
+
// propType: 'node',
|
|
98
|
+
// },
|
|
99
|
+
// {
|
|
100
|
+
// name: 'disabled',
|
|
101
|
+
// title: {
|
|
102
|
+
// label: '是否禁用',
|
|
103
|
+
// tip: '是否为禁用状态',
|
|
104
|
+
// },
|
|
105
|
+
// propType: 'bool',
|
|
106
|
+
// defaultValue: false,
|
|
107
|
+
// },
|
|
108
|
+
],
|
|
109
|
+
configure: {
|
|
110
|
+
component: { isContainer: true },
|
|
111
|
+
supports: {
|
|
112
|
+
style: true,
|
|
113
|
+
events: [
|
|
114
|
+
{
|
|
115
|
+
name: 'onConfirm',
|
|
116
|
+
template: "onConfirm(${extParams}){\n// 点击确认的回调\nconsole.log('onConfirm');}",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '气泡确认框',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/popconfirm-1.jpg',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Popconfirm',
|
|
7
|
+
props: {
|
|
8
|
+
title: '确定删除?',
|
|
9
|
+
okType: 'primary',
|
|
10
|
+
okText: '确定',
|
|
11
|
+
cancelText: '取消',
|
|
12
|
+
},
|
|
13
|
+
children: {
|
|
14
|
+
componentName: 'Button',
|
|
15
|
+
props: {
|
|
16
|
+
children: '删除',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
];
|
|
Binary file
|