Skip to content

Commit

Permalink
Merge pull request #210 from SonyLeo/feature/tree
Browse files Browse the repository at this point in the history
Feature/tree
  • Loading branch information
honghuangdc committed Apr 2, 2023
2 parents f74a642 + a0f55ac commit 80d58cc
Show file tree
Hide file tree
Showing 6 changed files with 906 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/router/modules/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,48 @@ const component: AuthRoute.Route = {
requiresAuth: true,
icon: 'mdi:table-large'
}
},
{
name: 'component_tree',
path: '/component/tree',
component: 'multi',
children: [
{
name: 'component_tree_tree-basic',
path: '/component/tree/tree-basic',
component: 'self',
meta: {
title: '基础树',
requiresAuth: true,
icon: 'fluent:tree-deciduous-20-regular'
}
},
{
name: 'component_tree_tree-custom',
path: '/component/tree/tree-custom',
component: 'self',
meta: {
title: '自定义树',
requiresAuth: true,
icon: 'fluent:tree-deciduous-20-filled'
}
},
{
name: 'component_tree_tree-functions',
path: '/component/tree/tree-functions',
component: 'self',
meta: {
title: '函数示例',
requiresAuth: true,
icon: 'fluent:tree-evergreen-20-filled'
}
}
],
meta: {
title: '树',
requiresAuth: true,
icon: 'carbon:tree-view-alt'
}
}
],
meta: {
Expand Down
7 changes: 7 additions & 0 deletions src/typings/page-route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ declare namespace PageRoute {
| 'component_button'
| 'component_card'
| 'component_table'
| 'component_tree'
| 'component_tree_tree-basic'
| 'component_tree_tree-custom'
| 'component_tree_tree-functions'
| 'dashboard'
| 'dashboard_analysis'
| 'dashboard_workbench'
Expand Down Expand Up @@ -89,6 +93,9 @@ declare namespace PageRoute {
| 'component_button'
| 'component_card'
| 'component_table'
| 'component_tree_tree-basic'
| 'component_tree_tree-custom'
| 'component_tree_tree-functions'
| 'dashboard_analysis'
| 'dashboard_workbench'
| 'document_naive'
Expand Down
Loading

1 comment on commit 80d58cc

@vercel
Copy link

@vercel vercel bot commented on 80d58cc Apr 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.