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
195 lines (195 loc) · 4.41 KB
/
meta.ts
File metadata and controls
195 lines (195 loc) · 4.41 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
module.exports = {
group: '原子组件',
componentName: 'Nav',
title: '导航',
docUrl: '',
screenshot: '',
npm: {
package: '@alifd/next',
version: '{{version}}',
exportName: 'Nav',
main: '',
destructuring: true,
subName: '',
},
props: [
{
name: 'style',
propType: 'object',
},
{
name: 'children',
propType: 'node',
description: '导航项和子导航',
},
{
name: 'type',
propType: {
type: 'oneOf',
value: ['normal', 'primary', 'secondary', 'line'],
},
description: '导航类型',
defaultValue: 'normal',
},
{
name: 'direction',
propType: {
type: 'oneOf',
value: ['hoz', 'ver'],
},
description: '导航布局',
defaultValue: 'ver',
},
{
name: 'hozAlign',
propType: {
type: 'oneOf',
value: ['left', 'right'],
},
description: '对齐方向',
defaultValue: 'left',
},
{
name: 'activeDirection',
propType: {
type: 'oneOf',
value: [null, 'top', 'bottom', 'left', 'right'],
},
description: '选中条方向',
},
{
name: 'mode',
propType: {
type: 'oneOf',
value: ['inline', 'popup'],
},
description: '子导航打开的模式',
defaultValue: 'inline',
},
{
name: 'triggerType',
propType: {
type: 'oneOf',
value: ['click', 'hover'],
},
description: '子导航打开的触发方式',
defaultValue: 'click',
},
{
name: 'inlineIndent',
propType: 'number',
description: '内联子导航缩进距离',
defaultValue: 20,
},
{
name: 'defaultOpenAll',
propType: 'bool',
description: '初始展开所有的子导航',
defaultValue: false,
},
{
name: 'openMode',
propType: {
type: 'oneOf',
value: ['single', 'multiple'],
},
description: '内联子导航的展开模式',
defaultValue: 'multiple',
},
{
name: 'selectedKeys',
propType: {
type: 'oneOfType',
value: [
'string',
{
type: 'instanceOf',
value: 'array',
},
],
},
description: '当前选中导航key值',
},
{
name: 'defaultSelectedKeys',
propType: {
type: 'oneOfType',
value: [
'string',
{
type: 'instanceOf',
value: 'array',
},
],
},
description: '初始选中导航项的key值',
},
{
name: 'onSelect',
propType: 'func',
description:
'选中或取消选中导航项触发的回调函数\n@param {Array} selectedKeys 选中的所有导航项的 key\n@param {Object} item 选中或取消选中的导航项\n@param {Object} extra 额外参数\n@param {Boolean} extra.select 是否是选中\n@param {Array} extra.key 导航项的 key\n@param {Object} extra.label 导航项的文本\n@param {Array} extra.keyPath 导航项 key 的路径',
},
{
name: 'popupAlign',
propType: {
type: 'oneOf',
value: ['follow', 'outside'],
},
description:
'弹出子导航的对齐方式(水平导航只支持 follow )\n@eumdesc Item 顶端对齐, Nav 顶端对齐',
defaultValue: 'follow',
},
{
name: 'popupClassName',
propType: 'string',
description: '弹出子导航的自定义类名',
},
{
name: 'iconOnly',
propType: 'bool',
description: '是否只显示图标',
},
{
name: 'hasArrow',
propType: 'bool',
description: '是否显示右侧的箭头',
defaultValue: true,
},
{
name: 'hasTooltip',
propType: 'bool',
description: '是否有ToolTips',
defaultValue: false,
},
{
name: 'header',
propType: {
type: 'instanceOf',
value: 'node',
},
description: '自定义导航头部',
},
{
name: 'footer',
propType: {
type: 'instanceOf',
value: 'node',
},
description: '自定义导航尾部',
},
{
name: 'embeddable',
propType: 'bool',
description: '开启嵌入式模式',
defaultValue: false,
},
],
configure: {
component: {
isContainer: true,
},
},
icon: '',
category: '引导',
};