Blame view

src/router/routes/modules/demo/tree.ts 955 Bytes
vben authored
1
2
3
4
import type { AppRouteModule } from '/@/router/types';

import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
5
const tree: AppRouteModule = {
vben authored
6
7
8
9
10
11
  layout: {
    path: '/tree',
    name: 'TreeDemo',
    component: PAGE_LAYOUT_COMPONENT,
    redirect: '/tree/basic',
    meta: {
vben authored
12
      icon: 'clarity:tree-view-line',
vben authored
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
      title: 'Tree',
    },
  },
  routes: [
    {
      path: '/basic',
      name: 'BasicTreeDemo',
      component: () => import('/@/views/demo/tree/index.vue'),
      meta: {
        title: '基础树',
      },
    },
    {
      path: '/editTree',
      name: 'EditTreeDemo',
      component: () => import('/@/views/demo/tree/EditTree.vue'),
      meta: {
        title: '右键示例',
      },
    },
    {
      path: '/actionTree',
      name: 'ActionTreeDemo',
      component: () => import('/@/views/demo/tree/ActionTree.vue'),
      meta: {
        title: '函数操作示例',
      },
    },
  ],
42
43
44
};

export default tree;