feat:防抖节流等指令

This commit is contained in:
chen shu tao
2022-11-23 13:40:09 +08:00
parent 32116be1f2
commit e63963cf08
8 changed files with 301 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { ProjectOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/test',
name: 'test',
component: Layout,
meta: {
sort: 12,
isRoot: true,
activeMenu: 'test_index',
icon: renderIcon(ProjectOutlined),
},
children: [
{
path: 'index',
name: `test_index`,
meta: {
title: '指令测试',
activeMenu: 'test_index',
},
component: () => import('@/views/test/index.vue'),
},
],
},
];
export default routes;