@dckj-npm/dc-material 0.1.7 → 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/grid-nav/meta.ts +160 -0
- package/lowcode/menu-list/meta.ts +147 -0
- 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 +44 -2
- package/lowcode/title1/meta.ts +1 -1
- package/lowcode/title2/meta.ts +1 -1
- package/package.json +110 -110
- package/build/docs/colorful-button.html +0 -48
- package/build/docs/colorful-input.html +0 -48
- package/build/docs/index.html +0 -48
- package/build/docs/umi.7f7df875.css +0 -8
- package/build/docs/umi.7face50a.js +0 -1
- package/build/docs/~demos/colorful-button-demo.html +0 -47
- package/build/docs/~demos/colorful-input-demo.html +0 -47
- package/build/index.css +0 -2
- package/build/index.html +0 -1
- package/build/index.js +0 -60
- 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/position/index.d.ts +0 -3
- package/es/components/position/index.js +0 -2
- package/es/components/position/index.scss +0 -16
- package/es/components/position/position.d.ts +0 -13
- package/es/components/position/position.js +0 -39
- 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 -12
- package/es/index.js +0 -7
- 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/position/index.d.ts +0 -3
- package/lib/components/position/index.js +0 -7
- package/lib/components/position/index.scss +0 -16
- package/lib/components/position/position.d.ts +0 -13
- package/lib/components/position/position.js +0 -46
- 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 -12
- package/lib/index.js +0 -15
- 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/meta.js +0 -168
- 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/meta.js +0 -172
- 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
|
@@ -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
|
+
};
|
|
@@ -0,0 +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,151 +1,152 @@
|
|
|
1
|
-
import messageIcon from '../../src/assets/icon/navigation/message.png'
|
|
2
|
-
import messageIconSelected from '../../src/assets/icon/navigation/message-selected.png'
|
|
3
|
-
import indexIcon from '../../src/assets/icon/navigation/index.png'
|
|
4
|
-
import indexIconSelected from '../../src/assets/icon/navigation/index-selected.png'
|
|
5
|
-
import mineIcon from '../../src/assets/icon/navigation/mine.png'
|
|
6
|
-
import mineIconSelected from '../../src/assets/icon/navigation/mine-selected.png'
|
|
7
|
-
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
8
|
-
|
|
9
|
-
const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
import messageIcon from '../../src/assets/icon/navigation/message.png'
|
|
2
|
+
import messageIconSelected from '../../src/assets/icon/navigation/message-selected.png'
|
|
3
|
+
import indexIcon from '../../src/assets/icon/navigation/index.png'
|
|
4
|
+
import indexIconSelected from '../../src/assets/icon/navigation/index-selected.png'
|
|
5
|
+
import mineIcon from '../../src/assets/icon/navigation/mine.png'
|
|
6
|
+
import mineIconSelected from '../../src/assets/icon/navigation/mine-selected.png'
|
|
7
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
8
|
+
|
|
9
|
+
const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
10
|
+
group: '低代码组件',
|
|
11
|
+
"componentName": "Navigation",
|
|
12
|
+
"title": "底部导航",
|
|
13
|
+
"docUrl": "",
|
|
14
|
+
"screenshot": "",
|
|
15
|
+
"devMode": "proCode",
|
|
16
|
+
"npm": {
|
|
17
|
+
"package": "@dckj-npm/dc-material",
|
|
18
|
+
"version": "0.1.8",
|
|
19
|
+
"exportName": "Navigation",
|
|
20
|
+
"main": "src\\index.tsx",
|
|
21
|
+
"destructuring": true,
|
|
22
|
+
"subName": ""
|
|
23
|
+
},
|
|
24
|
+
"configure": {
|
|
25
|
+
"props": [
|
|
26
|
+
{
|
|
27
|
+
"title": {
|
|
28
|
+
"label": {
|
|
29
|
+
"type": "i18n",
|
|
30
|
+
"en-US": "itemArray",
|
|
31
|
+
"zh-CN": "导航项"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"name": "itemArray",
|
|
35
|
+
"setter": {
|
|
36
|
+
"componentName": "ArraySetter",
|
|
37
|
+
"props": {
|
|
38
|
+
"itemSetter": {
|
|
39
|
+
"componentName": "ObjectSetter",
|
|
40
|
+
"props": {
|
|
41
|
+
"config": {
|
|
42
|
+
"items": [
|
|
43
|
+
{
|
|
44
|
+
"title": {
|
|
45
|
+
"label": {
|
|
46
|
+
"type": "i18n",
|
|
47
|
+
"en-US": "text",
|
|
48
|
+
"zh-CN": "名称"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"name": "text",
|
|
52
|
+
"setter": {
|
|
53
|
+
"componentName": "StringSetter",
|
|
54
|
+
"isRequired": true,
|
|
55
|
+
"initialValue": ""
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": {
|
|
60
|
+
"label": {
|
|
61
|
+
"type": "i18n",
|
|
62
|
+
"en-US": "icon",
|
|
63
|
+
"zh-CN": "图标"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"name": "icon",
|
|
67
|
+
"setter": {
|
|
68
|
+
"componentName": "StringSetter",
|
|
69
|
+
"isRequired": true,
|
|
70
|
+
"initialValue": ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"title": {
|
|
75
|
+
"label": {
|
|
76
|
+
"type": "i18n",
|
|
77
|
+
"en-US": "selectedIcon",
|
|
78
|
+
"zh-CN": "选中图标"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"name": "selectedIcon",
|
|
82
|
+
"setter": {
|
|
83
|
+
"componentName": "StringSetter",
|
|
84
|
+
"isRequired": true,
|
|
85
|
+
"initialValue": ""
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"extraSetter": {
|
|
90
|
+
"componentName": "MixedSetter",
|
|
91
|
+
"isRequired": false,
|
|
92
|
+
"props": {}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"isRequired": true,
|
|
99
|
+
"initialValue": []
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"title": {
|
|
104
|
+
"label": {
|
|
105
|
+
"type": "i18n",
|
|
106
|
+
"en-US": "selectedColor",
|
|
107
|
+
"zh-CN": "选中颜色"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"name": "selectedColor",
|
|
111
|
+
"setter": "ColorSetter"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"supports": {
|
|
115
|
+
"style": true
|
|
116
|
+
},
|
|
117
|
+
"component": {}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
121
|
+
{
|
|
122
|
+
"title": "底部导航",
|
|
123
|
+
"screenshot": "",
|
|
124
|
+
"schema": {
|
|
125
|
+
"componentName": "Navigation",
|
|
126
|
+
"props": {
|
|
127
|
+
"itemArray": [
|
|
128
|
+
{
|
|
129
|
+
"text": "首页",
|
|
130
|
+
"icon": indexIcon,
|
|
131
|
+
"selectedIcon": indexIconSelected
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"text": "消息",
|
|
135
|
+
"icon": messageIcon,
|
|
136
|
+
"selectedIcon": messageIconSelected
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"text": "我的",
|
|
140
|
+
"icon": mineIcon,
|
|
141
|
+
"selectedIcon": mineIconSelected
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
];
|
|
148
|
+
|
|
149
|
+
export default {
|
|
150
|
+
...NavigationMeta,
|
|
151
|
+
snippets
|
|
152
|
+
};
|