支持 Vue 3.2.x 语法升级为,script setup

This commit is contained in:
xiaoma
2021-08-14 14:35:42 +08:00
parent d3f7fa0f9e
commit 905984367c
71 changed files with 2362 additions and 2116 deletions

View File

@@ -1,7 +1,7 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout, ParentLayout } from '@/router/constant';
import { WalletOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils/index';
import { renderIcon, renderNew } from '@/utils';
const routeName = 'comp';
@@ -106,6 +106,24 @@ const routes: Array<RouteRecordRaw> = [
},
component: () => import('@/views/comp/modal/index.vue'),
},
{
path: 'richtext',
name: `richtext`,
meta: {
title: '富文本',
extra: renderNew(),
},
component: () => import('@/views/comp/richtext/vue-quill.vue'),
},
{
path: 'drag',
name: `Drag`,
meta: {
title: '拖拽',
extra: renderNew(),
},
component: () => import('@/views/comp/drag/index.vue'),
},
],
},
];