@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,356 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "DatePicker.RangePicker",
|
|
6
|
+
title: "日期区间选择",
|
|
7
|
+
category: "表单",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "DatePicker",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "RangePicker",
|
|
18
|
+
},
|
|
19
|
+
configure: {
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
title: "值设置",
|
|
23
|
+
display: "block",
|
|
24
|
+
type: "group",
|
|
25
|
+
items: [
|
|
26
|
+
{
|
|
27
|
+
name: "defaultValue",
|
|
28
|
+
title: {
|
|
29
|
+
label: "默认值",
|
|
30
|
+
tip: "defaultValue | 默认值",
|
|
31
|
+
},
|
|
32
|
+
propType: "object",
|
|
33
|
+
setter: "JsonSetter",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "value",
|
|
37
|
+
title: {
|
|
38
|
+
label: "当前值",
|
|
39
|
+
tip: "value | 当前值",
|
|
40
|
+
},
|
|
41
|
+
propType: "object",
|
|
42
|
+
setter: "JsonSetter",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "defaultPickerValue",
|
|
46
|
+
title: {
|
|
47
|
+
label: "默认面板日期",
|
|
48
|
+
tip: "defaultPickerValue | 默认面板日期",
|
|
49
|
+
},
|
|
50
|
+
propType: "object",
|
|
51
|
+
setter: "JsonSetter",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "功能选项",
|
|
57
|
+
display: "block",
|
|
58
|
+
type: "group",
|
|
59
|
+
items: [
|
|
60
|
+
{
|
|
61
|
+
name: "size",
|
|
62
|
+
title: {
|
|
63
|
+
label: "尺寸",
|
|
64
|
+
tip: "size | 输入框大小,large 高度为 40px,small 为 24px,默认是 32px",
|
|
65
|
+
},
|
|
66
|
+
propType: {
|
|
67
|
+
type: "oneOf",
|
|
68
|
+
value: ["large", "middle", "small"],
|
|
69
|
+
},
|
|
70
|
+
setter: {
|
|
71
|
+
componentName: "RadioGroupSetter",
|
|
72
|
+
props: {
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
title: "大",
|
|
76
|
+
value: "large",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: "中",
|
|
80
|
+
value: "middle",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: "小",
|
|
84
|
+
value: "small",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
defaultValue: "middle",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "picker",
|
|
93
|
+
title: {
|
|
94
|
+
label: "选择器类型",
|
|
95
|
+
tip: "picker | 设置选择器类型",
|
|
96
|
+
},
|
|
97
|
+
propType: {
|
|
98
|
+
type: "oneOf",
|
|
99
|
+
value: ["date", "week", "month", "quarter", "year"],
|
|
100
|
+
},
|
|
101
|
+
defaultValue: "date",
|
|
102
|
+
setter: {
|
|
103
|
+
componentName: "SelectSetter",
|
|
104
|
+
props: {
|
|
105
|
+
options: [
|
|
106
|
+
{
|
|
107
|
+
title: "日期",
|
|
108
|
+
value: "date",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: "周",
|
|
112
|
+
value: "week",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: "月份",
|
|
116
|
+
value: "month",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: "季度",
|
|
120
|
+
value: "quarter",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: "年份",
|
|
124
|
+
value: "year",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "mode",
|
|
132
|
+
title: {
|
|
133
|
+
label: "面板模式",
|
|
134
|
+
tip: "mode | 日期面板的状态",
|
|
135
|
+
},
|
|
136
|
+
propType: {
|
|
137
|
+
type: "oneOf",
|
|
138
|
+
value: ["time", "date", "month", "year", "decade"],
|
|
139
|
+
},
|
|
140
|
+
setter: {
|
|
141
|
+
componentName: "SelectSetter",
|
|
142
|
+
props: {
|
|
143
|
+
options: [
|
|
144
|
+
{
|
|
145
|
+
title: "日期",
|
|
146
|
+
value: "date",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
title: "周",
|
|
150
|
+
value: "week",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: "月份",
|
|
154
|
+
value: "month",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: "年份",
|
|
158
|
+
value: "year",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
title: "十年间隔",
|
|
162
|
+
value: "decade",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "format",
|
|
170
|
+
title: {
|
|
171
|
+
label: "日期格式",
|
|
172
|
+
tip: "format | 展示的日期格式,配置参考 moment.js",
|
|
173
|
+
},
|
|
174
|
+
propType: "string",
|
|
175
|
+
setter: "StringSetter",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "placeholder",
|
|
179
|
+
title: {
|
|
180
|
+
label: "提示文字",
|
|
181
|
+
tip: "placeholder | 输入框提示文字",
|
|
182
|
+
},
|
|
183
|
+
propType: "string",
|
|
184
|
+
setter: "StringSetter",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: "allowClear",
|
|
188
|
+
title: {
|
|
189
|
+
label: "支持清除",
|
|
190
|
+
tip: "allowClear | 是否允许清除",
|
|
191
|
+
},
|
|
192
|
+
propType: "bool",
|
|
193
|
+
defaultValue: true,
|
|
194
|
+
setter: "BoolSetter",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "bordered",
|
|
198
|
+
title: {
|
|
199
|
+
label: "显示边框",
|
|
200
|
+
tip: "bordered | 是否有边框",
|
|
201
|
+
},
|
|
202
|
+
propType: "bool",
|
|
203
|
+
defaultValue: true,
|
|
204
|
+
setter: "BoolSetter",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "autoFocus",
|
|
208
|
+
title: {
|
|
209
|
+
label: "自动聚焦",
|
|
210
|
+
tip: "autoFocus | 自动获取焦点",
|
|
211
|
+
},
|
|
212
|
+
propType: "bool",
|
|
213
|
+
defaultValue: false,
|
|
214
|
+
setter: "BoolSetter",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "disabled",
|
|
218
|
+
title: {
|
|
219
|
+
label: "是否禁用",
|
|
220
|
+
tip: "disabled | 是否为禁用状态",
|
|
221
|
+
},
|
|
222
|
+
propType: "bool",
|
|
223
|
+
defaultValue: false,
|
|
224
|
+
setter: "BoolSetter",
|
|
225
|
+
},
|
|
226
|
+
// {
|
|
227
|
+
// name: 'open',
|
|
228
|
+
// title: {
|
|
229
|
+
// label: '弹层是否展开',
|
|
230
|
+
// tip: 'open | 控制弹层是否展开',
|
|
231
|
+
// },
|
|
232
|
+
// propType: 'bool',
|
|
233
|
+
// setter: 'BoolSetter',
|
|
234
|
+
// },
|
|
235
|
+
{
|
|
236
|
+
name: "showTime",
|
|
237
|
+
title: {
|
|
238
|
+
label: "时间选择",
|
|
239
|
+
tip: "showTime | 时间选择",
|
|
240
|
+
},
|
|
241
|
+
propType: "bool",
|
|
242
|
+
defaultValue: false,
|
|
243
|
+
setter: "BoolSetter",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "inputReadOnly",
|
|
247
|
+
title: {
|
|
248
|
+
label: "输入框只读",
|
|
249
|
+
tip: "inputReadOnly | 设置输入框为只读(避免在移动设备上打开虚拟键盘)",
|
|
250
|
+
},
|
|
251
|
+
propType: "bool",
|
|
252
|
+
defaultValue: false,
|
|
253
|
+
setter: "BoolSetter",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
title: "高级",
|
|
259
|
+
display: "block",
|
|
260
|
+
type: "group",
|
|
261
|
+
items: [
|
|
262
|
+
{
|
|
263
|
+
name: "ranges",
|
|
264
|
+
title: {
|
|
265
|
+
label: "预设范围",
|
|
266
|
+
tip: "ranges | 预设时间范围快捷选择",
|
|
267
|
+
},
|
|
268
|
+
propType: "object",
|
|
269
|
+
setter: "JsonSetter",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "disabledDate",
|
|
273
|
+
title: {
|
|
274
|
+
label: "不可选日期",
|
|
275
|
+
tip: "disabledDate | 不可选择的日期",
|
|
276
|
+
},
|
|
277
|
+
propType: "func",
|
|
278
|
+
setter: [
|
|
279
|
+
{
|
|
280
|
+
componentName: "FunctionSetter",
|
|
281
|
+
props: {
|
|
282
|
+
template:
|
|
283
|
+
"disabledDate(currentDate,${extParams}){\n// 设置不可选择的日期\nreturn true\n}",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
"VariableSetter",
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
},
|
|
291
|
+
// {
|
|
292
|
+
// name: 'renderExtraFooter',
|
|
293
|
+
// title: { label: '在面板中添加额外的页脚', tip: '在面板中添加额外的页脚' },
|
|
294
|
+
// propType: 'func',
|
|
295
|
+
// },
|
|
296
|
+
// {
|
|
297
|
+
// name: 'className',
|
|
298
|
+
// title: { label: '选择器 className', tip: '选择器 className' },
|
|
299
|
+
// propType: 'string',
|
|
300
|
+
// },
|
|
301
|
+
// {
|
|
302
|
+
// name: 'dropdownClassName',
|
|
303
|
+
// title: {
|
|
304
|
+
// label: '额外的弹出日历 className',
|
|
305
|
+
// tip: '额外的弹出日历 className',
|
|
306
|
+
// },
|
|
307
|
+
// propType: 'string',
|
|
308
|
+
// },
|
|
309
|
+
// {
|
|
310
|
+
// name: 'getPopupContainer',
|
|
311
|
+
// title: {
|
|
312
|
+
// label: '定义浮层的容器,默认为 body 上新建 div',
|
|
313
|
+
// tip: '定义浮层的容器,默认为 body 上新建 div',
|
|
314
|
+
// },
|
|
315
|
+
// propType: 'func',
|
|
316
|
+
// },
|
|
317
|
+
// {
|
|
318
|
+
// name: 'locale',
|
|
319
|
+
// title: { label: '国际化配置', tip: '国际化配置' },
|
|
320
|
+
// propType: 'object',
|
|
321
|
+
// },
|
|
322
|
+
// {
|
|
323
|
+
// name: 'popupStyle',
|
|
324
|
+
// title: { label: '额外的弹出日历样式', tip: '额外的弹出日历样式' },
|
|
325
|
+
// propType: 'CSSProperties',
|
|
326
|
+
// defaultValue: '{}',
|
|
327
|
+
// },
|
|
328
|
+
// {
|
|
329
|
+
// name: 'style',
|
|
330
|
+
// title: { label: '自定义输入框样式', tip: '自定义输入框样式' },
|
|
331
|
+
// propType: 'CSSProperties',
|
|
332
|
+
// defaultValue: '{}',
|
|
333
|
+
// },
|
|
334
|
+
],
|
|
335
|
+
supports: {
|
|
336
|
+
style: true,
|
|
337
|
+
events: [
|
|
338
|
+
{
|
|
339
|
+
name: "onChange",
|
|
340
|
+
template:
|
|
341
|
+
"onChange(dates,dateStrings,${extParams}){\n// 日期范围发生变化的回调\nconsole.log('onChange',dates,dateStrings);}",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "onOpenChange",
|
|
345
|
+
template:
|
|
346
|
+
"onOpenChange(open,${extParams}){\n// 弹出日历和关闭日历的回调\nconsole.log('onOpenChange',open);}",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: "onPanelChange",
|
|
350
|
+
template:
|
|
351
|
+
"onPanelChange(value,mode,${extParams}){\n// 日历面板切换的回调\nconsole.log('onPanelChange',value,mode);}",
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '日期区间',
|
|
4
|
+
screenshot:
|
|
5
|
+
'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-range-picker-1.png',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'DatePicker.RangePicker',
|
|
8
|
+
props: {},
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '周区间',
|
|
13
|
+
screenshot:
|
|
14
|
+
'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-range-picker-2.png',
|
|
15
|
+
schema: {
|
|
16
|
+
componentName: 'DatePicker.RangePicker',
|
|
17
|
+
props: {
|
|
18
|
+
picker: 'week',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: '月区间',
|
|
24
|
+
screenshot:
|
|
25
|
+
'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-range-picker-3.png',
|
|
26
|
+
schema: {
|
|
27
|
+
componentName: 'DatePicker.RangePicker',
|
|
28
|
+
props: {
|
|
29
|
+
picker: 'month',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: '年区间',
|
|
35
|
+
screenshot:
|
|
36
|
+
'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-range-picker-4.png',
|
|
37
|
+
schema: {
|
|
38
|
+
componentName: 'DatePicker.RangePicker',
|
|
39
|
+
props: {
|
|
40
|
+
picker: 'year',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { uuid } from '../_utils/utils';
|
|
2
|
+
|
|
3
|
+
import snippets from './snippets';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
snippets,
|
|
7
|
+
componentName: 'Descriptions',
|
|
8
|
+
title: '描述列表',
|
|
9
|
+
category: '数据展示',
|
|
10
|
+
docUrl: "",
|
|
11
|
+
screenshot: "",
|
|
12
|
+
devMode: "proCode",
|
|
13
|
+
npm: {
|
|
14
|
+
package: "@pisell/materials",
|
|
15
|
+
version: "1.0.1",
|
|
16
|
+
exportName: "Descriptions",
|
|
17
|
+
main: "src/index.tsx",
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: "",
|
|
20
|
+
},
|
|
21
|
+
configure: {
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
name: 'title',
|
|
25
|
+
title: {
|
|
26
|
+
label: '标题',
|
|
27
|
+
tip: '描述列表的标题,显示在最顶部',
|
|
28
|
+
},
|
|
29
|
+
propType: {
|
|
30
|
+
type: 'oneOfType',
|
|
31
|
+
value: ['string', 'node'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'items',
|
|
36
|
+
title: {
|
|
37
|
+
label: '列表项',
|
|
38
|
+
tip: '列表项',
|
|
39
|
+
},
|
|
40
|
+
setter: {
|
|
41
|
+
componentName: 'ArraySetter',
|
|
42
|
+
props: {
|
|
43
|
+
itemSetter: {
|
|
44
|
+
componentName: 'ObjectSetter',
|
|
45
|
+
props: {
|
|
46
|
+
config: {
|
|
47
|
+
items: [
|
|
48
|
+
{
|
|
49
|
+
name: 'key',
|
|
50
|
+
title: 'key',
|
|
51
|
+
setter: 'StringSetter',
|
|
52
|
+
initialValue: (val) => val || uuid(),
|
|
53
|
+
condition: () => false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'label',
|
|
57
|
+
title: '标题',
|
|
58
|
+
setter: 'StringSetter',
|
|
59
|
+
initialValue: '列表项',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'span',
|
|
63
|
+
title: '所占列数',
|
|
64
|
+
setter: 'NumberSetter',
|
|
65
|
+
initialValue: 1,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'children',
|
|
69
|
+
title: '内容',
|
|
70
|
+
setter: {
|
|
71
|
+
componentName: 'SlotSetter',
|
|
72
|
+
initialValue: {
|
|
73
|
+
type: 'JSSlot',
|
|
74
|
+
value: [],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
initialValue: () => {
|
|
82
|
+
return {
|
|
83
|
+
key: uuid(),
|
|
84
|
+
label: '标签项',
|
|
85
|
+
span: 1,
|
|
86
|
+
children: {
|
|
87
|
+
type: 'JSSlot',
|
|
88
|
+
value: [],
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
extraProps: {
|
|
96
|
+
getValue(target, fieldValue) {
|
|
97
|
+
const map = target.node.children.map((child) => {
|
|
98
|
+
const key = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
|
|
99
|
+
return {
|
|
100
|
+
key,
|
|
101
|
+
label: child.getPropValue('label'),
|
|
102
|
+
span: child.getPropValue('span'),
|
|
103
|
+
children: child.getPropValue('children'),
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
return map;
|
|
107
|
+
},
|
|
108
|
+
setValue(target, value) {
|
|
109
|
+
const { node } = target;
|
|
110
|
+
const map = {};
|
|
111
|
+
|
|
112
|
+
if (!Array.isArray(value)) {
|
|
113
|
+
value = [];
|
|
114
|
+
}
|
|
115
|
+
value.forEach((item) => {
|
|
116
|
+
const tabItem = Object.assign({}, item);
|
|
117
|
+
map[item.key] = tabItem;
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
node.children.mergeChildren(
|
|
121
|
+
(child) => {
|
|
122
|
+
const key = String(child.getPropValue('key'));
|
|
123
|
+
if (Object.hasOwnProperty.call(map, key)) {
|
|
124
|
+
child.setPropValue('label', map[key].label);
|
|
125
|
+
child.setPropValue('span', map[key].span);
|
|
126
|
+
child.setPropValue('children', map[key].children);
|
|
127
|
+
delete map[key];
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
},
|
|
132
|
+
() => {
|
|
133
|
+
const items = [];
|
|
134
|
+
for (const key in map) {
|
|
135
|
+
if (Object.hasOwnProperty.call(map, key)) {
|
|
136
|
+
items.push({
|
|
137
|
+
componentName: 'Descriptions.Item',
|
|
138
|
+
props: map[key],
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return items;
|
|
143
|
+
},
|
|
144
|
+
(child1, child2) => {
|
|
145
|
+
const a = value.findIndex(
|
|
146
|
+
(item) => String(item.key) === String(child1.getPropValue('key')),
|
|
147
|
+
);
|
|
148
|
+
const b = value.findIndex(
|
|
149
|
+
(item) => String(item.key) === String(child2.getPropValue('key')),
|
|
150
|
+
);
|
|
151
|
+
return a - b;
|
|
152
|
+
},
|
|
153
|
+
);
|
|
154
|
+
},
|
|
155
|
+
// getValue(target, fieldValue) {
|
|
156
|
+
// // const node = target.nodes[0];
|
|
157
|
+
// // const children = node.getChildren();
|
|
158
|
+
// const map = target.node.children.map(child => {
|
|
159
|
+
// return {
|
|
160
|
+
// key: child.getPropValue('key') || uuid(),
|
|
161
|
+
// label: child.getPropValue('label'),
|
|
162
|
+
// span: child.getPropValue('span'),
|
|
163
|
+
// children: child.getPropValue('children'),
|
|
164
|
+
// };
|
|
165
|
+
// });
|
|
166
|
+
// return map;
|
|
167
|
+
// },
|
|
168
|
+
// setValue(target, value) {
|
|
169
|
+
// const node = target.node;
|
|
170
|
+
|
|
171
|
+
// if (!Array.isArray(value)) {
|
|
172
|
+
// value = [];
|
|
173
|
+
// }
|
|
174
|
+
|
|
175
|
+
// node.children.mergeChildren(
|
|
176
|
+
// () => true,
|
|
177
|
+
// () => {
|
|
178
|
+
// return value.map(item => ({
|
|
179
|
+
// componentName: 'Descriptions.Item',
|
|
180
|
+
// props: Object.assign({}, item),
|
|
181
|
+
// }));
|
|
182
|
+
// }
|
|
183
|
+
// );
|
|
184
|
+
// },
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'bordered',
|
|
189
|
+
title: { label: '显示边框', tip: '是否展示边框' },
|
|
190
|
+
propType: 'bool',
|
|
191
|
+
defaultValue: false,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'column',
|
|
195
|
+
title: {
|
|
196
|
+
label: '列数',
|
|
197
|
+
tip: '一行的列表项数量',
|
|
198
|
+
},
|
|
199
|
+
propType: 'number',
|
|
200
|
+
defaultValue: 3,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'size',
|
|
204
|
+
title: {
|
|
205
|
+
label: '尺寸',
|
|
206
|
+
tip:
|
|
207
|
+
'设置列表的大小。可以设置为 `middle` 、`small`, 或不填(只有设置 `bordered={true}` 生效)',
|
|
208
|
+
},
|
|
209
|
+
propType: { type: 'oneOf', value: ['default', 'middle', 'small'] },
|
|
210
|
+
defaultValue: 'middle',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'layout',
|
|
214
|
+
title: { label: '布局方向', tip: '描述布局' },
|
|
215
|
+
propType: { type: 'oneOf', value: ['horizontal', 'vertical'] },
|
|
216
|
+
defaultValue: 'horizontal',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'colon',
|
|
220
|
+
title: {
|
|
221
|
+
label: '展示冒号',
|
|
222
|
+
tip: '配置 `Descriptions.Item` 的 `colon` 的默认值',
|
|
223
|
+
},
|
|
224
|
+
propType: 'bool',
|
|
225
|
+
defaultValue: true,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
supports: { style: true },
|
|
229
|
+
},
|
|
230
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '描述列表',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/descriptions-1.jpg',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Descriptions',
|
|
7
|
+
props: {
|
|
8
|
+
title: '用户信息',
|
|
9
|
+
items: [
|
|
10
|
+
{
|
|
11
|
+
label: '用户名',
|
|
12
|
+
children: 'Mo Yao',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
componentName: 'Descriptions.Item',
|
|
3
|
+
title: '描述列表项',
|
|
4
|
+
docUrl: "",
|
|
5
|
+
screenshot: "",
|
|
6
|
+
devMode: "proCode",
|
|
7
|
+
npm: {
|
|
8
|
+
package: "@pisell/materials",
|
|
9
|
+
version: "1.0.1",
|
|
10
|
+
exportName: "Descriptions",
|
|
11
|
+
main: "src/index.tsx",
|
|
12
|
+
destructuring: true,
|
|
13
|
+
subName: "Item",
|
|
14
|
+
},
|
|
15
|
+
configure: {
|
|
16
|
+
props: [
|
|
17
|
+
{
|
|
18
|
+
name: 'key',
|
|
19
|
+
title: {
|
|
20
|
+
label: 'key',
|
|
21
|
+
tip: 'key',
|
|
22
|
+
},
|
|
23
|
+
propType: 'string',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'tab',
|
|
27
|
+
title: {
|
|
28
|
+
label: '标题',
|
|
29
|
+
tip: '标题',
|
|
30
|
+
},
|
|
31
|
+
propType: 'string',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
component: { isContainer: true },
|
|
35
|
+
supports: { style: true },
|
|
36
|
+
},
|
|
37
|
+
};
|