perf: review tinymce code

This commit is contained in:
vben
2020-10-22 23:56:33 +08:00
parent 9c02d8ec08
commit f75425d13b
26 changed files with 350 additions and 535 deletions

View File

@@ -6,23 +6,23 @@ const menu: MenuModule = {
path: '/charts',
children: [
{
path: '/apexChart',
path: 'apexChart',
name: 'ApexChart',
},
{
path: '/echarts',
path: 'echarts',
name: 'Echarts',
children: [
{
path: '/map',
path: 'map',
name: '地图',
},
{
path: '/line',
path: 'line',
name: '折线图',
},
{
path: '/pie',
path: 'pie',
name: '饼图',
},
],

View File

@@ -6,16 +6,16 @@ const menu: MenuModule = {
path: '/comp',
children: [
{
path: '/basic',
path: 'basic',
name: '基础组件',
},
{
path: '/countTo',
path: 'countTo',
name: '数字动画',
},
{
path: '/scroll',
path: 'scroll',
name: '滚动组件',
children: [
{
@@ -33,53 +33,39 @@ const menu: MenuModule = {
],
},
{
path: '/modal',
path: 'modal',
name: '弹窗扩展',
},
{
path: '/drawer',
path: 'drawer',
name: '抽屉扩展',
},
{
path: '/desc',
path: 'desc',
name: '详情组件',
},
{
path: '/verify',
path: 'verify',
name: '验证组件',
children: [
{
path: '/drag',
path: 'drag',
name: '拖拽校验',
},
{
path: '/rotate',
path: 'rotate',
name: '图片还原校验',
},
],
},
{
path: '/qrcode',
path: 'qrcode',
name: '二维码组件',
},
{
path: '/strength-meter',
path: 'strength-meter',
name: '密码强度组件',
},
{
path: '/tinymce',
name: '富文本',
children: [
{
path: '/index',
name: '基础使用',
},
{
path: '/editor',
name: '嵌入form使用',
},
],
},
],
},
};

View File

@@ -6,9 +6,23 @@ const menu: MenuModule = {
path: '/editor',
children: [
{
path: '/markdown',
path: 'markdown',
name: 'markdown编辑器',
},
{
path: 'tinymce',
name: '富文本',
children: [
{
path: 'index',
name: '基础使用',
},
// {
// path: 'editor',
// name: '嵌入form使用',
// },
],
},
],
},
};

View File

@@ -6,23 +6,21 @@ const menu: MenuModule = {
path: '/excel',
children: [
{
path: '/customExport',
path: 'customExport',
name: '选择导出格式',
},
{
path: '/jsonExport',
path: 'jsonExport',
name: 'JSON数据导出',
},
{
path: '/arrayExport',
path: 'arrayExport',
name: 'Array数据导出',
},
{
path: '/importExcel',
path: 'importExcel',
name: '导入',
},
// ],
// },
],
},
};

View File

@@ -6,27 +6,27 @@ const menu: MenuModule = {
path: '/exception',
children: [
{
path: '/404',
path: '404',
name: '404',
},
{
path: '/500',
path: '500',
name: '500',
},
{
path: '/net-work-error',
path: 'net-work-error',
name: '网络错误',
},
{
path: '/page-time-out',
path: 'page-time-out',
name: '页面超时',
},
{
path: '/not-data',
path: 'not-data',
name: '无数据',
},
{
path: '/error-log',
path: 'error-log',
name: '错误日志',
},
],

View File

@@ -6,55 +6,55 @@ const menu: MenuModule = {
path: '/feat',
children: [
{
path: '/icon',
path: 'icon',
name: '图标',
},
{
path: '/tabs',
path: 'tabs',
name: '标签页操作',
},
{
path: '/context-menu',
path: 'context-menu',
name: '右键菜单',
},
{
path: '/click-out-side',
path: 'click-out-side',
name: 'ClickOutSide',
},
{
path: '/img-preview',
path: 'img-preview',
name: '图片预览',
},
{
path: '/i18n',
path: 'i18n',
name: '国际化',
},
{
path: '/copy',
path: 'copy',
name: '剪切板',
},
{
path: '/msg',
path: 'msg',
name: '消息提示',
},
{
path: '/watermark',
path: 'watermark',
name: '水印',
},
{
path: '/full-screen',
path: 'full-screen',
name: '全屏',
},
{
path: '/testTab',
path: 'testTab',
name: '带参Tab',
children: [
{
path: '/id1',
path: 'id1',
name: '带参tab1',
},
{
path: '/id2',
path: 'id2',
name: '带参tab2',
},
],

View File

@@ -6,31 +6,31 @@ const menu: MenuModule = {
name: 'Form',
children: [
{
path: '/basic',
path: 'basic',
name: '基础表单',
},
{
path: '/useForm',
path: 'useForm',
name: 'useForm',
},
{
path: '/refForm',
path: 'refForm',
name: 'RefForm',
},
{
path: '/advancedForm',
path: 'advancedForm',
name: '可收缩表单',
},
{
path: '/ruleForm',
path: 'ruleForm',
name: '表单校验',
},
{
path: '/dynamicForm',
path: 'dynamicForm',
name: '动态表单',
},
{
path: '/customerForm',
path: 'customerForm',
name: '自定义组件',
},
],

View File

@@ -6,15 +6,15 @@ const menu: MenuModule = {
path: '/frame',
children: [
{
path: '/antv',
path: 'antv',
name: 'antVue文档(内嵌)',
},
{
path: '/doc',
path: 'doc',
name: '项目文档(内嵌)',
},
{
path: '/docExternal',
path: 'docExternal',
name: '项目文档(外链)',
},
],

View File

@@ -6,37 +6,37 @@ const menu: MenuModule = {
path: '/permission',
children: [
{
path: '/front',
path: 'front',
name: '基于前端',
children: [
{
path: '/page',
path: 'page',
name: '页面权限',
},
{
path: '/btn',
path: 'btn',
name: '按钮权限',
},
{
path: '/auth-pageA',
path: 'auth-pageA',
name: '权限测试页A',
},
{
path: '/auth-pageB',
path: 'auth-pageB',
name: '权限测试页B',
},
],
},
{
path: '/back',
path: 'back',
name: '基于后台',
children: [
{
path: '/page',
path: 'page',
name: '页面权限',
},
{
path: '/btn',
path: 'btn',
name: '按钮权限',
},
],

View File

@@ -6,59 +6,59 @@ const menu: MenuModule = {
name: 'Table',
children: [
{
path: '/basic',
path: 'basic',
name: '基础表格',
},
{
path: '/treeTable',
path: 'treeTable',
name: '树形表格',
},
{
path: '/fetchTable',
path: 'fetchTable',
name: '远程加载',
},
{
path: '/fixedColumn',
path: 'fixedColumn',
name: '固定列',
},
{
path: '/customerCell',
path: 'customerCell',
name: '自定义列',
},
{
path: '/formTable',
path: 'formTable',
name: '开启搜索区域',
},
{
path: '/useTable',
path: 'useTable',
name: 'UseTable',
},
{
path: '/refTable',
path: 'refTable',
name: 'RefTable',
},
{
path: '/multipleHeader',
path: 'multipleHeader',
name: '多级表头',
},
{
path: '/mergeHeader',
path: 'mergeHeader',
name: '合并单元格',
},
{
path: '/expandTable',
path: 'expandTable',
name: '可展开表格',
},
{
path: '/fixedHeight',
path: 'fixedHeight',
name: '定高/头部自定义',
},
{
path: '/footerTable',
path: 'footerTable',
name: '表尾行合计',
},
{
path: '/editCellTable',
path: 'editCellTable',
name: '可编辑单元格',
},
],