feat: add codeEditor component

This commit is contained in:
Vben
2021-04-17 18:42:14 +08:00
parent c04e8943bc
commit a812685084
19 changed files with 1159 additions and 41 deletions

View File

@@ -6,7 +6,9 @@ const menu: MenuModule = {
menu: {
name: t('routes.demo.comp.comp'),
path: '/comp',
tag: {
dot: true,
},
children: [
{
path: 'basic',
@@ -181,7 +183,17 @@ const menu: MenuModule = {
{
name: t('routes.demo.editor.editor'),
path: 'editor',
tag: {
dot: true,
},
children: [
{
path: 'json',
name: t('routes.demo.editor.jsonEditor'),
tag: {
content: 'new',
},
},
{
path: 'markdown',
name: t('routes.demo.editor.markdown'),

View File

@@ -303,6 +303,14 @@ const comp: AppRouteModule = {
title: t('routes.demo.editor.editor'),
},
children: [
{
path: 'json',
component: () => import('/@/views/demo/editor/json/index.vue'),
name: 'JsonEditorDemo',
meta: {
title: t('routes.demo.editor.jsonEditor'),
},
},
{
path: 'markdown',
component: getParentLayout('MarkdownDemo'),