feat: plugin-layout添加footer配置

This commit is contained in:
万纯 2021-02-02 15:33:15 +08:00
parent e441e96f6f
commit c1f49f3959
3 changed files with 6 additions and 3 deletions

View File

@ -33,6 +33,7 @@ export default (api) => {
// .fes配置
const userConfig = {
title: name,
footer: 'Created by Fes.js',
...(api.config.layout || {})
};

View File

@ -56,8 +56,8 @@
<MultiTabProvider v-if="multiTabs" />
<router-view v-else></router-view>
</a-layout-content>
<a-layout-footer class="layout-footer">
Fes.js ©2020 Created by MumbleFe
<a-layout-footer v-if="footer" class="layout-footer">
{{footer}}
</a-layout-footer>
</a-layout>
</a-layout>
@ -128,7 +128,8 @@ export default {
sideWidth: {
type: Number,
default: 200
}
},
footer: String
},
setup(props) {
const collapsed = ref(false);

View File

@ -14,6 +14,7 @@ export default {
},
layout: {
title: "Fes.js",
footer: 'Created by MumbelFe',
multiTabs: false,
menus: [{
name: 'index'