export default {
type: 'app',
brandName: 'APP 模式',
// logo:
// '',
header: {
type: 'tpl',
inline: false,
className: 'w-full',
tpl:
'
'
},
// footer: '底部区域
',
// asideBefore: '菜单前面区域
',
// asideAfter: '菜单后面区域
',
pages: [
{
label: 'Home',
url: '/',
redirect: '/pageA'
},
{
label: '示例',
children: [
{
label: '页面A',
url: 'pageA',
schema: {
type: 'page',
title: '页面A',
body: '页面A'
},
children: [
{
label: '页面A-1',
url: '1',
schema: {
type: 'page',
title: '页面A-1',
body: '页面A-1'
}
},
{
label: '页面A-2',
url: '2',
schema: {
type: 'page',
title: '页面A-2',
body: '页面A-2'
}
},
{
label: '页面A-3',
url: '3',
schema: {
type: 'page',
title: '页面A-3',
body: '页面A-3'
}
}
]
},
{
label: '页面B',
schema: {
type: 'page',
title: '页面B',
body: '页面B'
}
},
{
label: '页面C',
schema: {
type: 'page',
title: '页面C',
body: '页面C'
}
},
{
label: '表单',
url: '/form',
icon: 'fa fa-plus',
schemaApi: '/api/mock2/service/schema?type=form'
},
{
label: '列表',
url: '/crud/list',
icon: 'fa fa-list',
schemaApi: '/api/mock2/service/schema?type=crud'
}
]
},
{
label: '分组2',
children: [
{
label: '用户管理',
schema: {
type: 'page',
title: '用户管理',
body: '页面C'
}
},
{
label: '外部链接',
link: 'http://baidu.gitee.io/amis'
},
{
label: '部门管理',
schemaApi: '/api/mock2/service/form?tpl=tpl3'
}
]
}
// {
// label: '404',
// visible: false,
// isDefaultPage: true,
// schema: {
// type: 'page',
// body: '自定义 404 页面,可以不配置'
// }
// }
]
};