@dckj-npm/dc-material 0.1.8 → 0.1.9
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/README.md +17 -17
- package/lowcode/d-c-slider/meta.ts +331 -331
- package/lowcode/d-c-slider/snippets.ts +42 -42
- package/lowcode/grid-nav/meta.ts +160 -0
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/navigation/meta.ts +152 -151
- package/lowcode/position/meta.ts +211 -0
- package/lowcode/search-bar/meta.ts +54 -0
- package/lowcode/tag-c/meta.ts +75 -0
- package/lowcode/teletext-list/meta.ts +342 -300
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/package.json +110 -110
- package/build/index.css +0 -2
- package/build/index.html +0 -1
- package/build/index.js +0 -53
- package/build/lowcode/assets-daily.json +0 -67
- package/build/lowcode/assets-dev.json +0 -67
- package/build/lowcode/assets-prod.json +0 -67
- package/build/lowcode/designer.html +0 -302
- package/build/lowcode/index.html +0 -304
- package/build/lowcode/index.js +0 -1
- package/build/lowcode/meta.js +0 -1
- package/build/lowcode/preview.css +0 -1
- package/build/lowcode/preview.html +0 -33
- package/build/lowcode/preview.js +0 -308
- package/build/lowcode/render/default/view.css +0 -1
- package/build/lowcode/render/default/view.js +0 -295
- package/build/lowcode/view.css +0 -1
- package/build/lowcode/view.js +0 -295
- package/dist/BizComps.css +0 -1
- package/dist/BizComps.js +0 -7
- package/dist/BizComps.js.map +0 -1
- package/es/assets/icon/navigation/index-selected.png +0 -0
- package/es/assets/icon/navigation/index.png +0 -0
- package/es/assets/icon/navigation/message-selected.png +0 -0
- package/es/assets/icon/navigation/message.png +0 -0
- package/es/assets/icon/navigation/mine-selected.png +0 -0
- package/es/assets/icon/navigation/mine.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -13
- package/es/components/bottom-navigation/bottom-navigation.js +0 -39
- package/es/components/bottom-navigation/index.d.ts +0 -3
- package/es/components/bottom-navigation/index.js +0 -2
- package/es/components/bottom-navigation/index.scss +0 -16
- package/es/components/colorful-button/colorful-button.d.ts +0 -12
- package/es/components/colorful-button/colorful-button.js +0 -25
- package/es/components/colorful-button/index.d.ts +0 -3
- package/es/components/colorful-button/index.js +0 -2
- package/es/components/colorful-button/index.scss +0 -5
- package/es/components/colorful-input/colorful-input.d.ts +0 -8
- package/es/components/colorful-input/colorful-input.js +0 -19
- package/es/components/colorful-input/index.d.ts +0 -3
- package/es/components/colorful-input/index.js +0 -2
- package/es/components/colorful-input/index.scss +0 -5
- package/es/components/dc-slider/index.d.ts +0 -3
- package/es/components/dc-slider/index.js +0 -2
- package/es/components/dc-slider/index.scss +0 -8
- package/es/components/dc-slider/slider.d.ts +0 -32
- package/es/components/dc-slider/slider.js +0 -14
- package/es/components/menu-list/index.d.ts +0 -6
- package/es/components/menu-list/index.js +0 -6
- package/es/components/menu-list/index.scss +0 -16
- package/es/components/menu-list/menu-list-item.d.ts +0 -5
- package/es/components/menu-list/menu-list-item.js +0 -32
- package/es/components/menu-list/menu-list-item.scss +0 -49
- package/es/components/menu-list/menu-list.d.ts +0 -5
- package/es/components/menu-list/menu-list.js +0 -25
- package/es/components/menu-list/types.d.ts +0 -23
- package/es/components/menu-list/types.js +0 -1
- package/es/components/teletext-list/index.d.ts +0 -6
- package/es/components/teletext-list/index.js +0 -6
- package/es/components/teletext-list/index.scss +0 -16
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/es/components/teletext-list/teletext-list-item.js +0 -50
- package/es/components/teletext-list/teletext-list-item.scss +0 -74
- package/es/components/teletext-list/teletext-list.d.ts +0 -53
- package/es/components/teletext-list/teletext-list.js +0 -73
- package/es/components/title/index.d.ts +0 -8
- package/es/components/title/index.js +0 -7
- package/es/components/title/title-1.d.ts +0 -10
- package/es/components/title/title-1.js +0 -16
- package/es/components/title/title-1.scss +0 -26
- package/es/components/title/title-2.d.ts +0 -18
- package/es/components/title/title-2.js +0 -31
- package/es/components/title/title-2.scss +0 -22
- package/es/index.d.ts +0 -14
- package/es/index.js +0 -8
- package/es/index.scss +0 -3
- package/es/style.js +0 -3
- package/es/variables.d.ts +0 -2
- package/es/variables.js +0 -2
- package/es/variables.scss +0 -3
- package/lib/assets/icon/navigation/index-selected.png +0 -0
- package/lib/assets/icon/navigation/index.png +0 -0
- package/lib/assets/icon/navigation/message-selected.png +0 -0
- package/lib/assets/icon/navigation/message.png +0 -0
- package/lib/assets/icon/navigation/mine-selected.png +0 -0
- package/lib/assets/icon/navigation/mine.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -13
- package/lib/components/bottom-navigation/bottom-navigation.js +0 -46
- package/lib/components/bottom-navigation/index.d.ts +0 -3
- package/lib/components/bottom-navigation/index.js +0 -7
- package/lib/components/bottom-navigation/index.scss +0 -16
- package/lib/components/colorful-button/colorful-button.d.ts +0 -12
- package/lib/components/colorful-button/colorful-button.js +0 -32
- package/lib/components/colorful-button/index.d.ts +0 -3
- package/lib/components/colorful-button/index.js +0 -7
- package/lib/components/colorful-button/index.scss +0 -5
- package/lib/components/colorful-input/colorful-input.d.ts +0 -8
- package/lib/components/colorful-input/colorful-input.js +0 -26
- package/lib/components/colorful-input/index.d.ts +0 -3
- package/lib/components/colorful-input/index.js +0 -7
- package/lib/components/colorful-input/index.scss +0 -5
- package/lib/components/dc-slider/index.d.ts +0 -3
- package/lib/components/dc-slider/index.js +0 -7
- package/lib/components/dc-slider/index.scss +0 -8
- package/lib/components/dc-slider/slider.d.ts +0 -32
- package/lib/components/dc-slider/slider.js +0 -21
- package/lib/components/menu-list/index.d.ts +0 -6
- package/lib/components/menu-list/index.js +0 -10
- package/lib/components/menu-list/index.scss +0 -16
- package/lib/components/menu-list/menu-list-item.d.ts +0 -5
- package/lib/components/menu-list/menu-list-item.js +0 -37
- package/lib/components/menu-list/menu-list-item.scss +0 -49
- package/lib/components/menu-list/menu-list.d.ts +0 -5
- package/lib/components/menu-list/menu-list.js +0 -30
- package/lib/components/menu-list/types.d.ts +0 -23
- package/lib/components/menu-list/types.js +0 -3
- package/lib/components/teletext-list/index.d.ts +0 -6
- package/lib/components/teletext-list/index.js +0 -10
- package/lib/components/teletext-list/index.scss +0 -16
- package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/lib/components/teletext-list/teletext-list-item.js +0 -54
- package/lib/components/teletext-list/teletext-list-item.scss +0 -74
- package/lib/components/teletext-list/teletext-list.d.ts +0 -53
- package/lib/components/teletext-list/teletext-list.js +0 -77
- package/lib/components/title/index.d.ts +0 -8
- package/lib/components/title/index.js +0 -8
- package/lib/components/title/title-1.d.ts +0 -10
- package/lib/components/title/title-1.js +0 -21
- package/lib/components/title/title-1.scss +0 -26
- package/lib/components/title/title-2.d.ts +0 -18
- package/lib/components/title/title-2.js +0 -36
- package/lib/components/title/title-2.scss +0 -22
- package/lib/index.d.ts +0 -14
- package/lib/index.js +0 -17
- package/lib/index.scss +0 -3
- package/lib/style.js +0 -3
- package/lib/variables.d.ts +0 -2
- package/lib/variables.js +0 -5
- package/lib/variables.scss +0 -3
- package/lowcode_es/d-c-slider/meta.d.ts +0 -140
- package/lowcode_es/d-c-slider/meta.js +0 -298
- package/lowcode_es/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_es/d-c-slider/snippets.js +0 -36
- package/lowcode_es/menu-list/meta.d.ts +0 -22
- package/lowcode_es/menu-list/meta.js +0 -128
- package/lowcode_es/meta.js +0 -169
- package/lowcode_es/navigation/meta.d.ts +0 -22
- package/lowcode_es/navigation/meta.js +0 -135
- package/lowcode_es/teletext-list/meta.d.ts +0 -22
- package/lowcode_es/teletext-list/meta.js +0 -259
- package/lowcode_es/title1/meta.d.ts +0 -22
- package/lowcode_es/title1/meta.js +0 -51
- package/lowcode_es/title2/meta.d.ts +0 -22
- package/lowcode_es/title2/meta.js +0 -83
- package/lowcode_es/view.js +0 -18
- package/lowcode_lib/d-c-slider/meta.d.ts +0 -140
- package/lowcode_lib/d-c-slider/meta.js +0 -303
- package/lowcode_lib/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_lib/d-c-slider/snippets.js +0 -40
- package/lowcode_lib/menu-list/meta.d.ts +0 -22
- package/lowcode_lib/menu-list/meta.js +0 -133
- package/lowcode_lib/meta.js +0 -173
- package/lowcode_lib/navigation/meta.d.ts +0 -22
- package/lowcode_lib/navigation/meta.js +0 -140
- package/lowcode_lib/teletext-list/meta.d.ts +0 -22
- package/lowcode_lib/teletext-list/meta.js +0 -264
- package/lowcode_lib/title1/meta.d.ts +0 -22
- package/lowcode_lib/title1/meta.js +0 -56
- package/lowcode_lib/title2/meta.d.ts +0 -22
- package/lowcode_lib/title2/meta.js +0 -88
- package/lowcode_lib/view.js +0 -29
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
title: '图片轮播',
|
|
4
|
-
screenshot:
|
|
5
|
-
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
6
|
-
schema: {
|
|
7
|
-
componentName: 'DCSlider',
|
|
8
|
-
props: {
|
|
9
|
-
prefix: 'next-',
|
|
10
|
-
animation: 'slide',
|
|
11
|
-
arrows: true,
|
|
12
|
-
arrowSize: 'medium',
|
|
13
|
-
arrowPosition: 'inner',
|
|
14
|
-
arrowDirection: 'hoz',
|
|
15
|
-
autoplaySpeed: 3000,
|
|
16
|
-
dots: true,
|
|
17
|
-
dotsDirection: 'hoz',
|
|
18
|
-
draggable: true,
|
|
19
|
-
infinite: true,
|
|
20
|
-
slide: 'div',
|
|
21
|
-
slideDirection: 'hoz',
|
|
22
|
-
slidesToShow: 1,
|
|
23
|
-
slidesToScroll: 1,
|
|
24
|
-
speed: 600,
|
|
25
|
-
triggerType: 'click',
|
|
26
|
-
centerPadding: '50px',
|
|
27
|
-
cssEase: 'ease',
|
|
28
|
-
edgeFriction: 0.35,
|
|
29
|
-
swipe: true,
|
|
30
|
-
touchMove: true,
|
|
31
|
-
touchThreshold: 5,
|
|
32
|
-
useCSS: true,
|
|
33
|
-
waitForAnimate: true,
|
|
34
|
-
// 轮播路径
|
|
35
|
-
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
36
|
-
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
37
|
-
'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
|
|
38
|
-
'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
];
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '图片轮播',
|
|
4
|
+
screenshot:
|
|
5
|
+
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'DCSlider',
|
|
8
|
+
props: {
|
|
9
|
+
prefix: 'next-',
|
|
10
|
+
animation: 'slide',
|
|
11
|
+
arrows: true,
|
|
12
|
+
arrowSize: 'medium',
|
|
13
|
+
arrowPosition: 'inner',
|
|
14
|
+
arrowDirection: 'hoz',
|
|
15
|
+
autoplaySpeed: 3000,
|
|
16
|
+
dots: true,
|
|
17
|
+
dotsDirection: 'hoz',
|
|
18
|
+
draggable: true,
|
|
19
|
+
infinite: true,
|
|
20
|
+
slide: 'div',
|
|
21
|
+
slideDirection: 'hoz',
|
|
22
|
+
slidesToShow: 1,
|
|
23
|
+
slidesToScroll: 1,
|
|
24
|
+
speed: 600,
|
|
25
|
+
triggerType: 'click',
|
|
26
|
+
centerPadding: '50px',
|
|
27
|
+
cssEase: 'ease',
|
|
28
|
+
edgeFriction: 0.35,
|
|
29
|
+
swipe: true,
|
|
30
|
+
touchMove: true,
|
|
31
|
+
touchThreshold: 5,
|
|
32
|
+
useCSS: true,
|
|
33
|
+
waitForAnimate: true,
|
|
34
|
+
// 轮播路径
|
|
35
|
+
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
36
|
+
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
37
|
+
'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
|
|
38
|
+
'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
];
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const GridNavMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
group: '低代码组件',
|
|
6
|
+
"componentName": "GridNav",
|
|
7
|
+
"title": "宫格导航",
|
|
8
|
+
"docUrl": "",
|
|
9
|
+
"screenshot": "",
|
|
10
|
+
"devMode": "proCode",
|
|
11
|
+
"npm": {
|
|
12
|
+
"package": "@dckj-npm/dc-material",
|
|
13
|
+
"version": "0.1.0",
|
|
14
|
+
"exportName": "GridNav",
|
|
15
|
+
"main": "src\\index.tsx",
|
|
16
|
+
"destructuring": true,
|
|
17
|
+
"subName": ""
|
|
18
|
+
},
|
|
19
|
+
"configure": {
|
|
20
|
+
component: {
|
|
21
|
+
isContainer: true,
|
|
22
|
+
},
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
name: 'dataSourceSetting',
|
|
26
|
+
title: '数据源配置',
|
|
27
|
+
setter: {
|
|
28
|
+
componentName: 'SetterFormVariable',
|
|
29
|
+
props: {
|
|
30
|
+
attributes: [
|
|
31
|
+
// { label: '导航项', value: 'items' }
|
|
32
|
+
{ label: '标题', value: 'title' },
|
|
33
|
+
{ label: '图标链接', value: 'icon' },
|
|
34
|
+
{ label: '跳转链接', value: 'link' }
|
|
35
|
+
],
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "每行列数",
|
|
42
|
+
"name": "columns",
|
|
43
|
+
"setter": {
|
|
44
|
+
"componentName": "NumberSetter",
|
|
45
|
+
"isRequired": true,
|
|
46
|
+
"initialValue": 4
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "icon尺寸",
|
|
51
|
+
"name": "iconSize",
|
|
52
|
+
"defaultValue": "medium",
|
|
53
|
+
"initialValue": "medium",
|
|
54
|
+
"setter": {
|
|
55
|
+
"componentName": "SelectSetter",
|
|
56
|
+
"initialValue": "medium",
|
|
57
|
+
"props": {
|
|
58
|
+
"defaultValue": "medium",
|
|
59
|
+
"options":[
|
|
60
|
+
{
|
|
61
|
+
"title": "大",
|
|
62
|
+
"value": "large"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"title": "中",
|
|
66
|
+
"value": "medium"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"title": "小",
|
|
70
|
+
"value": "small"
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"title": "字重",
|
|
78
|
+
"name": "fontWeight",
|
|
79
|
+
"defaultValue": "normal",
|
|
80
|
+
"initialValue": "normal",
|
|
81
|
+
"setter": {
|
|
82
|
+
"componentName": "SelectSetter",
|
|
83
|
+
"initialValue": "normal",
|
|
84
|
+
"props": {
|
|
85
|
+
"defaultValue": "normal",
|
|
86
|
+
"options":[
|
|
87
|
+
{
|
|
88
|
+
"title": "细",
|
|
89
|
+
"value": "100"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"title": "正常",
|
|
93
|
+
"value": "normal"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"title": "粗",
|
|
97
|
+
"value": "bold"
|
|
98
|
+
},
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'fontSize',
|
|
105
|
+
title: '字号',
|
|
106
|
+
defaultValue: 14,
|
|
107
|
+
setter: 'NumberSetter',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'fontColor',
|
|
111
|
+
title: '字体颜色',
|
|
112
|
+
propType: 'string',
|
|
113
|
+
setter: 'ColorSetter',
|
|
114
|
+
defaultValue: '#333',
|
|
115
|
+
initialValue: '#333'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'lineHeight',
|
|
119
|
+
title: '行高',
|
|
120
|
+
defaultValue: 'auto',
|
|
121
|
+
setter: 'StringSetter',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'lineNum',
|
|
125
|
+
title: '行数',
|
|
126
|
+
defaultValue: 1,
|
|
127
|
+
setter: 'NumberSetter',
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
],
|
|
131
|
+
supports: {
|
|
132
|
+
style: true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
137
|
+
{
|
|
138
|
+
"title": "宫格导航",
|
|
139
|
+
"screenshot": "",
|
|
140
|
+
"schema": {
|
|
141
|
+
"componentName": "GridNav",
|
|
142
|
+
"props": {
|
|
143
|
+
"columns": 4,
|
|
144
|
+
"dataSourceSetting": [
|
|
145
|
+
{ "title": '导航项', "icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png', "link": '#' },
|
|
146
|
+
{ "title": '导航项', "icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png', "link": '#' },
|
|
147
|
+
{ "title": '导航项', "icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png', "link": '#' },
|
|
148
|
+
{ "title": '导航项', "icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png', "link": '#' },
|
|
149
|
+
],
|
|
150
|
+
"iconSize": "medium",
|
|
151
|
+
"fontWeight": "normal"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
];
|
|
156
|
+
|
|
157
|
+
export default {
|
|
158
|
+
...GridNavMeta,
|
|
159
|
+
snippets
|
|
160
|
+
};
|
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
|
|
2
|
-
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
-
|
|
4
|
-
const MenuListMeta: IPublicTypeComponentMetadata = {
|
|
5
|
-
"group": "低代码组件",
|
|
6
|
-
"componentName": "MenuList",
|
|
7
|
-
"title": "列表菜单组件",
|
|
8
|
-
"docUrl": "",
|
|
9
|
-
"screenshot": "",
|
|
10
|
-
"devMode": "proCode",
|
|
11
|
-
"npm": {
|
|
12
|
-
"package": "@dckj-npm/dc-material",
|
|
13
|
-
"version": "0.1.8",
|
|
14
|
-
"exportName": "MenuList",
|
|
15
|
-
"main": "src/index.tsx",
|
|
16
|
-
"destructuring": true,
|
|
17
|
-
"subName": ""
|
|
18
|
-
},
|
|
19
|
-
"configure": {
|
|
20
|
-
"props": [
|
|
21
|
-
{
|
|
22
|
-
"title": {
|
|
23
|
-
"label": {
|
|
24
|
-
"type": "i18n",
|
|
25
|
-
"en-US": "dataList",
|
|
26
|
-
"zh-CN": "数据"
|
|
27
|
-
},
|
|
28
|
-
"tip": "dataList | 数据"
|
|
29
|
-
},
|
|
30
|
-
"name": "dataList",
|
|
31
|
-
"description": "数据",
|
|
32
|
-
"setter": {
|
|
33
|
-
"componentName": "ArraySetter",
|
|
34
|
-
"props": {
|
|
35
|
-
"itemSetter": {
|
|
36
|
-
"componentName": "ObjectSetter",
|
|
37
|
-
"props": {
|
|
38
|
-
"config": {
|
|
39
|
-
"items": [
|
|
40
|
-
{
|
|
41
|
-
"title": {
|
|
42
|
-
"label": {
|
|
43
|
-
"type": "i18n",
|
|
44
|
-
"en-US": "title",
|
|
45
|
-
"zh-CN": "title"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"name": "title",
|
|
49
|
-
"description": "菜单名称",
|
|
50
|
-
"setter": {
|
|
51
|
-
"componentName": "StringSetter",
|
|
52
|
-
"isRequired": true,
|
|
53
|
-
"initialValue": ""
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"title": {
|
|
58
|
-
"label": {
|
|
59
|
-
"type": "i18n",
|
|
60
|
-
"en-US": "iconUrl",
|
|
61
|
-
"zh-CN": "iconUrl"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"name": "iconUrl",
|
|
65
|
-
"description": "菜单图标",
|
|
66
|
-
"setter": {
|
|
67
|
-
"componentName": "CustomImageSetter",
|
|
68
|
-
"isRequired": false,
|
|
69
|
-
"initialValue": ""
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"title": {
|
|
74
|
-
"label": {
|
|
75
|
-
"type": "i18n",
|
|
76
|
-
"en-US": "click",
|
|
77
|
-
"zh-CN": "点击事件"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"name": "handleClick",
|
|
81
|
-
"description": "菜单点击事件",
|
|
82
|
-
"setter": {
|
|
83
|
-
"componentName": "FunctionSetter",
|
|
84
|
-
"isRequired": false,
|
|
85
|
-
"initialValue": ""
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"extraSetter": {
|
|
90
|
-
"componentName": "MixedSetter",
|
|
91
|
-
"isRequired": false,
|
|
92
|
-
"props": {}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"initialValue": [
|
|
99
|
-
{
|
|
100
|
-
title: '我的名片',
|
|
101
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/139d14911a124bfc956a7f725e9470e1.png'
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
title: '邀请人名片',
|
|
105
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/50cdc578b82f48a2af504b283fd3c8e5.png'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
title: '在线留言',
|
|
109
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/204802207fff4aaca5b002adebfa4b94.png'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: '联系我们',
|
|
113
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/70a8c6d97c084484a1e19bb7ff1489d3.png'
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
title: '帮助中心',
|
|
117
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/02b52f9fe2294cd68b5a1f09a229194f.png'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
title: '退出登录',
|
|
121
|
-
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/15ac6db27c84409fbacb2ee7826c31ab.png'
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"supports": {
|
|
128
|
-
"style": true
|
|
129
|
-
},
|
|
130
|
-
"component": {}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
const snippets: IPublicTypeSnippet[] = [
|
|
134
|
-
{
|
|
135
|
-
"title": "列表菜单组件",
|
|
136
|
-
"screenshot": "",
|
|
137
|
-
"schema": {
|
|
138
|
-
"componentName": "MenuList",
|
|
139
|
-
"props": {}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
];
|
|
143
|
-
|
|
144
|
-
export default {
|
|
145
|
-
...MenuListMeta,
|
|
146
|
-
snippets
|
|
147
|
-
};
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const MenuListMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"group": "低代码组件",
|
|
6
|
+
"componentName": "MenuList",
|
|
7
|
+
"title": "列表菜单组件",
|
|
8
|
+
"docUrl": "",
|
|
9
|
+
"screenshot": "",
|
|
10
|
+
"devMode": "proCode",
|
|
11
|
+
"npm": {
|
|
12
|
+
"package": "@dckj-npm/dc-material",
|
|
13
|
+
"version": "0.1.8",
|
|
14
|
+
"exportName": "MenuList",
|
|
15
|
+
"main": "src/index.tsx",
|
|
16
|
+
"destructuring": true,
|
|
17
|
+
"subName": ""
|
|
18
|
+
},
|
|
19
|
+
"configure": {
|
|
20
|
+
"props": [
|
|
21
|
+
{
|
|
22
|
+
"title": {
|
|
23
|
+
"label": {
|
|
24
|
+
"type": "i18n",
|
|
25
|
+
"en-US": "dataList",
|
|
26
|
+
"zh-CN": "数据"
|
|
27
|
+
},
|
|
28
|
+
"tip": "dataList | 数据"
|
|
29
|
+
},
|
|
30
|
+
"name": "dataList",
|
|
31
|
+
"description": "数据",
|
|
32
|
+
"setter": {
|
|
33
|
+
"componentName": "ArraySetter",
|
|
34
|
+
"props": {
|
|
35
|
+
"itemSetter": {
|
|
36
|
+
"componentName": "ObjectSetter",
|
|
37
|
+
"props": {
|
|
38
|
+
"config": {
|
|
39
|
+
"items": [
|
|
40
|
+
{
|
|
41
|
+
"title": {
|
|
42
|
+
"label": {
|
|
43
|
+
"type": "i18n",
|
|
44
|
+
"en-US": "title",
|
|
45
|
+
"zh-CN": "title"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"name": "title",
|
|
49
|
+
"description": "菜单名称",
|
|
50
|
+
"setter": {
|
|
51
|
+
"componentName": "StringSetter",
|
|
52
|
+
"isRequired": true,
|
|
53
|
+
"initialValue": ""
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"title": {
|
|
58
|
+
"label": {
|
|
59
|
+
"type": "i18n",
|
|
60
|
+
"en-US": "iconUrl",
|
|
61
|
+
"zh-CN": "iconUrl"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"name": "iconUrl",
|
|
65
|
+
"description": "菜单图标",
|
|
66
|
+
"setter": {
|
|
67
|
+
"componentName": "CustomImageSetter",
|
|
68
|
+
"isRequired": false,
|
|
69
|
+
"initialValue": ""
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"title": {
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "i18n",
|
|
76
|
+
"en-US": "click",
|
|
77
|
+
"zh-CN": "点击事件"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"name": "handleClick",
|
|
81
|
+
"description": "菜单点击事件",
|
|
82
|
+
"setter": {
|
|
83
|
+
"componentName": "FunctionSetter",
|
|
84
|
+
"isRequired": false,
|
|
85
|
+
"initialValue": ""
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"extraSetter": {
|
|
90
|
+
"componentName": "MixedSetter",
|
|
91
|
+
"isRequired": false,
|
|
92
|
+
"props": {}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"initialValue": [
|
|
99
|
+
{
|
|
100
|
+
title: '我的名片',
|
|
101
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/139d14911a124bfc956a7f725e9470e1.png'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: '邀请人名片',
|
|
105
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/50cdc578b82f48a2af504b283fd3c8e5.png'
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: '在线留言',
|
|
109
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/204802207fff4aaca5b002adebfa4b94.png'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: '联系我们',
|
|
113
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/70a8c6d97c084484a1e19bb7ff1489d3.png'
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: '帮助中心',
|
|
117
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/02b52f9fe2294cd68b5a1f09a229194f.png'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: '退出登录',
|
|
121
|
+
iconUrl: 'http://122.225.55.70:18084/files/upload/2024/09/12/15ac6db27c84409fbacb2ee7826c31ab.png'
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"supports": {
|
|
128
|
+
"style": true
|
|
129
|
+
},
|
|
130
|
+
"component": {}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
134
|
+
{
|
|
135
|
+
"title": "列表菜单组件",
|
|
136
|
+
"screenshot": "",
|
|
137
|
+
"schema": {
|
|
138
|
+
"componentName": "MenuList",
|
|
139
|
+
"props": {}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
|
|
144
|
+
export default {
|
|
145
|
+
...MenuListMeta,
|
|
146
|
+
snippets
|
|
147
|
+
};
|