feat: add markdown component

This commit is contained in:
vben
2020-10-19 22:09:03 +08:00
parent 2fbc450414
commit 5fb069f432
8 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
export default {
layout: {
path: '/editor',
name: 'Editor',
component: PAGE_LAYOUT_COMPONENT,
redirect: '/editor/markdown',
meta: {
icon: 'ant-design:table-outlined',
title: '编辑器',
},
},
routes: [
{
path: '/markdown',
name: 'MarkdownDemo',
component: () => import('/@/views/demo/editor/Markdown.vue'),
meta: {
title: 'markdown编辑器',
},
},
],
} as AppRouteModule;