forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.ts
More file actions
61 lines (61 loc) · 1.3 KB
/
meta.ts
File metadata and controls
61 lines (61 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
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
module.exports = {
componentName: 'Image',
title: '图片',
npm: {
package: '@alilc/lowcode-materials',
version: 'latest',
exportName: 'Image',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'src',
title: {
label: {
type: 'i18n',
zh_CN: '图片链接',
en_US: 'Image Address',
},
tip: {
type: 'i18n',
zh_CN: '属性: src | 说明: 图片链接',
en_US: 'prop: src | description: image address',
},
},
propType: 'string',
defaultValue: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
},
{
name: 'title',
title: {
label: {
type: 'i18n',
zh_CN: '标题',
en_US: 'Title',
},
},
propType: 'string',
},
{
name: 'alt',
title: {
label: {
type: 'i18n',
zh_CN: '代替文本',
en_US: 'Alt',
},
},
propType: 'string',
},
{
name: 'style',
propType: 'object',
},
],
icon: 'https://img.alicdn.com/imgextra/i3/O1CN01tnhXhk1GUIFhsXwzA_!!6000000000625-55-tps-56-56.svg',
category: '基础元素',
group: '精选组件',
snippets: require('./snippets'),
};