@next-bricks/nav 1.14.1 → 1.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +23 -23
- package/dist/chunks/9149.cb2b8e7c.js +2 -0
- package/dist/chunks/9149.cb2b8e7c.js.map +1 -0
- package/dist/chunks/{main.974b9e21.js → main.baad998d.js} +2 -2
- package/dist/chunks/{main.974b9e21.js.map → main.baad998d.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.1534d47a.js → index.0767e68d.js} +2 -2
- package/dist/{index.1534d47a.js.map → index.0767e68d.js.map} +1 -1
- package/dist/manifest.json +116 -116
- package/dist/types.json +103 -103
- package/package.json +2 -2
- package/dist/chunks/9149.94ac2bef.js +0 -2
- package/dist/chunks/9149.94ac2bef.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
"description": "菜单构件",
|
|
31
31
|
"category": "navigation"
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"name": "eo-launchpad-button",
|
|
35
|
+
"properties": [],
|
|
36
|
+
"events": [],
|
|
37
|
+
"slots": [],
|
|
38
|
+
"methods": [],
|
|
39
|
+
"parts": [],
|
|
40
|
+
"description": "Launchpad 按钮构件",
|
|
41
|
+
"insider": true
|
|
42
|
+
},
|
|
33
43
|
{
|
|
34
44
|
"name": "nav.launchpad-config",
|
|
35
45
|
"properties": [
|
|
@@ -58,16 +68,6 @@
|
|
|
58
68
|
"description": "构件 `nav.launchpad-config`",
|
|
59
69
|
"insider": true
|
|
60
70
|
},
|
|
61
|
-
{
|
|
62
|
-
"name": "eo-launchpad-button",
|
|
63
|
-
"properties": [],
|
|
64
|
-
"events": [],
|
|
65
|
-
"slots": [],
|
|
66
|
-
"methods": [],
|
|
67
|
-
"parts": [],
|
|
68
|
-
"description": "Launchpad 按钮构件",
|
|
69
|
-
"insider": true
|
|
70
|
-
},
|
|
71
71
|
{
|
|
72
72
|
"name": "nav.easyops-navbar-alerts",
|
|
73
73
|
"properties": [],
|
|
@@ -187,6 +187,33 @@
|
|
|
187
187
|
"parts": [],
|
|
188
188
|
"description": "应用顶部容器"
|
|
189
189
|
},
|
|
190
|
+
{
|
|
191
|
+
"name": "eo-frame-breadcrumb",
|
|
192
|
+
"properties": [
|
|
193
|
+
{
|
|
194
|
+
"name": "breadcrumb",
|
|
195
|
+
"description": "面包屑配置",
|
|
196
|
+
"attribute": false,
|
|
197
|
+
"type": "BreadcrumbItemConf[]"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "noCurrentApp",
|
|
201
|
+
"description": "是否隐藏当前应用名称",
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "menu",
|
|
206
|
+
"description": "菜单配置",
|
|
207
|
+
"attribute": false,
|
|
208
|
+
"type": "Menu"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"events": [],
|
|
212
|
+
"slots": [],
|
|
213
|
+
"methods": [],
|
|
214
|
+
"parts": [],
|
|
215
|
+
"description": "面包屑"
|
|
216
|
+
},
|
|
190
217
|
{
|
|
191
218
|
"name": "eo-sidebar-menu-item",
|
|
192
219
|
"properties": [
|
|
@@ -236,38 +263,17 @@
|
|
|
236
263
|
"category": "navigation"
|
|
237
264
|
},
|
|
238
265
|
{
|
|
239
|
-
"name": "eo-
|
|
266
|
+
"name": "eo-sidebar-menu-submenu",
|
|
240
267
|
"properties": [
|
|
241
268
|
{
|
|
242
|
-
"name": "
|
|
243
|
-
"description": "
|
|
269
|
+
"name": "icon",
|
|
270
|
+
"description": "菜单的图标",
|
|
244
271
|
"attribute": false,
|
|
245
|
-
"type": "
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "noCurrentApp",
|
|
249
|
-
"description": "是否隐藏当前应用名称",
|
|
250
|
-
"type": "boolean"
|
|
272
|
+
"type": "GeneralIconProps"
|
|
251
273
|
},
|
|
252
274
|
{
|
|
253
|
-
"name": "
|
|
254
|
-
"description": "
|
|
255
|
-
"attribute": false,
|
|
256
|
-
"type": "Menu"
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
"events": [],
|
|
260
|
-
"slots": [],
|
|
261
|
-
"methods": [],
|
|
262
|
-
"parts": [],
|
|
263
|
-
"description": "面包屑"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "eo-sidebar-menu-group",
|
|
267
|
-
"properties": [
|
|
268
|
-
{
|
|
269
|
-
"name": "collapsable",
|
|
270
|
-
"description": "是否允许折叠",
|
|
275
|
+
"name": "selected",
|
|
276
|
+
"description": "是否选中",
|
|
271
277
|
"type": "boolean"
|
|
272
278
|
},
|
|
273
279
|
{
|
|
@@ -275,11 +281,6 @@
|
|
|
275
281
|
"description": "是否折叠",
|
|
276
282
|
"type": "boolean"
|
|
277
283
|
},
|
|
278
|
-
{
|
|
279
|
-
"name": "selected",
|
|
280
|
-
"description": "是否选中",
|
|
281
|
-
"type": "boolean"
|
|
282
|
-
},
|
|
283
284
|
{
|
|
284
285
|
"name": "menuCollapsed",
|
|
285
286
|
"description": "菜单整体是否收起状态",
|
|
@@ -290,26 +291,20 @@
|
|
|
290
291
|
"slots": [
|
|
291
292
|
{
|
|
292
293
|
"name": "title",
|
|
293
|
-
"description": "
|
|
294
|
+
"description": "子菜单标题"
|
|
294
295
|
}
|
|
295
296
|
],
|
|
296
297
|
"methods": [],
|
|
297
298
|
"parts": [],
|
|
298
|
-
"description": "
|
|
299
|
+
"description": "侧栏菜单子菜单",
|
|
299
300
|
"category": "navigation"
|
|
300
301
|
},
|
|
301
302
|
{
|
|
302
|
-
"name": "eo-sidebar-menu-
|
|
303
|
+
"name": "eo-sidebar-menu-group",
|
|
303
304
|
"properties": [
|
|
304
305
|
{
|
|
305
|
-
"name": "
|
|
306
|
-
"description": "
|
|
307
|
-
"attribute": false,
|
|
308
|
-
"type": "GeneralIconProps"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "selected",
|
|
312
|
-
"description": "是否选中",
|
|
306
|
+
"name": "collapsable",
|
|
307
|
+
"description": "是否允许折叠",
|
|
313
308
|
"type": "boolean"
|
|
314
309
|
},
|
|
315
310
|
{
|
|
@@ -317,6 +312,11 @@
|
|
|
317
312
|
"description": "是否折叠",
|
|
318
313
|
"type": "boolean"
|
|
319
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"name": "selected",
|
|
317
|
+
"description": "是否选中",
|
|
318
|
+
"type": "boolean"
|
|
319
|
+
},
|
|
320
320
|
{
|
|
321
321
|
"name": "menuCollapsed",
|
|
322
322
|
"description": "菜单整体是否收起状态",
|
|
@@ -327,12 +327,12 @@
|
|
|
327
327
|
"slots": [
|
|
328
328
|
{
|
|
329
329
|
"name": "title",
|
|
330
|
-
"description": "
|
|
330
|
+
"description": "分组标题"
|
|
331
331
|
}
|
|
332
332
|
],
|
|
333
333
|
"methods": [],
|
|
334
334
|
"parts": [],
|
|
335
|
-
"description": "
|
|
335
|
+
"description": "侧栏菜单分组",
|
|
336
336
|
"category": "navigation"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
@@ -351,56 +351,6 @@
|
|
|
351
351
|
"description": "侧栏菜单",
|
|
352
352
|
"category": "navigation"
|
|
353
353
|
},
|
|
354
|
-
{
|
|
355
|
-
"name": "eo-sidebar",
|
|
356
|
-
"properties": [
|
|
357
|
-
{
|
|
358
|
-
"name": "menu",
|
|
359
|
-
"description": "菜单数据",
|
|
360
|
-
"attribute": false,
|
|
361
|
-
"type": "SidebarMenuType"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "hiddenFixedIcon",
|
|
365
|
-
"description": "是否隐藏固定按钮",
|
|
366
|
-
"type": "boolean"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"name": "expandedState",
|
|
370
|
-
"description": "侧栏状态",
|
|
371
|
-
"type": "ExpandedState"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "position",
|
|
375
|
-
"description": "设置定位方式:静态定位或固定定位。",
|
|
376
|
-
"default": "\"fixed\"",
|
|
377
|
-
"type": "\"static\" | \"fixed\""
|
|
378
|
-
}
|
|
379
|
-
],
|
|
380
|
-
"events": [
|
|
381
|
-
{
|
|
382
|
-
"name": "actual.width.change",
|
|
383
|
-
"description": "宽度变化时触发",
|
|
384
|
-
"detail": {
|
|
385
|
-
"description": "当前宽度",
|
|
386
|
-
"type": "number"
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"name": "expanded.state.change",
|
|
391
|
-
"description": "侧栏状态变化时触发",
|
|
392
|
-
"detail": {
|
|
393
|
-
"description": "侧栏状态",
|
|
394
|
-
"type": "ExpandedState"
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
],
|
|
398
|
-
"slots": [],
|
|
399
|
-
"methods": [],
|
|
400
|
-
"parts": [],
|
|
401
|
-
"description": "侧边栏",
|
|
402
|
-
"category": "navigation"
|
|
403
|
-
},
|
|
404
354
|
{
|
|
405
355
|
"name": "eo-sidebar-sub-menu",
|
|
406
356
|
"properties": [
|
|
@@ -483,33 +433,54 @@
|
|
|
483
433
|
"description": "目录"
|
|
484
434
|
},
|
|
485
435
|
{
|
|
486
|
-
"name": "eo-
|
|
436
|
+
"name": "eo-sidebar",
|
|
487
437
|
"properties": [
|
|
488
438
|
{
|
|
489
|
-
"name": "
|
|
490
|
-
"description": "
|
|
491
|
-
"
|
|
492
|
-
"type": "
|
|
439
|
+
"name": "menu",
|
|
440
|
+
"description": "菜单数据",
|
|
441
|
+
"attribute": false,
|
|
442
|
+
"type": "SidebarMenuType"
|
|
493
443
|
},
|
|
494
444
|
{
|
|
495
|
-
"name": "
|
|
496
|
-
"description": "
|
|
445
|
+
"name": "hiddenFixedIcon",
|
|
446
|
+
"description": "是否隐藏固定按钮",
|
|
497
447
|
"type": "boolean"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "expandedState",
|
|
451
|
+
"description": "侧栏状态",
|
|
452
|
+
"type": "ExpandedState"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "position",
|
|
456
|
+
"description": "设置定位方式:静态定位或固定定位。",
|
|
457
|
+
"default": "\"fixed\"",
|
|
458
|
+
"type": "\"static\" | \"fixed\""
|
|
498
459
|
}
|
|
499
460
|
],
|
|
500
461
|
"events": [
|
|
501
462
|
{
|
|
502
|
-
"name": "
|
|
503
|
-
"description": "
|
|
463
|
+
"name": "actual.width.change",
|
|
464
|
+
"description": "宽度变化时触发",
|
|
504
465
|
"detail": {
|
|
505
|
-
"
|
|
466
|
+
"description": "当前宽度",
|
|
467
|
+
"type": "number"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "expanded.state.change",
|
|
472
|
+
"description": "侧栏状态变化时触发",
|
|
473
|
+
"detail": {
|
|
474
|
+
"description": "侧栏状态",
|
|
475
|
+
"type": "ExpandedState"
|
|
506
476
|
}
|
|
507
477
|
}
|
|
508
478
|
],
|
|
509
479
|
"slots": [],
|
|
510
480
|
"methods": [],
|
|
511
481
|
"parts": [],
|
|
512
|
-
"description": "
|
|
482
|
+
"description": "侧边栏",
|
|
483
|
+
"category": "navigation"
|
|
513
484
|
},
|
|
514
485
|
{
|
|
515
486
|
"name": "eo-directory-tree",
|
|
@@ -603,6 +574,35 @@
|
|
|
603
574
|
"parts": [],
|
|
604
575
|
"description": "目录树"
|
|
605
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"name": "eo-directory-tree-leaf",
|
|
579
|
+
"properties": [
|
|
580
|
+
{
|
|
581
|
+
"name": "depth",
|
|
582
|
+
"description": "深度",
|
|
583
|
+
"default": "0",
|
|
584
|
+
"type": "number"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "selected",
|
|
588
|
+
"description": "是否选中",
|
|
589
|
+
"type": "boolean"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"events": [
|
|
593
|
+
{
|
|
594
|
+
"name": "select",
|
|
595
|
+
"description": "选择事件",
|
|
596
|
+
"detail": {
|
|
597
|
+
"type": "void"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"slots": [],
|
|
602
|
+
"methods": [],
|
|
603
|
+
"parts": [],
|
|
604
|
+
"description": "目录树叶子节点"
|
|
605
|
+
},
|
|
606
606
|
{
|
|
607
607
|
"name": "eo-directory-tree-internal-node",
|
|
608
608
|
"properties": [
|
package/dist/types.json
CHANGED
|
@@ -57,94 +57,6 @@
|
|
|
57
57
|
"events": [],
|
|
58
58
|
"methods": []
|
|
59
59
|
},
|
|
60
|
-
"eo-sidebar-menu-item": {
|
|
61
|
-
"properties": [
|
|
62
|
-
{
|
|
63
|
-
"name": "url",
|
|
64
|
-
"annotation": {
|
|
65
|
-
"type": "indexedAccess",
|
|
66
|
-
"objectType": {
|
|
67
|
-
"type": "reference",
|
|
68
|
-
"typeName": {
|
|
69
|
-
"type": "identifier",
|
|
70
|
-
"name": "LinkProps"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"indexType": {
|
|
74
|
-
"type": "jsLiteral",
|
|
75
|
-
"value": "url"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "href",
|
|
81
|
-
"annotation": {
|
|
82
|
-
"type": "indexedAccess",
|
|
83
|
-
"objectType": {
|
|
84
|
-
"type": "reference",
|
|
85
|
-
"typeName": {
|
|
86
|
-
"type": "identifier",
|
|
87
|
-
"name": "LinkProps"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"indexType": {
|
|
91
|
-
"type": "jsLiteral",
|
|
92
|
-
"value": "href"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "target",
|
|
98
|
-
"annotation": {
|
|
99
|
-
"type": "indexedAccess",
|
|
100
|
-
"objectType": {
|
|
101
|
-
"type": "reference",
|
|
102
|
-
"typeName": {
|
|
103
|
-
"type": "identifier",
|
|
104
|
-
"name": "LinkProps"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"indexType": {
|
|
108
|
-
"type": "jsLiteral",
|
|
109
|
-
"value": "target"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "icon",
|
|
115
|
-
"annotation": {
|
|
116
|
-
"type": "reference",
|
|
117
|
-
"typeName": {
|
|
118
|
-
"type": "identifier",
|
|
119
|
-
"name": "GeneralIconProps"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "selected",
|
|
125
|
-
"annotation": {
|
|
126
|
-
"type": "keyword",
|
|
127
|
-
"value": "boolean"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "inSubmenu",
|
|
132
|
-
"annotation": {
|
|
133
|
-
"type": "keyword",
|
|
134
|
-
"value": "boolean"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "menuCollapsed",
|
|
139
|
-
"annotation": {
|
|
140
|
-
"type": "keyword",
|
|
141
|
-
"value": "boolean"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"events": [],
|
|
146
|
-
"methods": []
|
|
147
|
-
},
|
|
148
60
|
"eo-frame-breadcrumb": {
|
|
149
61
|
"properties": [
|
|
150
62
|
{
|
|
@@ -233,6 +145,94 @@
|
|
|
233
145
|
}
|
|
234
146
|
]
|
|
235
147
|
},
|
|
148
|
+
"eo-sidebar-menu-item": {
|
|
149
|
+
"properties": [
|
|
150
|
+
{
|
|
151
|
+
"name": "url",
|
|
152
|
+
"annotation": {
|
|
153
|
+
"type": "indexedAccess",
|
|
154
|
+
"objectType": {
|
|
155
|
+
"type": "reference",
|
|
156
|
+
"typeName": {
|
|
157
|
+
"type": "identifier",
|
|
158
|
+
"name": "LinkProps"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"indexType": {
|
|
162
|
+
"type": "jsLiteral",
|
|
163
|
+
"value": "url"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "href",
|
|
169
|
+
"annotation": {
|
|
170
|
+
"type": "indexedAccess",
|
|
171
|
+
"objectType": {
|
|
172
|
+
"type": "reference",
|
|
173
|
+
"typeName": {
|
|
174
|
+
"type": "identifier",
|
|
175
|
+
"name": "LinkProps"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"indexType": {
|
|
179
|
+
"type": "jsLiteral",
|
|
180
|
+
"value": "href"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "target",
|
|
186
|
+
"annotation": {
|
|
187
|
+
"type": "indexedAccess",
|
|
188
|
+
"objectType": {
|
|
189
|
+
"type": "reference",
|
|
190
|
+
"typeName": {
|
|
191
|
+
"type": "identifier",
|
|
192
|
+
"name": "LinkProps"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"indexType": {
|
|
196
|
+
"type": "jsLiteral",
|
|
197
|
+
"value": "target"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "icon",
|
|
203
|
+
"annotation": {
|
|
204
|
+
"type": "reference",
|
|
205
|
+
"typeName": {
|
|
206
|
+
"type": "identifier",
|
|
207
|
+
"name": "GeneralIconProps"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "selected",
|
|
213
|
+
"annotation": {
|
|
214
|
+
"type": "keyword",
|
|
215
|
+
"value": "boolean"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "inSubmenu",
|
|
220
|
+
"annotation": {
|
|
221
|
+
"type": "keyword",
|
|
222
|
+
"value": "boolean"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "menuCollapsed",
|
|
227
|
+
"annotation": {
|
|
228
|
+
"type": "keyword",
|
|
229
|
+
"value": "boolean"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"events": [],
|
|
234
|
+
"methods": []
|
|
235
|
+
},
|
|
236
236
|
"eo-sidebar-sub-menu": {
|
|
237
237
|
"properties": [
|
|
238
238
|
{
|
|
@@ -593,27 +593,24 @@
|
|
|
593
593
|
"events": [],
|
|
594
594
|
"methods": []
|
|
595
595
|
},
|
|
596
|
-
"eo-sidebar-menu-
|
|
596
|
+
"eo-sidebar-menu-group": {
|
|
597
597
|
"properties": [
|
|
598
598
|
{
|
|
599
|
-
"name": "
|
|
599
|
+
"name": "collapsable",
|
|
600
600
|
"annotation": {
|
|
601
|
-
"type": "
|
|
602
|
-
"
|
|
603
|
-
"type": "identifier",
|
|
604
|
-
"name": "GeneralIconProps"
|
|
605
|
-
}
|
|
601
|
+
"type": "keyword",
|
|
602
|
+
"value": "boolean"
|
|
606
603
|
}
|
|
607
604
|
},
|
|
608
605
|
{
|
|
609
|
-
"name": "
|
|
606
|
+
"name": "collapsed",
|
|
610
607
|
"annotation": {
|
|
611
608
|
"type": "keyword",
|
|
612
609
|
"value": "boolean"
|
|
613
610
|
}
|
|
614
611
|
},
|
|
615
612
|
{
|
|
616
|
-
"name": "
|
|
613
|
+
"name": "selected",
|
|
617
614
|
"annotation": {
|
|
618
615
|
"type": "keyword",
|
|
619
616
|
"value": "boolean"
|
|
@@ -696,24 +693,27 @@
|
|
|
696
693
|
],
|
|
697
694
|
"methods": []
|
|
698
695
|
},
|
|
699
|
-
"eo-sidebar-menu-
|
|
696
|
+
"eo-sidebar-menu-submenu": {
|
|
700
697
|
"properties": [
|
|
701
698
|
{
|
|
702
|
-
"name": "
|
|
699
|
+
"name": "icon",
|
|
703
700
|
"annotation": {
|
|
704
|
-
"type": "
|
|
705
|
-
"
|
|
701
|
+
"type": "reference",
|
|
702
|
+
"typeName": {
|
|
703
|
+
"type": "identifier",
|
|
704
|
+
"name": "GeneralIconProps"
|
|
705
|
+
}
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
|
-
"name": "
|
|
709
|
+
"name": "selected",
|
|
710
710
|
"annotation": {
|
|
711
711
|
"type": "keyword",
|
|
712
712
|
"value": "boolean"
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
{
|
|
716
|
-
"name": "
|
|
716
|
+
"name": "collapsed",
|
|
717
717
|
"annotation": {
|
|
718
718
|
"type": "keyword",
|
|
719
719
|
"value": "boolean"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/nav",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/nav",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/form": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a9e4f69d4fc53b4553a25423a0f9fe2fec497115"
|
|
47
47
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[9149],{9302:(e,t,a)=>{a.d(t,{r:()=>h});var n=a(9575),l=a(8769),r=a.n(l),i=a(3373),o=a.n(i),c=a(9393),m=a(2133),s=a(8839),p=a(8356),u=a(1030);function d(e){var t;let{item:a,active:l,onClick:i}=e;return r().createElement("li",{className:"platform-category-sidebar-menu-item"},r().createElement(c.EM,{type:"plain",className:o()({active:l}),onClick:()=>null==i?void 0:i(a)},r().createElement(c.Bj,(0,n.A)({className:"platform-category-sidebar-menu-icon",lib:"easyops",category:"second-menu",icon:"serve-second-menu"},null!==(t=a.icon)&&void 0!==t&&t.lib&&a.icon.icon?(0,u.pick)(a.icon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"platform-category-sidebar-menu-item-label"},a.name)))}function v(e){var t;let{item:a}=e;return r().createElement("li",null,r().createElement(c.EM,(0,n.A)({type:"plain"},"app"===a.type?{url:a.url}:{href:a.url,target:"_blank"}),r().createElement("div",{className:"platform-item"},r().createElement("div",{className:"platform-item-title"},r().createElement(c.Bj,(0,n.A)({className:"platform-item-icon",lib:"easyops",category:"third-menu",icon:"deploy-orchestration-tasks-third-menu"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,u.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("div",{className:"platform-item-name"},a.name)),r().createElement("div",{className:"platform-item-description"},a.description))))}var f=a(3204),g=a(1675),b=a(2865);function h(e){let{active:t}=e;const a=(0,l.useRef)(null),[i,u]=(0,l.useState)([]),h=(0,l.useCallback)((()=>{var e;null===(e=a.current)||void 0===e||e.focus()}),[]),[y,k]=(0,l.useState)("#all"),E=r().useMemo((()=>{var e;return null===(e=(0,f.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-platform-category"]}),[]),N=r().useMemo((()=>{var e;return null===(e=(0,f.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-scenario-center"]}),[]),w=r().useMemo((()=>{var e;return null===(e=(0,f.getRuntime)())||void 0===e?void 0:e.getFeatureFlags()["launchpad-show-solution-center"]}),[]),{loading:j,q:A,setQ:C,menuGroups:S,favorites:z,loadingFavorites:B,recentVisits:M,pushRecentVisit:F,toggleStar:I,isStarred:_,platformCategories:q}=(0,m.sZ)(t),R=!!A,P=(0,l.useCallback)((e=>{C(e.target.value)}),[C]),$=(0,l.useCallback)((()=>{C("")}),[C]);(0,l.useEffect)((()=>{var e;t&&(null===(e=a.current)||void 0===e||e.focus())}),[t]);const T=(0,l.useCallback)((e=>{k(e.id)}),[]),V=(0,l.useMemo)((()=>q.find((e=>e.id===y))),[y,q]);return(0,l.useEffect)((()=>{z.length>i.length?u(z):setTimeout((()=>{u(z)}),300)}),[z,i.length]),r().createElement("div",{className:o()("launchpad",{active:t})},r().createElement(p.z.Provider,{value:{searching:R,loadingFavorites:B,pushRecentVisit:F,toggleStar:I,isStarred:_}},r().createElement("div",{className:"sidebar"},r().createElement("div",{className:"union"},r().createElement("div",{className:"quick-nav"},r().createElement("div",{className:"quick-nav-label"},"快捷访问"),r().createElement(g.A,null,r().createElement("ul",{className:"sidebar-menu quick-nav-menu"},i.map(((e,t)=>r().createElement(b.A,{key:t,timeout:300,in:!!z.find((t=>t.id===e.id)),classNames:{enter:"fadeEnter",enterActive:"fadeEnterActive",exit:"fadeExit",exitActive:"fadeExitActive",exitDone:"fadeExitDone"}},r().createElement(s.F,{key:t,item:e}))))))),E&&r().createElement("div",{className:"platform-nav"},r().createElement("div",{className:"platform-nav-label"},"平台底座"),r().createElement("ul",{className:"sidebar-menu platform-nav-menu"},q.map(((e,t)=>r().createElement(d,{key:t,onClick:T,item:e,active:y===e.id})))))),N&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/scenario"},r().createElement("div",{className:"jump-nav-label"},"场景中心"),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),w&&r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/portal/solution"},r().createElement("div",{className:"jump-nav-label"},"解决方案"),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"}))),r().createElement("div",{className:"jump-nav"},r().createElement(c.EM,{type:"plain",url:"/developers"},r().createElement("div",{className:"jump-nav-label"},"开放平台"),r().createElement(c.Bj,{lib:"antd",icon:"right",theme:"outlined"})))),r().createElement("div",{className:o()("content",{loading:j})},r().createElement(x,{loading:j}),"#all"!==y&&r().createElement("div",{className:"platform-category-name"},null==V?void 0:V.name),r().createElement("div",{className:"search-box",onClick:h},r().createElement(c.Bj,{lib:"fa",icon:"magnifying-glass",className:"search-icon"}),r().createElement("input",{ref:a,placeholder:"通过关键字搜索",value:A,onChange:P,className:"search-input"}),r().createElement(c.Bj,{lib:"antd",theme:"filled",icon:"close-circle",className:o()("search-clear",{searching:R}),onClick:$})),"#all"===y&&r().createElement("div",{className:o()({empty:0===M.length})},r().createElement("div",{className:"recent-visits-label"},"最近访问"),r().createElement("ul",{className:"recent-visits"},M.map(((e,t)=>r().createElement("li",{key:t},r().createElement(c.EM,(0,n.A)({onClick:()=>F(e)},"app"===e.type?{url:e.url}:{href:e.url,target:"_blank"}),r().createElement("span",null,e.name))))))),"#all"===y&&r().createElement("ul",{className:"menu-groups"},S.map((e=>r().createElement(s.r,{key:e.name,name:e.name,items:e.items})))),"#all"!==y&&r().createElement("ul",{className:o()("platform-items",{empty:0===(null==V?void 0:V.items.length)})},null==V?void 0:V.items.map(((e,t)=>r().createElement(v,{item:e,key:t})))))))}function x(e){let{loading:t}=e;return t&&r().createElement("div",{className:"spinner"},r().createElement(c.Bj,{lib:"fa",icon:"spinner",spinning:!0}))}},8356:(e,t,a)=>{a.d(t,{P:()=>i,z:()=>r});var n=a(8769),l=a.n(n);const r=l().createContext({}),i=()=>l().useContext(r)},8839:(e,t,a)=>{a.d(t,{F:()=>d,r:()=>p});var n=a(9575),l=a(8769),r=a.n(l),i=a(1030),o=a(3373),c=a.n(o),m=a(9393),s=a(8356);function p(e){let{name:t,items:a}=e;return r().createElement("li",{className:"menu-group"},r().createElement("div",{className:"menu-group-label"},t),r().createElement("ul",{className:"menu"},a.map((e=>"dir"===e.type?r().createElement(v,{key:`${e.type}-${e.id}`,name:e.name,items:e.items}):r().createElement(u,{key:`${e.type}-${e.id}`,item:e})))))}function u(e){var t;let{item:a}=e;const{loadingFavorites:o,readonly:p,pushRecentVisit:u,toggleStar:d,isStarred:v}=(0,s.P)(),f=(0,l.useMemo)((()=>v(a)),[v,a]),g=(0,l.useCallback)((()=>{d(a)}),[a,d]),b=(0,l.useCallback)((()=>{u(a)}),[a,u]);return r().createElement("li",{className:c()("menu-item",{starred:f,"can-star":!o})},r().createElement(m.EM,(0,n.A)({onClick:b},"app"===a.type?{url:a.url}:{href:a.url,target:"_blank"}),r().createElement(m.Bj,(0,n.A)({className:"menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.name)),!p&&r().createElement(m.Bj,{lib:"fa",prefix:f?"fas":"far",icon:"star",className:"menu-item-star",title:f?"取消收藏":"收藏",onClick:g}))}function d(e){var t;let{item:a,target:o}=e;const{readonly:c,pushRecentVisit:p,toggleStar:u}=(0,s.P)(),d=(0,l.useCallback)((()=>{"link"!==a.type&&p(a)}),[a,p]),v=(0,l.useCallback)((()=>{u(a)}),[a,u]);return r().createElement("li",{className:"sidebar-menu-item"},r().createElement(m.EM,(0,n.A)({onClick:d},"app"===a.type?{url:a.url,target:o}:{href:a.url,target:"_blank"}),r().createElement(m.Bj,(0,n.A)({className:"sidebar-menu-icon",lib:"easyops",icon:"micro-app-center"},null!==(t=a.menuIcon)&&void 0!==t&&t.lib&&a.menuIcon.icon?(0,i.pick)(a.menuIcon,["lib","icon","theme","category","prefix"]):null)),r().createElement("span",{className:"menu-item-label"},a.name)),!c&&r().createElement(m.Bj,{lib:"fa",icon:"xmark",className:"menu-item-remove",onClick:v}))}function v(e){let{name:t,items:a}=e;const{searching:n}=(0,s.P)(),[i,o]=(0,l.useState)(!1),[p,d]=(0,l.useState)(!1),v=(0,l.useCallback)((()=>{n?d((e=>!e)):o((e=>!e))}),[n]);(0,l.useEffect)((()=>{d(!0)}),[n]);const f=n?p:i;return r().createElement("li",{className:"menu-item folder"},r().createElement(m.EM,{onClick:v},r().createElement(m.Bj,{lib:"fa",prefix:"far",icon:"folder-open",className:"menu-icon"}),r().createElement("span",{className:"menu-item-label"},t),r().createElement(m.Bj,{lib:"antd",icon:f?"up":"down",className:"menu-item-toggle"})),r().createElement("ul",{className:c()("sub-menu",{expanded:f})},a.map((e=>r().createElement(u,{key:`${e.type}-${e.id}`,item:e})))))}},1724:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,':root{--eo-launchpad-v2-background:#fff;--eo-launchpad-v2-menu-icon-color:#8c8c8c}html[data-theme="dark"],\nhtml[data-theme="dark-v2"]{--eo-launchpad-v2-background:#26262a;--eo-launchpad-v2-menu-icon-color:rgba(255,255,255,0.45)}',""]);const o=i},8776:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".fadeEnter{opacity:0;transform:scale(0.95)}.fadeEnterActive{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit{transform:translate(-30px,0)}.fadeExitActive{transform:translate(-100%,0);transition:transform 300ms ease-out}.fadeExitDone{display:none}",""]);const o=i.toString()},3693:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,".platform-category-name,\n.platform-category-sidebar-menu-item-label,\n.platform-item-name,\n.platform-item-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-category-sidebar-menu-item{display:flex;gap:8px;align-items:center;padding:0px 12px 0px 16px}.platform-category-sidebar-menu-item > eo-link{display:block;min-width:0px;color:var(--color-header-text);cursor:pointer}.platform-category-sidebar-menu-item > eo-link:hover,\n.platform-category-sidebar-menu-item\n > eo-link:hover\n .platform-category-sidebar-menu-icon{color:var(--color-brand-hover)}.platform-category-sidebar-menu-item > eo-link.active,\n.platform-category-sidebar-menu-item\n > eo-link.active\n .platform-category-sidebar-menu-icon{color:var(--color-brand-active)}.platform-category-sidebar-menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px}.platform-category-sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.platform-category-name{font-size:18px;font-weight:500;color:var(--text-color-secondary);flex-shrink:0}.platform-items{display:grid;grid-template-columns:repeat(2,1fr);gap:0 54px}.platform-items > li{min-width:0}.platform-items > li > eo-link{width:100%;cursor:pointer}.platform-item{padding:12px 0;display:flex;flex-direction:column}.platform-item:hover .platform-item-icon,\n.platform-item:hover .platform-item-name{color:var(--color-brand-hover)}.platform-item-title{display:flex;align-items:center;margin-bottom:4px}.platform-item-icon{margin-right:8px;font-size:14px;color:var(--text-color-secondary);flex-shrink:0}.platform-item-name{font-weight:500;color:var(--text-color-title);line-height:18px}.platform-item-description{margin-left:22px;color:var(--text-color-secondary);line-height:18px}",""]);const o=i.toString()},5924:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6758),l=a.n(n),r=a(935),i=a.n(r)()(l());i.push([e.id,":host{display:inline-block;width:32px;height:32px;--eo-launchpad-v2-max-height:calc(100vh - var(--app-bar-height) - 36px)}:host([hidden]){display:none}.launchpad-button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px}.launchpad-button:hover,\n.launchpad-button.active{background-color:var(--color-fill-bg-base-1)}.launchpad-button.active{color:var(--color-brand)}.mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.mask.active{display:block}.launchpad{display:none;position:absolute;margin-top:4px;z-index:1;width:1110px;max-width:calc(100vw - 100px);height:var(--eo-launchpad-v2-max-height);background-color:var(--eo-launchpad-v2-background);border:1px solid var(--color-text-divider-line);border-radius:6px;box-shadow:var(--fullscreen-overlay-shadow)}.launchpad.active{display:flex}.sidebar{width:190px;display:flex;flex-direction:column;background:var(--color-fill-bg-base-3);min-width:0;background-size:205px 205px;background-repeat:no-repeat;background-position:left 52px bottom 27px}.sidebar > *:not(:last-child){border-bottom:1px solid var(--stroke-color-default)}.quick-nav-label,\n.platform-nav-label,\n.jump-nav-label,\n.menu-group-label,\n.menu-item-label,\n.recent-visits span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-menu,\n.menu-groups,\n.menu,\n.sub-menu,\n.recent-visits,\n.platform-items{list-style:none;margin:0;padding:0}.sidebar-menu,\n.menu,\n.sub-menu{display:flex;flex-direction:column;gap:14px}.sidebar-menu-item > eo-link,\n.menu-item > eo-link,\n.recent-visits eo-link{display:block;min-width:0}.sidebar-menu-item > eo-link::part(link),\n.menu-item > eo-link::part(link){height:20px;display:flex;align-items:center;gap:8px;color:var(--color-header-text)}.sidebar-menu-item{padding:0 12px 0 16px;justify-content:space-between}.sidebar-menu-icon{color:var(--left-sidebar-item-collapsed-icon-color)}.union{flex:1;display:flex;flex-direction:column;overflow-y:auto}.quick-nav,\n.platform-nav{display:flex;flex-direction:column;padding:20px 0 24px}.platform-nav{padding:0 0 24px}.quick-nav-label,\n.platform-nav-label{color:var(--color-header-text);font-weight:500;margin-bottom:14px;padding:0 16px}.quick-nav-menu,\n.platform-nav-menu{flex:1}.jump-nav > eo-link{display:block;cursor:pointer}.jump-nav > eo-link::part(link){padding:10px 16px;display:flex;justify-content:space-between;align-items:center}.jump-nav-label{flex:1;color:var(--color-header-text);font-weight:500}.jump-nav > eo-icon{font-size:14px;color:var(--text-color-default)}.content{flex:1;padding:20px 24px 24px;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.search-box{border-bottom:1px solid var(--color-text-divider-line);display:flex;gap:8px;align-items:center;padding:10px 0;margin-top:-10px;cursor:text}.search-icon{color:var(--color-auxiliary-text)}.search-input{padding:0;margin:0;border:none;outline:none;color:inherit;background-color:transparent;font-size:14px;line-height:22px;flex:1;min-width:0}.search-input::placeholder{color:var(--color-disabled-text);opacity:1}.search-clear{display:none;color:var(--color-secondary-text);cursor:pointer}.search-clear.searching{display:inline-block}.search-clear:hover{color:var(--color-auxiliary-text)}.menu-groups,\n.recent-visits{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.menu-groups{display:grid;gap:32px 8px}.menu-group{padding-right:12px;color:var(--color-header-text)}.menu-group-label{font-size:var(--card-title-font-size);font-weight:500;color:var(--color-header-text);margin-bottom:14px}.sidebar-menu-item,\n.menu-item:not(.folder){display:flex;gap:8px;align-items:center}.menu-icon{color:var(--eo-launchpad-v2-menu-icon-color)}.menu-item.active,\n.menu-item.active .menu-icon{color:var(--color-brand-active)}.sub-menu:not(.expanded){display:none}.sub-menu{margin-top:14px;margin-left:8px;border-left:1px solid var(--color-text-divider-line);padding-left:15px}.menu-item-remove,\n.menu-item-star{cursor:pointer}.menu-item-remove,\n.menu-item-star,\n.menu-item-toggle{color:var(--color-secondary-text)}.sidebar-menu-item:not(:hover) .menu-item-remove{display:none}.menu-item-remove:hover{color:var(--color-normal-text)}.menu-item-remove:active{color:var(--color-strong-text)}.menu-item-star{display:none}.can-star.starred > .menu-item-star,\n.can-star:hover > .menu-item-star{display:inline-block}.can-star:not(.starred) > .menu-item-star{color:var(--color-secondary-text)}.starred > .menu-item-star{color:var(--palette-yellow-6)}.recent-visits-label{margin-bottom:12px;font-size:var(--card-title-font-size);color:var(--color-header-text);font-weight:500}.recent-visits{display:grid;gap:8px}.recent-visits eo-link::part(link){background-color:var(--color-fill-bg-base-1);border-radius:3px;color:var(--color-header-text);display:flex;align-items:center;height:24px;padding:0 8px}.sidebar-menu-item > eo-link:hover::part(link),\n.sidebar-menu-item > eo-link:hover .sidebar-menu-icon,\n.menu-item > eo-link:hover::part(link),\n.menu-item > eo-link:hover .menu-icon,\n.menu-item > eo-link:hover .menu-item-toggle,\n.recent-visits eo-link:hover::part(link){color:var(--color-brand-hover)}.spinner{display:flex;justify-content:center;align-items:center;color:var(--theme-doderblue-color);flex:1;font-size:30px}.empty,\n.loading > :not(.spinner){display:none}@supports not (inset: 0){.content,\n .search-box,\n .sidebar-menu,\n .menu,\n .sub-menu,\n .sidebar-menu-item,\n .menu-item:not(.folder),\n .sidebar-menu-item > eo-link::part(link),\n .menu-item > eo-link::part(link){gap:0}.sidebar-menu > :not(:first-child),\n .menu > :not(:first-child),\n .sub-menu > :not(:first-child){margin-top:14px}.search-icon,\n .sidebar-menu-icon,\n .menu-icon{margin-right:8px}.search-clear,\n .menu-item-star,\n .menu-item-toggle{margin-left:8px}.content > :not(:last-child){margin-bottom:24px}}",""]);const o=i.toString()},9262:(e,t,a)=>{var n=a(2591),l=a.n(n),r=a(1740),i=a.n(r),o=a(8128),c=a.n(o),m=a(855),s=a.n(m),p=a(3051),u=a.n(p),d=a(3656),v=a.n(d),f=a(1724),g={};g.styleTagTransform=v(),g.setAttributes=s(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=u(),l()(f.A,g),f.A&&f.A.locals&&f.A.locals}}]);
|
|
2
|
-
//# sourceMappingURL=9149.94ac2bef.js.map
|