@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,453 @@
|
|
|
1
|
+
import { uuid } from "../_utils/utils";
|
|
2
|
+
|
|
3
|
+
import snippets from "./snippets";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
snippets,
|
|
7
|
+
componentName: "AutoComplete",
|
|
8
|
+
title: "辅助提示输入框",
|
|
9
|
+
category: "表单",
|
|
10
|
+
docUrl: "",
|
|
11
|
+
screenshot: "",
|
|
12
|
+
devMode: "proCode",
|
|
13
|
+
npm: {
|
|
14
|
+
package: "@pisell/materials",
|
|
15
|
+
version: "1.0.1",
|
|
16
|
+
exportName: "AutoComplete",
|
|
17
|
+
main: "src/index.tsx",
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: "",
|
|
20
|
+
},
|
|
21
|
+
configure: {
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
name: "defaultValue",
|
|
25
|
+
title: { label: "默认值", tip: "默认选中值" },
|
|
26
|
+
propType: "string",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "value",
|
|
30
|
+
title: { label: "当前值", tip: "当前选中值" },
|
|
31
|
+
propType: "string",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "allowClear",
|
|
35
|
+
title: { label: "支持清除", tip: "是否允许清除" },
|
|
36
|
+
propType: "bool",
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "options",
|
|
41
|
+
title: { label: "选项内容", tip: "选项列表" },
|
|
42
|
+
setter: {
|
|
43
|
+
componentName: "ArraySetter",
|
|
44
|
+
props: {
|
|
45
|
+
itemSetter: {
|
|
46
|
+
componentName: "ObjectSetter",
|
|
47
|
+
props: {
|
|
48
|
+
config: {
|
|
49
|
+
items: [
|
|
50
|
+
{
|
|
51
|
+
name: "label",
|
|
52
|
+
title: "选项名",
|
|
53
|
+
setter: "StringSetter",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "value",
|
|
57
|
+
title: "选项值",
|
|
58
|
+
setter: "StringSetter",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
initialValue: () => {
|
|
64
|
+
return {
|
|
65
|
+
label: "选项名",
|
|
66
|
+
value: uuid(),
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "autoFocus",
|
|
75
|
+
title: { label: "自动聚焦", tip: "自动获取焦点" },
|
|
76
|
+
propType: "bool",
|
|
77
|
+
defaultValue: false,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "backfill",
|
|
81
|
+
title: {
|
|
82
|
+
label: "键盘选中回填",
|
|
83
|
+
tip: "使用键盘选择选项的时候把选中项回填到输入框中",
|
|
84
|
+
},
|
|
85
|
+
propType: "bool",
|
|
86
|
+
defaultValue: false,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "defaultActiveFirstOption",
|
|
90
|
+
title: { label: "默认高亮首个选项", tip: "是否默认高亮第一个选项" },
|
|
91
|
+
propType: "bool",
|
|
92
|
+
defaultValue: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "disabled",
|
|
96
|
+
title: { label: "是否禁用", tip: "是否为禁用状态" },
|
|
97
|
+
propType: "bool",
|
|
98
|
+
defaultValue: false,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "filterOption",
|
|
102
|
+
title: { label: "可选项筛选", tip: "是否根据输入项进行筛选" },
|
|
103
|
+
propType: "bool",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "placeholder",
|
|
107
|
+
title: { label: "输入框提示", tip: "输入框提示" },
|
|
108
|
+
propType: "string",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "onBlur",
|
|
112
|
+
title: { label: "失去焦点时的回调", tip: "失去焦点时的回调" },
|
|
113
|
+
propType: "func",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "onChange",
|
|
117
|
+
title: {
|
|
118
|
+
label: "value变化时的回调",
|
|
119
|
+
tip: "选中 option,或 input 的 value 变化时,调用此函数",
|
|
120
|
+
},
|
|
121
|
+
propType: "func",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "onFocus",
|
|
125
|
+
title: { label: "获得焦点时的回调", tip: "获得焦点时的回调" },
|
|
126
|
+
propType: "func",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "onSearch",
|
|
130
|
+
title: { label: "搜索补全项的时候调用", tip: "搜索补全项的时候调用" },
|
|
131
|
+
propType: "func",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "onSelect",
|
|
135
|
+
title: {
|
|
136
|
+
label: "被选中时的回调",
|
|
137
|
+
tip: "被选中时调用,参数为选中项的 value 值",
|
|
138
|
+
},
|
|
139
|
+
propType: "func",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "defaultOpen",
|
|
143
|
+
title: { label: "默认展开菜单", tip: "是否默认展开下拉菜单" },
|
|
144
|
+
propType: "bool",
|
|
145
|
+
},
|
|
146
|
+
// {
|
|
147
|
+
// name: 'open',
|
|
148
|
+
// title: { label: '展开下拉菜单', tip: '是否展开下拉菜单' },
|
|
149
|
+
// propType: 'bool',
|
|
150
|
+
// },
|
|
151
|
+
{
|
|
152
|
+
name: "onDropdownVisibleChange",
|
|
153
|
+
title: { label: "展开下拉菜单的回调", tip: "展开下拉菜单的回调" },
|
|
154
|
+
propType: "func",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "notFoundContent",
|
|
158
|
+
title: { label: "无数据展示", tip: "当下拉列表为空时显示的内容" },
|
|
159
|
+
propType: "string",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
/*props: [
|
|
163
|
+
{
|
|
164
|
+
name: 'defaultValue',
|
|
165
|
+
title: {
|
|
166
|
+
label: {
|
|
167
|
+
type: 'i18n',
|
|
168
|
+
zh_CN: '默认值',
|
|
169
|
+
en_US: 'Default Value',
|
|
170
|
+
},
|
|
171
|
+
tip: {
|
|
172
|
+
type: 'i18n',
|
|
173
|
+
zh_CN: '属性: defaultValue | 说明: 默认值',
|
|
174
|
+
en_US: 'prop: defaultValue | description: defaultValue',
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
setter: 'StringSetter',
|
|
178
|
+
supportVariable: true,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'value',
|
|
182
|
+
title: {
|
|
183
|
+
label: {
|
|
184
|
+
type: 'i18n',
|
|
185
|
+
zh_CN: '当前值',
|
|
186
|
+
en_US: 'Value',
|
|
187
|
+
},
|
|
188
|
+
tip: {
|
|
189
|
+
type: 'i18n',
|
|
190
|
+
zh_CN: '属性: Value | 说明: 当前值',
|
|
191
|
+
en_US: 'prop: Value | description: Value',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
setter: 'StringSetter',
|
|
195
|
+
supportVariable: true,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'allowClear',
|
|
199
|
+
title: {
|
|
200
|
+
label: {
|
|
201
|
+
type: 'i18n',
|
|
202
|
+
zh_CN: '支持清除',
|
|
203
|
+
en_US: 'Allow Clear',
|
|
204
|
+
},
|
|
205
|
+
tip: {
|
|
206
|
+
type: 'i18n',
|
|
207
|
+
zh_CN: '属性: allowClear | 说明:是否允许清除',
|
|
208
|
+
en_US: 'prop: allowClear | description: Allow Clear',
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
setter: 'BoolSetter',
|
|
212
|
+
supportVariable: true,
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'options',
|
|
216
|
+
title: {
|
|
217
|
+
label: {
|
|
218
|
+
type: 'i18n',
|
|
219
|
+
zh_CN: '选项内容',
|
|
220
|
+
en_US: 'Options',
|
|
221
|
+
},
|
|
222
|
+
tip: {
|
|
223
|
+
type: 'i18n',
|
|
224
|
+
zh_CN: '属性: options | 说明:选项列表',
|
|
225
|
+
en_US: 'prop: options | description: Options',
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
setter: {
|
|
229
|
+
componentName: 'ArraySetter',
|
|
230
|
+
props: {
|
|
231
|
+
itemSetter: {
|
|
232
|
+
componentName: 'ObjectSetter',
|
|
233
|
+
props: {
|
|
234
|
+
config: {
|
|
235
|
+
items: [
|
|
236
|
+
{
|
|
237
|
+
name: 'label',
|
|
238
|
+
title: '选项名',
|
|
239
|
+
setter: 'StringSetter',
|
|
240
|
+
isRequired: true
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'value',
|
|
244
|
+
title: '选项值',
|
|
245
|
+
setter: 'StringSetter',
|
|
246
|
+
isRequired: true
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
initialValue: () => {
|
|
252
|
+
return {
|
|
253
|
+
label: '选项名',
|
|
254
|
+
value: uuid(),
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'autoFocus',
|
|
263
|
+
title: {
|
|
264
|
+
label: {
|
|
265
|
+
type: 'i18n',
|
|
266
|
+
zh_CN: '自动聚焦',
|
|
267
|
+
en_US: 'Auto Focus',
|
|
268
|
+
},
|
|
269
|
+
tip: {
|
|
270
|
+
type: 'i18n',
|
|
271
|
+
zh_CN: '属性: autoFocus | 说明:自动获取焦点',
|
|
272
|
+
en_US: 'prop: autoFocus | description: Auto Focus',
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
setter: 'BoolSetter',
|
|
276
|
+
supportVariable: true,
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
name: 'backfill',
|
|
280
|
+
title: {
|
|
281
|
+
label: {
|
|
282
|
+
type: 'i18n',
|
|
283
|
+
zh_CN: '键盘选中回填',
|
|
284
|
+
en_US: 'Backfill',
|
|
285
|
+
},
|
|
286
|
+
tip: {
|
|
287
|
+
type: 'i18n',
|
|
288
|
+
zh_CN: '属性: backfill | 说明:使用键盘选择选项的时候把选中项回填到输入框中',
|
|
289
|
+
en_US: 'prop: backfill | description: When using the keyboard to select options, backfill the selected items into the input box',
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
setter: 'BoolSetter',
|
|
293
|
+
supportVariable: true,
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'defaultActiveFirstOption',
|
|
297
|
+
title: {
|
|
298
|
+
label: {
|
|
299
|
+
type: 'i18n',
|
|
300
|
+
zh_CN: '默认高亮首个选项',
|
|
301
|
+
en_US: 'Default Active First Option',
|
|
302
|
+
},
|
|
303
|
+
tip: {
|
|
304
|
+
type: 'i18n',
|
|
305
|
+
zh_CN: '属性: defaultActiveFirstOption | 说明:是否默认高亮第一个选项',
|
|
306
|
+
en_US: 'prop: defaultActiveFirstOption | description: Whether to highlight the first option by default',
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
setter: 'BoolSetter',
|
|
310
|
+
defaultValue: true,
|
|
311
|
+
supportVariable: true,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
name: 'disabled',
|
|
315
|
+
title: {
|
|
316
|
+
label: {
|
|
317
|
+
type: 'i18n',
|
|
318
|
+
zh_CN: '是否禁用',
|
|
319
|
+
en_US: 'Disabled',
|
|
320
|
+
},
|
|
321
|
+
tip: {
|
|
322
|
+
type: 'i18n',
|
|
323
|
+
zh_CN: '属性: disabled | 说明:是否为禁用状态',
|
|
324
|
+
en_US: 'prop: disabled | description: Disable',
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
setter: 'BoolSetter',
|
|
328
|
+
supportVariable: true,
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: 'filterOption',
|
|
332
|
+
title: {
|
|
333
|
+
label: {
|
|
334
|
+
type: 'i18n',
|
|
335
|
+
zh_CN: '可选项筛选',
|
|
336
|
+
en_US: 'Filter Option',
|
|
337
|
+
},
|
|
338
|
+
tip: {
|
|
339
|
+
type: 'i18n',
|
|
340
|
+
zh_CN: '属性: filterOption | 说明:是否根据输入项进行筛选',
|
|
341
|
+
en_US: 'prop: filterOption | description: Filter based on input',
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
setter: 'BoolSetter',
|
|
345
|
+
supportVariable: true,
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: 'placeholder',
|
|
349
|
+
title: {
|
|
350
|
+
label: {
|
|
351
|
+
type: 'i18n',
|
|
352
|
+
zh_CN: '输入框提示',
|
|
353
|
+
en_US: 'Placeholder',
|
|
354
|
+
},
|
|
355
|
+
tip: {
|
|
356
|
+
type: 'i18n',
|
|
357
|
+
zh_CN: '属性: placeholder | 说明: 输入框提示',
|
|
358
|
+
en_US: 'prop: placeholder | description: Placeholder',
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
setter: 'StringSetter',
|
|
362
|
+
supportVariable: true,
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'defaultOpen',
|
|
366
|
+
propType: 'bool',
|
|
367
|
+
title: {
|
|
368
|
+
label: {
|
|
369
|
+
type: 'i18n',
|
|
370
|
+
zh_CN: '默认展开菜单',
|
|
371
|
+
en_US: 'Default Open',
|
|
372
|
+
},
|
|
373
|
+
tip: {
|
|
374
|
+
type: 'i18n',
|
|
375
|
+
zh_CN: '属性: defaultOpen | 说明:是否默认展开下拉菜单',
|
|
376
|
+
en_US: 'prop: defaultOpen | description: Expand drop-down menu by default',
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
setter: 'BoolSetter',
|
|
380
|
+
supportVariable: true,
|
|
381
|
+
},
|
|
382
|
+
// {
|
|
383
|
+
// name: 'open',
|
|
384
|
+
// title: {
|
|
385
|
+
// label: {
|
|
386
|
+
// type: 'i18n',
|
|
387
|
+
// zh_CN: '展开下拉菜单',
|
|
388
|
+
// en_US: 'Open',
|
|
389
|
+
// },
|
|
390
|
+
// tip: {
|
|
391
|
+
// type: 'i18n',
|
|
392
|
+
// zh_CN: '属性: open | 说明:是否展开下拉菜单',
|
|
393
|
+
// en_US: 'prop: open | description: Expand drop-down menu',
|
|
394
|
+
// }
|
|
395
|
+
// },
|
|
396
|
+
// setter: 'BoolSetter',
|
|
397
|
+
// supportVariable: true,
|
|
398
|
+
// },
|
|
399
|
+
{
|
|
400
|
+
name: 'notFoundContent',
|
|
401
|
+
title: {
|
|
402
|
+
label: {
|
|
403
|
+
type: 'i18n',
|
|
404
|
+
zh_CN: '无数据展示',
|
|
405
|
+
en_US: 'Not Found Content',
|
|
406
|
+
},
|
|
407
|
+
tip: {
|
|
408
|
+
type: 'i18n',
|
|
409
|
+
zh_CN: '属性: notFoundContent | 说明: 当下拉列表为空时显示的内容',
|
|
410
|
+
en_US: 'prop: notFoundContent | description: Content displayed when the drop-down list is empty',
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
setter: 'StringSetter',
|
|
414
|
+
supportVariable: true,
|
|
415
|
+
},
|
|
416
|
+
],*/
|
|
417
|
+
supports: {
|
|
418
|
+
style: true,
|
|
419
|
+
events: [
|
|
420
|
+
{
|
|
421
|
+
name: "onBlur",
|
|
422
|
+
template:
|
|
423
|
+
"onBlur(${extParams}){\n// 失去焦点时的回调\nconsole.log('onBlur');}",
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
name: "onChange",
|
|
427
|
+
template:
|
|
428
|
+
"onChange(value,${extParams}){\n// 选中 option,或 input 的 value 变化时,调用此函数\nconsole.log('onChange', value);}",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: "onFocus",
|
|
432
|
+
template:
|
|
433
|
+
"onFocus(${extParams}){\n// 选中 option,或 input 的 value 变化时,调用此函数\nconsole.log('onFocus')}",
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
name: "onSearch",
|
|
437
|
+
template:
|
|
438
|
+
"onSearch(value,${extParams}){\n// 搜索补全项的时候调用\nconsole.log('onSearch',value);}",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "onSelect",
|
|
442
|
+
template:
|
|
443
|
+
"onSelect(value,option,${extParams}){\n// 被选中时调用\nconsole.log('onSelect', value, option);}",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: "onDropdownVisibleChange",
|
|
447
|
+
template:
|
|
448
|
+
"onDropdownVisibleChange(open,${extParams}){\n// 展开下拉菜单的回调\nconsole.log('onDropdownVisibleChange', open);}",
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '辅助提示输入框',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/auto-complete-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'AutoComplete',
|
|
7
|
+
props: {
|
|
8
|
+
placeholder: '请输入',
|
|
9
|
+
options: [
|
|
10
|
+
{
|
|
11
|
+
label: '测试1',
|
|
12
|
+
value: 'aaa',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: '测试2',
|
|
16
|
+
value: 'bbb',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
filterOption: true,
|
|
20
|
+
style: {
|
|
21
|
+
width: '200px',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "Avatar",
|
|
6
|
+
title: "头像",
|
|
7
|
+
category: "数据展示",
|
|
8
|
+
devMode: "proCode",
|
|
9
|
+
npm: {
|
|
10
|
+
package: "@pisell/materials",
|
|
11
|
+
version: "1.0.1",
|
|
12
|
+
exportName: "Avatar",
|
|
13
|
+
main: "src/index.tsx",
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: "",
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [
|
|
19
|
+
{
|
|
20
|
+
name: "icon",
|
|
21
|
+
title: { label: "头像图标", tip: "设置头像的自定义图标" },
|
|
22
|
+
propType: "node",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "shape",
|
|
26
|
+
title: { label: "头像形状", tip: "指定头像的形状" },
|
|
27
|
+
propType: { type: "oneOf", value: ["circle", "square"] },
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "size",
|
|
31
|
+
title: { label: "尺寸", tip: "设置头像的大小" },
|
|
32
|
+
propType: {
|
|
33
|
+
type: "oneOfType",
|
|
34
|
+
value: [
|
|
35
|
+
"number",
|
|
36
|
+
{ type: "oneOf", value: ["large", "small", "default"] },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
defaultValue: "default",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "src",
|
|
43
|
+
title: { label: "图片地址", tip: "图片类头像的资源地址" },
|
|
44
|
+
propType: "string",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "alt",
|
|
48
|
+
title: {
|
|
49
|
+
label: "替代文本",
|
|
50
|
+
tip: "图像无法显示时的替代文本",
|
|
51
|
+
},
|
|
52
|
+
propType: "string",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "onError",
|
|
56
|
+
title: {
|
|
57
|
+
label: "图片加载失败的事件",
|
|
58
|
+
tip: "图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为",
|
|
59
|
+
},
|
|
60
|
+
propType: "func",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "gap",
|
|
64
|
+
title: {
|
|
65
|
+
label: "文字边距",
|
|
66
|
+
tip: "字符类型距离左右两侧边界单位像素",
|
|
67
|
+
},
|
|
68
|
+
propType: "number",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
supports: {
|
|
72
|
+
style: true,
|
|
73
|
+
events: [
|
|
74
|
+
{
|
|
75
|
+
name: "onError",
|
|
76
|
+
template:
|
|
77
|
+
"onError(${extParams}){\n// 图片加载失败的事件\nconsole.log('onError');}",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '头像',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/avatar-1.jpg',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'Avatar',
|
|
7
|
+
props: {
|
|
8
|
+
src: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Badge',
|
|
6
|
+
title: '徽标数',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Badge",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
configure: {
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
name: 'color',
|
|
23
|
+
title: { label: '圆点颜色', tip: '自定义小圆点的颜色' },
|
|
24
|
+
propType: 'string',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'count',
|
|
28
|
+
title: {
|
|
29
|
+
label: '展示数字',
|
|
30
|
+
tip: '展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏',
|
|
31
|
+
},
|
|
32
|
+
propType: 'node',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'dot',
|
|
36
|
+
title: {
|
|
37
|
+
label: '展示圆点',
|
|
38
|
+
tip: '不展示数字,只有一个小红点',
|
|
39
|
+
},
|
|
40
|
+
propType: 'bool',
|
|
41
|
+
defaultValue: false,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'offset',
|
|
45
|
+
title: {
|
|
46
|
+
label: '圆点偏移',
|
|
47
|
+
tip: '设置状态点的位置偏移 [number, number]',
|
|
48
|
+
},
|
|
49
|
+
propType: { type: 'arrayOf', value: 'number' },
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'overflowCount',
|
|
53
|
+
title: { label: '封顶值', tip: '展示封顶的数字值' },
|
|
54
|
+
propType: 'number',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'showZero',
|
|
58
|
+
title: {
|
|
59
|
+
label: '展示零值',
|
|
60
|
+
tip: '当数值为 0 时,是否展示 Badge',
|
|
61
|
+
},
|
|
62
|
+
propType: 'bool',
|
|
63
|
+
defaultValue: false,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'status',
|
|
67
|
+
title: { label: '状态', tip: '设置 Badge 为状态点' },
|
|
68
|
+
propType: {
|
|
69
|
+
type: 'oneOf',
|
|
70
|
+
value: ['success', 'processing', 'default', 'error', 'warning'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'text',
|
|
75
|
+
title: {
|
|
76
|
+
label: '状态文本',
|
|
77
|
+
tip: '在设置了 `status` 的前提下有效,设置状态点的文本',
|
|
78
|
+
},
|
|
79
|
+
condition(target) {
|
|
80
|
+
return !!target.getProps().getPropValue('status');
|
|
81
|
+
},
|
|
82
|
+
propType: 'string',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'title',
|
|
86
|
+
title: {
|
|
87
|
+
label: '悬浮提示',
|
|
88
|
+
tip: '设置鼠标放在状态点上时显示的文字',
|
|
89
|
+
},
|
|
90
|
+
propType: 'string',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
supports: { style: true } },
|
|
94
|
+
};
|
|
Binary file
|