1.0发布,Fixes Bug,以及新增 ProTable组件

This commit is contained in:
Ah jung
2021-07-12 16:16:51 +08:00
parent d423f27e94
commit 1e9b7074e5
43 changed files with 1375 additions and 65 deletions

View File

@@ -0,0 +1,44 @@
import { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/router/constant';
import { ProfileOutlined } from '@vicons/antd'
import { renderIcon } from '@/utils/index'
const routeName = 'comp'
/**
* @param name 路由名称, 必须设置,且不能重名
* @param meta 路由元信息(路由附带扩展信息)
* @param redirect 重定向地址, 访问这个路由时,自定进行重定向
* @param meta.disabled 禁用整个菜单
* @param meta.title 菜单名称
* @param meta.icon 菜单图标
* @param meta.keepAlive 缓存该路由
* @param meta.sort 排序越小越排前
*
* */
const routes: Array<RouteRecordRaw> = [
{
path: '/comp',
name: routeName,
redirect: '/comp/console',
component: Layout,
meta: {
title: '组件',
icon: renderIcon(ProfileOutlined),
sort: 1
},
children: [
{
path: 'table',
name: `${ routeName }_table`,
meta: {
title: '基础表格',
},
component: () => import('@/views/comp/table/list.vue')
}
],
}
]
export default routes