@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.
- package/.tmp/assets-daily.json +93 -0
- package/.tmp/assets-dev.json +93 -0
- package/.tmp/assets-prod.json +93 -0
- package/.tmp/default.view.js +24 -0
- package/.tmp/index.jsx +279 -0
- package/.tmp/meta.js +251 -0
- package/.tmp/preview.jsx +72 -0
- package/.tmp/view.js +25 -0
- package/CHANGELOG.md +6 -0
- 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/build.lowcode.js +46 -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 +29 -3
- package/src/components/auto-complete/index.tsx +6 -0
- package/src/components/button/index.tsx +12 -0
- package/src/components/calendar/index.tsx +10 -0
- package/src/components/cascader/index.tsx +6 -0
- package/src/components/checkbox/index.tsx +7 -0
- package/src/components/config-provider/index.tsx +27 -0
- package/src/components/date-picker/index.tsx +22 -0
- package/src/components/drawer/index.tsx +13 -0
- package/src/components/dropdown/index.tsx +13 -0
- package/src/components/form/index.tsx +97 -0
- package/src/components/icon/index.tsx +34 -0
- package/src/components/input/index.tsx +18 -0
- package/src/components/modal/index.tsx +18 -0
- package/src/components/radio/index.tsx +7 -0
- package/src/components/select/index.tsx +6 -0
- package/src/components/skeleton/index.tsx +6 -0
- package/src/components/slider/index.tsx +18 -0
- package/src/components/table/index.tsx +10 -0
- package/src/components/tabs/index.tsx +67 -0
- package/src/components/time-picker/index.tsx +9 -0
- package/src/components/tree-select/index.tsx +8 -0
- package/src/components/upload/index.tsx +5 -0
- package/src/index.tsx +141 -0
- package/src/utils/hoc.tsx +92 -0
- package/src/utils/warning.ts +3 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Popover',
|
|
6
|
+
title: '气泡卡片',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Popover",
|
|
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: 'title',
|
|
27
|
+
title: {
|
|
28
|
+
label: '卡片标题',
|
|
29
|
+
tip: 'title | 卡片标题',
|
|
30
|
+
},
|
|
31
|
+
propType: {
|
|
32
|
+
type: 'oneOfType',
|
|
33
|
+
value: ['string', 'node', 'func'],
|
|
34
|
+
},
|
|
35
|
+
setter: ['StringSetter', 'SlotSetter', 'FunctionSetter', 'VariableSetter'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'content',
|
|
39
|
+
title: {
|
|
40
|
+
label: '卡片内容',
|
|
41
|
+
tip: 'content | 卡片内容',
|
|
42
|
+
},
|
|
43
|
+
propType: {
|
|
44
|
+
type: 'oneOfType',
|
|
45
|
+
value: ['string', 'node', 'func'],
|
|
46
|
+
},
|
|
47
|
+
setter: ['StringSetter', 'SlotSetter', 'FunctionSetter', 'VariableSetter'],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: '控制',
|
|
53
|
+
display: 'block',
|
|
54
|
+
type: 'group',
|
|
55
|
+
items: [
|
|
56
|
+
{
|
|
57
|
+
name: 'defaultOpen',
|
|
58
|
+
title: {
|
|
59
|
+
label: '默认显隐',
|
|
60
|
+
tip: 'defaultOpen | 默认是否显隐',
|
|
61
|
+
},
|
|
62
|
+
propType: 'bool',
|
|
63
|
+
setter: 'BoolSetter',
|
|
64
|
+
defaultValue: false,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'open',
|
|
68
|
+
title: {
|
|
69
|
+
label: '手动显隐',
|
|
70
|
+
tip: 'open | 手动控制浮层显隐',
|
|
71
|
+
},
|
|
72
|
+
propType: 'bool',
|
|
73
|
+
setter: 'BoolSetter',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: '外观',
|
|
79
|
+
display: 'block',
|
|
80
|
+
type: 'group',
|
|
81
|
+
items: [
|
|
82
|
+
{
|
|
83
|
+
name: 'placement',
|
|
84
|
+
title: {
|
|
85
|
+
label: '气泡位置',
|
|
86
|
+
tip: 'placement | 气泡位置',
|
|
87
|
+
},
|
|
88
|
+
propType: {
|
|
89
|
+
type: 'oneOf',
|
|
90
|
+
value: [
|
|
91
|
+
'top',
|
|
92
|
+
'left',
|
|
93
|
+
'right',
|
|
94
|
+
'bottom',
|
|
95
|
+
'topLeft',
|
|
96
|
+
'topRight',
|
|
97
|
+
'bottomLeft',
|
|
98
|
+
'bottomRight',
|
|
99
|
+
'leftTop',
|
|
100
|
+
'leftBottom',
|
|
101
|
+
'rightTop',
|
|
102
|
+
'rightBottom',
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
defaultValue: 'top',
|
|
106
|
+
setter: {
|
|
107
|
+
componentName: 'SelectSetter',
|
|
108
|
+
props: {
|
|
109
|
+
options: [
|
|
110
|
+
{
|
|
111
|
+
title: '上',
|
|
112
|
+
value: 'top',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: '左',
|
|
116
|
+
value: 'left',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: '右',
|
|
120
|
+
value: 'right',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: '下',
|
|
124
|
+
value: 'bottom',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: '上左',
|
|
128
|
+
value: 'topLeft',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
title: '上右',
|
|
132
|
+
value: 'topRight',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
title: '下左',
|
|
136
|
+
value: 'bottomLeft',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
title: '下右',
|
|
140
|
+
value: 'bottomRight',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
title: '左上',
|
|
144
|
+
value: 'leftTop',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: '左下',
|
|
148
|
+
value: 'leftBottom',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
title: '右上',
|
|
152
|
+
value: 'rightTop',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: '右下',
|
|
156
|
+
value: 'rightBottom',
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'autoAdjustOverflow',
|
|
164
|
+
title: {
|
|
165
|
+
label: '自动调整',
|
|
166
|
+
tip: 'autoAdjustOverflow | 气泡被遮挡时自动调整位置',
|
|
167
|
+
},
|
|
168
|
+
propType: 'bool',
|
|
169
|
+
setter: 'BoolSetter',
|
|
170
|
+
defaultValue: true,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'arrowPointAtCenter',
|
|
174
|
+
title: {
|
|
175
|
+
label: '指向中心',
|
|
176
|
+
tip: 'arrowPointAtCenter | 箭头是否指向目标元素中心',
|
|
177
|
+
},
|
|
178
|
+
propType: 'bool',
|
|
179
|
+
setter: 'BoolSetter',
|
|
180
|
+
defaultValue: false,
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'color',
|
|
184
|
+
title: {
|
|
185
|
+
label: '背景颜色',
|
|
186
|
+
tip: 'color | 背景颜色',
|
|
187
|
+
},
|
|
188
|
+
propType: 'string',
|
|
189
|
+
setter: 'ColorSetter',
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'zIndex',
|
|
193
|
+
title: {
|
|
194
|
+
label: 'zIndex',
|
|
195
|
+
tip: 'zIndex | 设置 Tooltip 的 z-index值',
|
|
196
|
+
},
|
|
197
|
+
propType: 'number',
|
|
198
|
+
setter: 'NumberSetter',
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'overlayStyle',
|
|
204
|
+
title: '卡片样式',
|
|
205
|
+
type: 'group',
|
|
206
|
+
extraProps: {
|
|
207
|
+
display: 'entry',
|
|
208
|
+
},
|
|
209
|
+
items: [
|
|
210
|
+
{
|
|
211
|
+
name: 'overlayStyle',
|
|
212
|
+
title: {
|
|
213
|
+
label: '样式设置',
|
|
214
|
+
tip: 'overlayStyle | 卡片样式',
|
|
215
|
+
},
|
|
216
|
+
setter: 'StyleSetter',
|
|
217
|
+
extraProps: {
|
|
218
|
+
display: 'block',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'overlayInnerStyle',
|
|
225
|
+
title: '卡片内容样式',
|
|
226
|
+
type: 'group',
|
|
227
|
+
extraProps: {
|
|
228
|
+
display: 'entry',
|
|
229
|
+
},
|
|
230
|
+
items: [
|
|
231
|
+
{
|
|
232
|
+
name: 'overlayInnerStyle',
|
|
233
|
+
title: {
|
|
234
|
+
label: '样式设置',
|
|
235
|
+
tip: 'overlayStyle | 卡片内容区域的样式',
|
|
236
|
+
},
|
|
237
|
+
setter: 'StyleSetter',
|
|
238
|
+
extraProps: {
|
|
239
|
+
display: 'block',
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
title: '行为',
|
|
246
|
+
display: 'block',
|
|
247
|
+
type: 'group',
|
|
248
|
+
items: [
|
|
249
|
+
{
|
|
250
|
+
name: 'trigger',
|
|
251
|
+
title: {
|
|
252
|
+
label: '触发行为',
|
|
253
|
+
tip: 'trigger | 触发行为',
|
|
254
|
+
},
|
|
255
|
+
propType: {
|
|
256
|
+
type: 'oneOf',
|
|
257
|
+
value: ['hover', 'focus', 'click', 'contextMenu'],
|
|
258
|
+
},
|
|
259
|
+
defaultValue: 'hover',
|
|
260
|
+
setter: {
|
|
261
|
+
componentName: 'SelectSetter',
|
|
262
|
+
props: {
|
|
263
|
+
options: [
|
|
264
|
+
{
|
|
265
|
+
title: '鼠标悬停',
|
|
266
|
+
value: 'hover',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
title: '获得焦点',
|
|
270
|
+
value: 'focus',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: '鼠标点击',
|
|
274
|
+
value: 'click',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
title: '右键菜单',
|
|
278
|
+
value: 'contextMenu',
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'mouseEnterDelay',
|
|
286
|
+
title: {
|
|
287
|
+
label: '展示延时',
|
|
288
|
+
tip: 'mouseEnterDelay | 鼠标移入后延时多少才显示 Tooltip,单位:秒',
|
|
289
|
+
},
|
|
290
|
+
propType: 'number',
|
|
291
|
+
defaultValue: 0.1,
|
|
292
|
+
setter: {
|
|
293
|
+
componentName: 'NumberSetter',
|
|
294
|
+
props: {
|
|
295
|
+
step: 0.1,
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'mouseLeaveDelay',
|
|
301
|
+
title: {
|
|
302
|
+
label: '隐藏延时',
|
|
303
|
+
tip: 'mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒',
|
|
304
|
+
},
|
|
305
|
+
propType: 'number',
|
|
306
|
+
defaultValue: 0.1,
|
|
307
|
+
setter: {
|
|
308
|
+
componentName: 'NumberSetter',
|
|
309
|
+
props: {
|
|
310
|
+
step: 0.1,
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
configure: {
|
|
318
|
+
component: {
|
|
319
|
+
isContainer: true,
|
|
320
|
+
},
|
|
321
|
+
supports: {
|
|
322
|
+
style: true,
|
|
323
|
+
events: [
|
|
324
|
+
{
|
|
325
|
+
name: 'onOpenChange',
|
|
326
|
+
template:
|
|
327
|
+
"onOpenChange(open,${extParams}){\n// 显示隐藏的回调\nconsole.log('onOpenChange',open);}",
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Progress',
|
|
6
|
+
title: '进度条',
|
|
7
|
+
category: '反馈',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Progress",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'type',
|
|
22
|
+
title: { label: '类型', tip: '类型' },
|
|
23
|
+
propType: { type: 'oneOf', value: ['line', 'circle', 'dashboard'] },
|
|
24
|
+
setter: {
|
|
25
|
+
componentName: 'RadioGroupSetter',
|
|
26
|
+
props: {
|
|
27
|
+
options: [
|
|
28
|
+
{ title: '线型', value: 'line' },
|
|
29
|
+
{ title: '圆型', value: 'circle' },
|
|
30
|
+
{ title: '仪表盘', value: 'dashboard' },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
defaultValue: 'line',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'format',
|
|
38
|
+
title: { label: '内容格式', tip: '内容格式' },
|
|
39
|
+
propType: 'func',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'percent',
|
|
43
|
+
title: { label: '百分比', tip: '百分比' },
|
|
44
|
+
propType: 'number',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'showInfo',
|
|
48
|
+
title: { label: '显示数值或图标', tip: '显示数值或图标' },
|
|
49
|
+
propType: 'bool',
|
|
50
|
+
defaultValue: true,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'status',
|
|
54
|
+
title: { label: '状态', tip: '状态' },
|
|
55
|
+
propType: {
|
|
56
|
+
type: 'oneOf',
|
|
57
|
+
value: ['success', 'exception', 'normal', 'active'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'steps',
|
|
62
|
+
title: { label: '总步数', tip: '进度条总共步数' },
|
|
63
|
+
condition(target) {
|
|
64
|
+
// 仅线型有效
|
|
65
|
+
return target.getProps().getPropValue('type') === 'line';
|
|
66
|
+
},
|
|
67
|
+
propType: 'number',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'strokeLinecap',
|
|
71
|
+
title: { label: '进度条的样式', tip: '进度条的样式' },
|
|
72
|
+
propType: {
|
|
73
|
+
type: 'oneOf',
|
|
74
|
+
value: ['round', 'square'],
|
|
75
|
+
},
|
|
76
|
+
setter: {
|
|
77
|
+
componentName: 'RadioGroupSetter',
|
|
78
|
+
props: {
|
|
79
|
+
options: [
|
|
80
|
+
{ title: '圆角', value: 'round' },
|
|
81
|
+
{ title: '方角', value: 'square' },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
defaultValue: 'round',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'strokeWidth',
|
|
89
|
+
title: { label: '线宽度', tip: '线宽度' },
|
|
90
|
+
propType: 'number',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'strokeColor',
|
|
94
|
+
title: { label: '进度条的颜色', tip: '进度条的颜色' },
|
|
95
|
+
propType: 'string',
|
|
96
|
+
condition(target) {
|
|
97
|
+
// 仪表盘样式无效
|
|
98
|
+
return target.getProps().getPropValue('type') !== 'dashboard';
|
|
99
|
+
},
|
|
100
|
+
setter: 'ColorSetter',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'trailColor',
|
|
104
|
+
title: {
|
|
105
|
+
label: '未完成的分段的颜色',
|
|
106
|
+
tip: '未完成的分段的颜色',
|
|
107
|
+
},
|
|
108
|
+
propType: 'string',
|
|
109
|
+
setter: 'ColorSetter',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'gapDegree',
|
|
113
|
+
title: {
|
|
114
|
+
label: '缺口角度',
|
|
115
|
+
tip: '仪表盘进度条缺口角度,可取值 0 ~ 295',
|
|
116
|
+
},
|
|
117
|
+
condition(target) {
|
|
118
|
+
// 仅仪表盘样式有效
|
|
119
|
+
return target.getProps().getPropValue('type') === 'dashboard';
|
|
120
|
+
},
|
|
121
|
+
propType: 'number',
|
|
122
|
+
defaultValue: 75,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'gapPosition',
|
|
126
|
+
title: {
|
|
127
|
+
label: '缺口位置',
|
|
128
|
+
tip: '仪表盘进度条缺口位置',
|
|
129
|
+
},
|
|
130
|
+
condition(target) {
|
|
131
|
+
// 仅仪表盘样式有效
|
|
132
|
+
return target.getProps().getPropValue('type') === 'dashboard';
|
|
133
|
+
},
|
|
134
|
+
propType: {
|
|
135
|
+
type: 'oneOf',
|
|
136
|
+
value: ['top', 'bottom', 'left', 'right'],
|
|
137
|
+
},
|
|
138
|
+
defaultValue: 'bottom',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
configure: { supports: { style: true } },
|
|
142
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '进度条',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/progress-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Progress',
|
|
7
|
+
props: {
|
|
8
|
+
percent: 20,
|
|
9
|
+
status: 'active',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: '进度圈',
|
|
15
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/progress-2.png',
|
|
16
|
+
schema: {
|
|
17
|
+
componentName: 'Progress',
|
|
18
|
+
props: {
|
|
19
|
+
percent: 20,
|
|
20
|
+
type: 'circle',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Radio',
|
|
6
|
+
title: '单选框',
|
|
7
|
+
category: '表单',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Radio",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'children',
|
|
22
|
+
title: { label: '内容', tip: '内容' },
|
|
23
|
+
propType: 'string',
|
|
24
|
+
setter: 'StringSetter',
|
|
25
|
+
supportVariable: true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'autoFocus',
|
|
29
|
+
title: { label: '自动聚焦', tip: '自动获取焦点' },
|
|
30
|
+
propType: 'bool',
|
|
31
|
+
defaultValue: false,
|
|
32
|
+
setter: 'BoolSetter',
|
|
33
|
+
supportVariable: true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'defaultChecked',
|
|
37
|
+
title: { label: '默认选中', tip: '初始是否选中' },
|
|
38
|
+
propType: 'bool',
|
|
39
|
+
defaultValue: false,
|
|
40
|
+
setter: 'BoolSetter',
|
|
41
|
+
supportVariable: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'checked',
|
|
45
|
+
title: { label: '是否选中', tip: '指定当前是否选中' },
|
|
46
|
+
propType: 'bool',
|
|
47
|
+
defaultValue: false,
|
|
48
|
+
setter: 'BoolSetter',
|
|
49
|
+
supportVariable: true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'disabled',
|
|
53
|
+
title: { label: '是否禁用', tip: '是否为禁用状态' },
|
|
54
|
+
propType: 'bool',
|
|
55
|
+
defaultValue: false,
|
|
56
|
+
setter: 'BoolSetter',
|
|
57
|
+
supportVariable: true
|
|
58
|
+
},
|
|
59
|
+
// {
|
|
60
|
+
// name: 'value',
|
|
61
|
+
// title: {
|
|
62
|
+
// label: '根据值判断',
|
|
63
|
+
// tip: '根据 value 进行比较,判断是否选中',
|
|
64
|
+
// },
|
|
65
|
+
// propType: 'string',
|
|
66
|
+
// },
|
|
67
|
+
],
|
|
68
|
+
configure: { supports: { style: true } },
|
|
69
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '单选框',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/radio-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Radio',
|
|
7
|
+
props: {
|
|
8
|
+
children: 'Radio',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
title: '单选框组',
|
|
14
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/radio-group-1.png',
|
|
15
|
+
schema: {
|
|
16
|
+
componentName: 'Radio.Group',
|
|
17
|
+
props: {
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
label: 'A',
|
|
21
|
+
value: 'A',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'B',
|
|
25
|
+
value: 'B',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: 'C',
|
|
29
|
+
value: 'C',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
];
|
|
Binary file
|