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
173 lines (173 loc) · 3.55 KB
/
meta.ts
File metadata and controls
173 lines (173 loc) · 3.55 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
module.exports = {
componentName: 'NextText',
title: '文本',
category: '基础元素',
group: '精选组件',
npm: {
package: '@alilc/lowcode-materials',
version: 'latest',
exportName: 'NextText',
main: 'lib/index.js',
destructuring: true,
subName: '',
},
props: [
{
name: 'style',
propType: 'object',
},
{
name: 'prefix',
propType: 'string',
defaultValue: 'next-',
},
{
name: 'classname',
propType: 'bool',
defaultValue: true,
},
{
name: 'type',
title: '字体大小',
extraProps: {
defaultValue: 'body2',
},
defaultValue: 'body2',
initialValue: 'body2',
setter: {
componentName: 'SelectSetter',
initialValue: 'body2',
props: {
defaultValue: 'body2',
options: [
{
title: '默认',
value: 'inherit',
},
{
title: 'h1',
value: 'h1',
},
{
title: 'h2',
value: 'h2',
},
{
title: 'h3',
value: 'h3',
},
{
title: 'h4',
value: 'h4',
},
{
title: 'h5',
value: 'h5',
},
{
title: 'h6',
value: 'h6',
},
{
title: 'body1',
value: 'body1',
},
{
title: 'body2',
value: 'body2',
},
{
title: 'caption',
value: 'caption',
},
{
title: 'overline',
value: 'overline',
},
],
},
},
},
{
name: 'children',
propType: 'string',
},
{
name: 'mark',
title: '标记',
propType: 'bool',
description: '添加标记样式',
defaultValue: false,
},
{
name: 'code',
title: '代码',
propType: 'bool',
description: '添加代码样式',
defaultValue: false,
},
{
name: 'delete',
title: '删除线',
propType: 'bool',
description: '添加删除线样式',
defaultValue: false,
},
{
name: 'underline',
title: '下划线',
propType: 'bool',
description: '添加下划线样式',
defaultValue: false,
},
{
name: 'strong',
propType: 'bool',
description: '是否加粗',
defaultValue: false,
},
{
name: 'onClick',
propType: 'func',
description: '鼠标点击',
},
{
name: 'style',
propType: 'object',
},
],
configure: {
props: {
isExtends: true,
override: [
{
name: 'prefix',
condition: () => false,
},
{
name: 'classname',
condition: () => false,
},
{
name: 'children',
supportVariable: true,
title: {
label: {
type: 'i18n',
zh_CN: '文本内容',
en_US: 'Text',
},
tip: {
type: 'i18n',
zh_CN: '属性:children | 说明:文本内容',
en_US: 'prop: children | description: text of the content',
},
},
setter: 'TextAreaSetter',
supportVariable: true,
},
],
},
},
snippets: require('./snippets'),
};