From c1f49f39590c080868a4ce735d4bd29c946258c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Tue, 2 Feb 2021 15:33:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20plugin-layout=E6=B7=BB=E5=8A=A0foote?= =?UTF-8?q?r=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-layout/src/index.js | 1 + .../fes-plugin-layout/src/runtime/views/BaseLayout.vue | 7 ++++--- packages/fes-template/.fes.js | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/fes-plugin-layout/src/index.js b/packages/fes-plugin-layout/src/index.js index b4e8efcf..8b3eb02d 100644 --- a/packages/fes-plugin-layout/src/index.js +++ b/packages/fes-plugin-layout/src/index.js @@ -33,6 +33,7 @@ export default (api) => { // .fes配置 const userConfig = { title: name, + footer: 'Created by Fes.js', ...(api.config.layout || {}) }; diff --git a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue index 0773a683..df25b5a9 100644 --- a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue +++ b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue @@ -56,8 +56,8 @@ - - Fes.js ©2020 Created by MumbleFe + + {{footer}} @@ -128,7 +128,8 @@ export default { sideWidth: { type: Number, default: 200 - } + }, + footer: String }, setup(props) { const collapsed = ref(false); diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js index bd048ea3..db77aa6f 100644 --- a/packages/fes-template/.fes.js +++ b/packages/fes-template/.fes.js @@ -14,6 +14,7 @@ export default { }, layout: { title: "Fes.js", + footer: 'Created by MumbelFe', multiTabs: false, menus: [{ name: 'index'