feat: 路由调整 菜单调整 删除无用演示

This commit is contained in:
FairyEver
2020-09-01 15:31:55 +08:00
parent 0c3601ddba
commit ec0d6f3819
67 changed files with 236 additions and 1280 deletions

View File

@@ -4,12 +4,8 @@ import { uniqueId } from 'lodash'
import demoPlugins from './modules/demo-plugins'
// 组件
import demoComponents from './modules/demo-components'
// 组件
import demoCharts from './modules/demo-charts'
// 功能
import demoPlayground from './modules/demo-playground'
// 示例
import demoBusiness from './modules/demo-business'
// CRUD
import demoD2Crud from './modules/demo-d2-crud'
// CRUD PLUS
@@ -34,9 +30,7 @@ function supplementPath (menu) {
export const menuAside = supplementPath([
demoComponents,
demoPlugins,
demoCharts,
demoPlayground,
demoBusiness,
demoD2Crud,
demoD2CrudPlus
])
@@ -48,8 +42,8 @@ export const menuHeader = supplementPath([
title: '首页',
icon: 'home'
},
demoPlayground,
demoComponents,
demoCharts,
demoPlugins,
{
title: '社区插件',
@@ -58,7 +52,5 @@ export const menuHeader = supplementPath([
demoD2Crud,
demoD2CrudPlus
]
},
demoPlayground,
demoBusiness
}
])

View File

@@ -1,22 +0,0 @@
export default {
path: '/demo/business',
title: '示例',
icon: 'terminal',
children: (pre => [
{ path: `${pre}index`, title: '示例', icon: 'home' },
{
title: '表格',
icon: 'table',
children: [
{ path: `${pre}table/1`, title: '表格 1' }
]
},
{
title: 'ISSUES',
icon: 'github',
children: [
{ path: `${pre}issues/142`, title: '#142' }
]
}
])('/demo/business/')
}

View File

@@ -1,149 +0,0 @@
export default {
path: '/demo/charts',
title: '图表',
icon: 'line-chart',
children: (pre => [
{ path: `${pre}index`, title: '图表', icon: 'home' },
{
path: `${pre}list`,
title: '图表',
icon: 'cube',
children: [
{
path: `${pre}list/line`,
title: '折线图',
children: [
{ path: `${pre}list/line/demo1`, title: '一般' },
{ path: `${pre}list/line/demo2`, title: '横坐标倾斜' },
{ path: `${pre}list/line/demo3`, title: '堆叠面积图' },
{ path: `${pre}list/line/demo4`, title: '显示数值' },
{ path: `${pre}list/line/demo5`, title: '设置别名' }
]
},
{
path: `${pre}list/histogram`,
title: '柱状图',
children: [
{ path: `${pre}list/histogram/demo1`, title: '一般' },
{ path: `${pre}list/histogram/demo2`, title: '指标维度' },
{ path: `${pre}list/histogram/demo3`, title: '混合图表' },
{ path: `${pre}list/histogram/demo4`, title: '堆叠柱状图' },
{ path: `${pre}list/histogram/demo5`, title: '显示数值' },
{ path: `${pre}list/histogram/demo6`, title: '横轴连续' }
]
},
{
path: `${pre}list/bar`,
title: '条形图',
children: [
{ path: `${pre}list/bar/demo1`, title: '一般' },
{ path: `${pre}list/bar/demo2`, title: '指标维度' },
{ path: `${pre}list/bar/demo3`, title: '排序条形图' },
{ path: `${pre}list/bar/demo4`, title: '堆叠条形图' },
{ path: `${pre}list/bar/demo5`, title: '纵轴连续' }
]
},
{
path: `${pre}list/pie`,
title: '饼图',
children: [
{ path: `${pre}list/pie/demo1`, title: '一般' },
{ path: `${pre}list/pie/demo2`, title: '指标维度' },
{ path: `${pre}list/pie/demo3`, title: '玫瑰图' },
{ path: `${pre}list/pie/demo4`, title: '限制条数' },
{ path: `${pre}list/pie/demo5`, title: '多圆饼图' },
{ path: `${pre}list/pie/demo6`, title: '设置半径' }
]
},
{
path: `${pre}list/ring`,
title: '环图',
children: [
{ path: `${pre}list/ring/demo1`, title: '一般' },
{ path: `${pre}list/ring/demo2`, title: '指标维度' },
{ path: `${pre}list/ring/demo3`, title: '玫瑰图' },
{ path: `${pre}list/ring/demo4`, title: '限制显示条数' },
{ path: `${pre}list/ring/demo5`, title: '设置半径' }
]
},
{
path: `${pre}list/waterfall`,
title: '瀑布图',
children: [
{ path: `${pre}list/waterfall/demo1`, title: '一般' }
]
},
{
path: `${pre}list/funnel`,
title: '漏斗图',
children: [
{ path: `${pre}list/funnel/demo1`, title: '一般' },
{ path: `${pre}list/funnel/demo2`, title: '金字塔' }
]
},
{
path: `${pre}list/radar`,
title: '雷达图',
children: [
{ path: `${pre}list/radar/demo1`, title: '一般' }
]
},
{
path: `${pre}list/map`,
title: '地图',
children: [
{ path: `${pre}list/map/demo1`, title: '一般' },
{ path: `${pre}list/map/demo2`, title: '设置城市' },
{ path: `${pre}list/map/demo3`, title: '设置样式' }
]
},
{
path: `${pre}list/sankey`,
title: '桑基图',
children: [
{ path: `${pre}list/sankey/demo1`, title: '一般' }
]
},
{
path: `${pre}list/heatmap`,
title: '热力图',
children: [
{ path: `${pre}list/heatmap/demo1`, title: '一般' },
{ path: `${pre}list/heatmap/demo2`, title: '地图热力图' }
]
},
{
path: `${pre}list/scatter`,
title: '散点图',
children: [
{ path: `${pre}list/scatter/demo1`, title: '单维度多指标' },
{ path: `${pre}list/scatter/demo2`, title: '双维度多指标' }
]
},
{
path: `${pre}list/candle`,
title: 'K线图',
children: [
{ path: `${pre}list/candle/demo1`, title: '一般' },
{ path: `${pre}list/candle/demo2`, title: 'MA VOL' },
{ path: `${pre}list/candle/demo3`, title: '自定义' }
]
},
{
path: `${pre}list/gauge`,
title: '仪表盘',
children: [
{ path: `${pre}list/gauge/demo1`, title: '一般' }
]
},
{
path: `${pre}list/tree`,
title: '树图',
children: [
{ path: `${pre}list/tree/demo1`, title: '径向树图' }
]
}
]
}
])('/demo/charts/')
}

View File

@@ -4,6 +4,147 @@ export default {
icon: 'plug',
children: (pre => [
{ path: `${pre}index`, title: '插件', icon: 'home' },
{
path: `${pre}charts`,
title: '图表',
icon: 'bar-chart',
children: [
{
path: `${pre}charts/line`,
title: '折线图',
children: [
{ path: `${pre}charts/line/demo1`, title: '一般' },
{ path: `${pre}charts/line/demo2`, title: '横坐标倾斜' },
{ path: `${pre}charts/line/demo3`, title: '堆叠面积图' },
{ path: `${pre}charts/line/demo4`, title: '显示数值' },
{ path: `${pre}charts/line/demo5`, title: '设置别名' }
]
},
{
path: `${pre}charts/histogram`,
title: '柱状图',
children: [
{ path: `${pre}charts/histogram/demo1`, title: '一般' },
{ path: `${pre}charts/histogram/demo2`, title: '指标维度' },
{ path: `${pre}charts/histogram/demo3`, title: '混合图表' },
{ path: `${pre}charts/histogram/demo4`, title: '堆叠柱状图' },
{ path: `${pre}charts/histogram/demo5`, title: '显示数值' },
{ path: `${pre}charts/histogram/demo6`, title: '横轴连续' }
]
},
{
path: `${pre}charts/bar`,
title: '条形图',
children: [
{ path: `${pre}charts/bar/demo1`, title: '一般' },
{ path: `${pre}charts/bar/demo2`, title: '指标维度' },
{ path: `${pre}charts/bar/demo3`, title: '排序条形图' },
{ path: `${pre}charts/bar/demo4`, title: '堆叠条形图' },
{ path: `${pre}charts/bar/demo5`, title: '纵轴连续' }
]
},
{
path: `${pre}charts/pie`,
title: '饼图',
children: [
{ path: `${pre}charts/pie/demo1`, title: '一般' },
{ path: `${pre}charts/pie/demo2`, title: '指标维度' },
{ path: `${pre}charts/pie/demo3`, title: '玫瑰图' },
{ path: `${pre}charts/pie/demo4`, title: '限制条数' },
{ path: `${pre}charts/pie/demo5`, title: '多圆饼图' },
{ path: `${pre}charts/pie/demo6`, title: '设置半径' }
]
},
{
path: `${pre}charts/ring`,
title: '环图',
children: [
{ path: `${pre}charts/ring/demo1`, title: '一般' },
{ path: `${pre}charts/ring/demo2`, title: '指标维度' },
{ path: `${pre}charts/ring/demo3`, title: '玫瑰图' },
{ path: `${pre}charts/ring/demo4`, title: '限制显示条数' },
{ path: `${pre}charts/ring/demo5`, title: '设置半径' }
]
},
{
path: `${pre}charts/waterfall`,
title: '瀑布图',
children: [
{ path: `${pre}charts/waterfall/demo1`, title: '一般' }
]
},
{
path: `${pre}charts/funnel`,
title: '漏斗图',
children: [
{ path: `${pre}charts/funnel/demo1`, title: '一般' },
{ path: `${pre}charts/funnel/demo2`, title: '金字塔' }
]
},
{
path: `${pre}charts/radar`,
title: '雷达图',
children: [
{ path: `${pre}charts/radar/demo1`, title: '一般' }
]
},
{
path: `${pre}charts/map`,
title: '地图',
children: [
{ path: `${pre}charts/map/demo1`, title: '一般' },
{ path: `${pre}charts/map/demo2`, title: '设置城市' },
{ path: `${pre}charts/map/demo3`, title: '设置样式' }
]
},
{
path: `${pre}charts/sankey`,
title: '桑基图',
children: [
{ path: `${pre}charts/sankey/demo1`, title: '一般' }
]
},
{
path: `${pre}charts/heatmap`,
title: '热力图',
children: [
{ path: `${pre}charts/heatmap/demo1`, title: '一般' },
{ path: `${pre}charts/heatmap/demo2`, title: '地图热力图' }
]
},
{
path: `${pre}charts/scatter`,
title: '散点图',
children: [
{ path: `${pre}charts/scatter/demo1`, title: '单维度多指标' },
{ path: `${pre}charts/scatter/demo2`, title: '双维度多指标' }
]
},
{
path: `${pre}charts/candle`,
title: 'K线图',
children: [
{ path: `${pre}charts/candle/demo1`, title: '一般' },
{ path: `${pre}charts/candle/demo2`, title: 'MA VOL' },
{ path: `${pre}charts/candle/demo3`, title: '自定义' }
]
},
{
path: `${pre}charts/gauge`,
title: '仪表盘',
children: [
{ path: `${pre}charts/gauge/demo1`, title: '一般' }
]
},
{
path: `${pre}charts/tree`,
title: '树图',
children: [
{ path: `${pre}charts/tree/demo1`, title: '径向树图' }
]
}
]
},
{
path: `${pre}import`,
title: '导入',