新增:Form组件支持响应式配置,路由支持外部地址(内联)

This commit is contained in:
xiaoma
2021-08-09 16:16:16 +08:00
parent ade138997d
commit 0979b5af5d
9 changed files with 124 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
name: 'about',
component: Layout,
meta: {
sort: 9,
sort: 10,
isRoot: true,
activeMenu: 'about_index',
},

View File

@@ -11,7 +11,7 @@ const routes: Array<RouteRecordRaw> = [
meta: {
title: '项目文档',
icon: renderIcon(DocumentTextOutline),
sort: 8,
sort: 9,
},
},
];

View File

@@ -0,0 +1,42 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { DesktopOutline } from '@vicons/ionicons5';
import { renderIcon } from '@/utils/index';
const IFrame = () => import('@/views/iframe/index.vue');
const routes: Array<RouteRecordRaw> = [
{
path: '/frame',
name: 'Frame',
redirect: '/frame/docs',
component: Layout,
meta: {
title: '外部页面',
sort: 8,
icon: renderIcon(DesktopOutline),
},
children: [
{
path: 'docs',
name: 'frame-docs',
meta: {
title: '项目文档(内嵌)',
frameSrc: 'https://naive-ui-admin-docs.vercel.app',
},
component: IFrame,
},
{
path: 'naive',
name: 'frame-naive',
meta: {
title: 'NaiveUi(内嵌)',
frameSrc: 'https://www.naiveui.com',
},
component: IFrame,
},
],
},
];
export default routes;