forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.design.ts
More file actions
168 lines (167 loc) · 3.36 KB
/
meta.design.ts
File metadata and controls
168 lines (167 loc) · 3.36 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
import snippets from './snippets';
export default {
group: '原子组件',
componentName: 'Loading',
title: '加载',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Loading',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'tip',
propType: 'string',
description: '自定义内容',
},
{
name: 'tipAlign',
propType: {
type: 'oneOf',
value: ['right', 'bottom'],
},
description: '自定义内容位置',
defaultValue: 'bottom',
},
{
name: 'visible',
propType: 'bool',
description: 'loading 状态, 默认 true',
defaultValue: true,
},
{
name: 'onVisibleChange',
propType: 'func',
},
{
name: 'className',
propType: 'string',
description: '自定义class',
},
{
name: 'style',
propType: 'object',
description: '自定义内联样式',
},
{
name: 'size',
propType: {
type: 'oneOf',
value: ['large', 'medium'],
},
description: '设置动画尺寸\n@description 仅仅对默认动画效果起作用\n@enumdesc 大号, 中号',
defaultValue: 'large',
},
{
name: 'color',
propType: 'string',
description: '动画颜色',
},
{
name: 'fullScreen',
propType: 'bool',
description: '全屏展示',
},
{
name: 'inline',
title: 'inline',
propType: 'bool',
description: 'should loader be displayed inline',
defaultValue: true,
},
],
configure: {
component: {
isContainer: true,
},
props: [
{
name: 'tip',
title: {
label: '自定义内容',
tip: '',
},
setter: 'StringSetter',
},
{
name: 'tipAlign',
title: {
label: '内容位置',
tip: '自定义内容位置',
},
setter: {
componentName: 'RadioGroupSetter',
props: {
options: [
{
title: '动画右边',
value: 'right',
},
{
title: '动画下面',
value: 'bottom',
},
],
},
},
},
{
name: 'size',
title: {
label: '动画尺寸',
},
setter: {
componentName: 'RadioGroupSetter',
props: {
options: [
{
title: '大',
value: 'large',
},
{
title: '中',
value: 'medium',
},
],
},
},
},
{
name: 'color',
title: '动画颜色',
setter: {
componentName: 'ColorSetter',
},
},
{
name: 'visible',
title: {
label: '是否显示',
},
setter: 'BoolSetter',
},
{
name: 'fullScreen',
title: '全屏显示',
setter: 'BoolSetter',
},
{
name: 'inline',
title: '行内显示',
setter: 'BoolSetter',
},
],
supports: {
style: true,
events: ['onVisibleChange'],
},
},
icon: '',
category: '信息反馈',
snippets,
};