- BasicFrom
- HeaderFrom
- AsideFrom
- FooterFrom
- PreviewFrom
- generatorLayout(config)
// FOR TEST DATA
const CONFIG = {
name: 'CustomLayout',
directory: '',
theme: 'dark',
layout: 'fluid-layout',
header: {
position: 'static',
width: 'full-width',
enabled: true,
},
aside: {
position: 'embed-fixed',
mode: 'vertical',
width: 200,
collapsed: false,
enabled: true,
},
footer: {
position: 'fixed',
width: 'full-width',
enabled: true,
},
};
generatorLayout(CONFIG)
.then(() => {
console.log('生成布局成功');
})
.catch((err) => {
console.log('生成布局失败', err);
});