1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
8 |
|
9 |
|
10 | var autoGenHeaderNavs = [];
|
11 |
|
12 | var autoGenAsideNavs = [];
|
13 |
|
14 |
|
15 |
|
16 | var customHeaderNavs = [{
|
17 | text: '首页',
|
18 | to: '/',
|
19 | icon: 'home'
|
20 | }, {
|
21 | text: '反馈',
|
22 | to: 'https://github.com/alibaba/ice',
|
23 | external: true,
|
24 | newWindow: true,
|
25 | icon: 'message'
|
26 | }, {
|
27 | text: '帮助',
|
28 | to: 'https://alibaba.github.io/ice',
|
29 | external: true,
|
30 | newWindow: true,
|
31 | icon: 'bangzhu'
|
32 | }];
|
33 |
|
34 | var customAsideNavs = [{
|
35 | text: '首页',
|
36 | to: '/',
|
37 | icon: 'home'
|
38 | }, {
|
39 | text: '用户管理',
|
40 | to: '/user',
|
41 | icon: 'yonghu'
|
42 | }, {
|
43 | text: '系统设置',
|
44 | to: '/setting',
|
45 | icon: 'shezhi',
|
46 | children: [{
|
47 | text: '基本设置',
|
48 | to: '/base'
|
49 | }, {
|
50 | text: '评论设置',
|
51 | to: '/comment'
|
52 | }]
|
53 | }];
|
54 |
|
55 | function transform(navs) {
|
56 |
|
57 | return [].concat(_toConsumableArray(navs));
|
58 | }
|
59 |
|
60 | var headerNavs = exports.headerNavs = transform([].concat(autoGenHeaderNavs, customHeaderNavs));
|
61 |
|
62 | var asideNavs = exports.asideNavs = transform([].concat(autoGenAsideNavs, customAsideNavs)); |
\ | No newline at end of file |