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
63 lines (63 loc) · 1.22 KB
/
meta.ts
File metadata and controls
63 lines (63 loc) · 1.22 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
module.exports = {
group: '原子组件',
componentName: 'SubNav',
title: 'SubNav',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Nav',
main: '',
destructuring: true,
subName: 'SubNav',
},
props: [
{
name: 'className',
propType: 'string',
description: '自定义类名',
},
{
name: 'icon',
propType: {
type: 'oneOfType',
value: [
'string',
{
type: 'instanceOf',
value: 'node',
},
],
},
description: '自定义图标,可以使用 Icon 的 type,也可以使用组件 `<Icon type="your type" />`',
},
{
name: 'label',
propType: {
type: 'instanceOf',
value: 'node',
},
description: '标签内容',
},
{
name: 'selectable',
propType: 'bool',
description: '是否可选',
defaultValue: false,
},
{
name: 'children',
propType: {
type: 'instanceOf',
value: 'node',
},
description: '导航项和子导航',
},
{
name: 'style',
propType: 'object',
},
],
category: '基础',
};