style: menu adjustment

This commit is contained in:
vben
2020-10-11 23:48:25 +08:00
parent 52ee35c4be
commit 949db9639f
14 changed files with 425 additions and 369 deletions

View File

@@ -17,6 +17,9 @@ import compDemo from './modules/demo/comp';
import permissionDemo from './modules/demo/permission';
import featDemo from './modules/demo/feat';
import chartsDemo from './modules/demo/charts';
import tableDemo from './modules/demo/table';
import formDemo from './modules/demo/form';
import treeDemo from './modules/demo/tree';
const menuModules = [
dashboardDemo,
@@ -26,6 +29,9 @@ const menuModules = [
compDemo,
permissionDemo,
chartsDemo,
tableDemo,
formDemo,
treeDemo,
];
// ===========================

View File

@@ -9,128 +9,7 @@ const menu: MenuModule = {
path: '/basic',
name: '基础组件',
},
{
path: '/icon',
name: '图标',
},
{
path: '/click-out-side',
name: 'ClickOutSide组件',
},
{
path: '/table',
name: '表格组件',
children: [
{
path: '/basic',
name: '基础表格',
},
{
path: '/treeTable',
name: '树形表格',
},
{
path: '/fetchTable',
name: '远程加载',
},
{
path: '/fixedColumn',
name: '固定列',
},
{
path: '/customerCell',
name: '自定义列',
},
{
path: '/formTable',
name: '开启搜索区域',
},
{
path: '/useTable',
name: 'UseTable',
},
{
path: '/refTable',
name: 'RefTable',
},
{
path: '/multipleHeader',
name: '多级表头',
},
{
path: '/mergeHeader',
name: '合并单元格',
},
{
path: '/expandTable',
name: '可展开表格',
},
{
path: '/fixedHeight',
name: '定高/头部自定义',
},
{
path: '/footerTable',
name: '表尾行合计',
},
{
path: '/editCellTable',
name: '可编辑单元格',
},
],
},
{
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: '滚动组件',

View File

@@ -5,6 +5,10 @@ const menu: MenuModule = {
name: '页面功能',
path: '/feat',
children: [
{
path: '/icon',
name: '图标',
},
{
path: '/tabs',
name: '标签页操作',
@@ -13,6 +17,10 @@ const menu: MenuModule = {
path: '/context-menu',
name: '右键菜单',
},
{
path: '/click-out-side',
name: 'ClickOutSide',
},
{
path: '/img-preview',
name: '图片预览',

View File

@@ -0,0 +1,39 @@
import type { MenuModule } from '/@/router/types.d';
const menu: MenuModule = {
orderNo: 40,
menu: {
path: '/form',
name: 'Form',
children: [
{
path: '/basic',
name: '基础表单',
},
{
path: '/useForm',
name: 'useForm',
},
{
path: '/refForm',
name: 'RefForm',
},
{
path: '/advancedForm',
name: '可收缩表单',
},
{
path: '/ruleForm',
name: '表单校验',
},
{
path: '/dynamicForm',
name: '动态表单',
},
{
path: '/customerForm',
name: '自定义组件',
},
],
},
};
export default menu;

View File

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

View File

@@ -0,0 +1,23 @@
import type { MenuModule } from '/@/router/types.d';
const menu: MenuModule = {
orderNo: 50,
menu: {
path: '/tree',
name: 'Tree',
children: [
{
path: 'basic',
name: '基础示例',
},
{
path: 'editTree',
name: '右键示例',
},
{
path: 'actionTree',
name: '函数操作示例',
},
],
},
};
export default menu;