mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 15:41:32 +08:00
initial commit
This commit is contained in:
127
src/router/menus/modules/demo/comp.ts
Normal file
127
src/router/menus/modules/demo/comp.ts
Normal file
@@ -0,0 +1,127 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 30,
|
||||
menu: {
|
||||
name: '组件',
|
||||
path: '/comp',
|
||||
children: [
|
||||
{
|
||||
path: '/basic',
|
||||
name: '基础组件',
|
||||
},
|
||||
{
|
||||
path: '/icon',
|
||||
name: '图标',
|
||||
},
|
||||
{
|
||||
path: '/click-out-side',
|
||||
name: 'ClickOutSide组件',
|
||||
},
|
||||
{
|
||||
path: '/form',
|
||||
name: '表单组件',
|
||||
children: [
|
||||
{
|
||||
path: '/basic',
|
||||
name: '基础表单',
|
||||
},
|
||||
{
|
||||
path: '/useForm',
|
||||
name: 'useForm',
|
||||
},
|
||||
{
|
||||
path: '/refForm',
|
||||
name: 'RefForm',
|
||||
},
|
||||
{
|
||||
path: '/advancedForm',
|
||||
name: '可收缩表单',
|
||||
},
|
||||
{
|
||||
path: '/ruleForm',
|
||||
name: '表单校验',
|
||||
},
|
||||
{
|
||||
path: '/dynamicForm',
|
||||
name: '动态表单',
|
||||
},
|
||||
{
|
||||
path: '/customerForm',
|
||||
name: '自定义组件',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/tree',
|
||||
name: '树组件',
|
||||
children: [
|
||||
{
|
||||
path: 'basic',
|
||||
name: '基础示例',
|
||||
},
|
||||
{
|
||||
path: 'editTree',
|
||||
name: '右键示例',
|
||||
},
|
||||
{
|
||||
path: 'actionTree',
|
||||
name: '函数操作示例',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/scroll',
|
||||
name: '滚动组件',
|
||||
children: [
|
||||
{
|
||||
path: 'basic',
|
||||
name: '基础示例',
|
||||
},
|
||||
{
|
||||
path: 'action',
|
||||
name: '函数操作示例',
|
||||
},
|
||||
{
|
||||
path: 'virtualScroll',
|
||||
name: '虚拟滚动',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/modal',
|
||||
name: '弹窗扩展',
|
||||
},
|
||||
{
|
||||
path: '/drawer',
|
||||
name: '抽屉扩展',
|
||||
},
|
||||
{
|
||||
path: '/desc',
|
||||
name: '详情组件',
|
||||
},
|
||||
{
|
||||
path: '/verify',
|
||||
name: '验证组件',
|
||||
children: [
|
||||
{
|
||||
path: '/drag',
|
||||
name: '拖拽校验',
|
||||
},
|
||||
{
|
||||
path: '/rotate',
|
||||
name: '图片还原校验',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/qrcode',
|
||||
name: '二维码组件',
|
||||
},
|
||||
{
|
||||
path: '/strength-meter',
|
||||
name: '密码强度组件',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
15
src/router/menus/modules/demo/dashboard.ts
Normal file
15
src/router/menus/modules/demo/dashboard.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 10,
|
||||
menu: {
|
||||
name: 'Dashboard',
|
||||
path: '/dashboard',
|
||||
children: [
|
||||
{
|
||||
path: '/welcome',
|
||||
name: '欢迎页',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
31
src/router/menus/modules/demo/exception.ts
Normal file
31
src/router/menus/modules/demo/exception.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 500,
|
||||
menu: {
|
||||
name: '异常页',
|
||||
path: '/exception',
|
||||
children: [
|
||||
{
|
||||
path: '/404',
|
||||
name: '404',
|
||||
},
|
||||
{
|
||||
path: '/500',
|
||||
name: '500',
|
||||
},
|
||||
{
|
||||
path: '/net-work-error',
|
||||
name: '网络错误',
|
||||
},
|
||||
{
|
||||
path: '/page-time-out',
|
||||
name: '页面超时',
|
||||
},
|
||||
{
|
||||
path: '/not-data',
|
||||
name: '无数据',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
43
src/router/menus/modules/demo/feat.ts
Normal file
43
src/router/menus/modules/demo/feat.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 10,
|
||||
menu: {
|
||||
name: '页面功能',
|
||||
path: '/feat',
|
||||
children: [
|
||||
{
|
||||
path: '/tabs',
|
||||
name: '标签页操作',
|
||||
},
|
||||
{
|
||||
path: '/context-menu',
|
||||
name: '右键菜单',
|
||||
},
|
||||
// {
|
||||
// path: '/img-preview',
|
||||
// name: '图片预览',
|
||||
// },
|
||||
{
|
||||
path: '/i18n',
|
||||
name: '国际化',
|
||||
},
|
||||
{
|
||||
path: '/copy',
|
||||
name: '剪切板',
|
||||
},
|
||||
{
|
||||
path: '/msg',
|
||||
name: '消息提示',
|
||||
},
|
||||
{
|
||||
path: '/watermark',
|
||||
name: '水印',
|
||||
},
|
||||
{
|
||||
path: '/full-screen',
|
||||
name: '全屏',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
23
src/router/menus/modules/demo/iframe.ts
Normal file
23
src/router/menus/modules/demo/iframe.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 1000,
|
||||
menu: {
|
||||
name: '外部页面',
|
||||
path: '/frame',
|
||||
children: [
|
||||
{
|
||||
path: '/antv',
|
||||
name: 'antVue文档(内嵌)',
|
||||
},
|
||||
{
|
||||
path: '/doc',
|
||||
name: '项目文档(内嵌)',
|
||||
},
|
||||
{
|
||||
path: '/docExternal',
|
||||
name: '项目文档(外链)',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
47
src/router/menus/modules/demo/permission.ts
Normal file
47
src/router/menus/modules/demo/permission.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import type { MenuModule } from '/@/router/types.d';
|
||||
const menu: MenuModule = {
|
||||
orderNo: 20,
|
||||
menu: {
|
||||
name: '权限管理',
|
||||
path: '/permission',
|
||||
children: [
|
||||
{
|
||||
path: '/front',
|
||||
name: '基于前端',
|
||||
children: [
|
||||
{
|
||||
path: '/page',
|
||||
name: '页面权限',
|
||||
},
|
||||
{
|
||||
path: '/btn',
|
||||
name: '按钮权限',
|
||||
},
|
||||
{
|
||||
path: '/auth-pageA',
|
||||
name: '权限测试页A',
|
||||
},
|
||||
{
|
||||
path: '/auth-pageB',
|
||||
name: '权限测试页B',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/back',
|
||||
name: '基于后台',
|
||||
children: [
|
||||
{
|
||||
path: '/page',
|
||||
name: '页面权限',
|
||||
},
|
||||
{
|
||||
path: '/btn',
|
||||
name: '按钮权限',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export default menu;
|
Reference in New Issue
Block a user