From 6eb4bdd0503db688016c3e9fba0ed6a2212c17b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Tue, 5 Jan 2021 16:18:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20layout=E6=94=AF=E6=8C=81multiTabs?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/template/runtime.tpl | 2 +- .../src/views/BaseLayout.vue | 53 ++++++++++++++++--- .../src/plugins/generateFiles/fes/fes.tpl | 6 ++- .../src/plugins/misc/route/index.js | 7 +++ .../plugins/misc/route/template/baseView.vue | 22 ++++++++ packages/fes-template/.fes.js | 1 + packages/fes-template/src/pages/index.vue | 1 + 7 files changed, 83 insertions(+), 9 deletions(-) create mode 100644 packages/fes-preset-built-in/src/plugins/misc/route/template/baseView.vue diff --git a/packages/fes-plugin-layout/src/template/runtime.tpl b/packages/fes-plugin-layout/src/template/runtime.tpl index 6c10339f..da4f8bdf 100644 --- a/packages/fes-plugin-layout/src/template/runtime.tpl +++ b/packages/fes-plugin-layout/src/template/runtime.tpl @@ -15,7 +15,7 @@ export function rootContainer(childComponent, args) { userConfig.menus = fillMenuData(userConfig.menus, routeConfig); return () => { const slots = { - default: () => , + default: () => , userCenter: () => { if(runtimeConfig.userCenter){ return () diff --git a/packages/fes-plugin-layout/src/views/BaseLayout.vue b/packages/fes-plugin-layout/src/views/BaseLayout.vue index 8e180c1f..681e6172 100644 --- a/packages/fes-plugin-layout/src/views/BaseLayout.vue +++ b/packages/fes-plugin-layout/src/views/BaseLayout.vue @@ -1,7 +1,7 @@ diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js index 73b2812f..536849d9 100644 --- a/packages/fes-template/.fes.js +++ b/packages/fes-template/.fes.js @@ -15,6 +15,7 @@ export default { layout: { title: "Fes.js", logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', + multiTabs: true, menus: [{ name: 'index' }, { diff --git a/packages/fes-template/src/pages/index.vue b/packages/fes-template/src/pages/index.vue index d3ac30cb..d04a2acf 100644 --- a/packages/fes-template/src/pages/index.vue +++ b/packages/fes-template/src/pages/index.vue @@ -3,6 +3,7 @@
国际化: {{t("test")}}
fes & 拉夫德鲁
accessOnepicess: {{accessOnepicess}} +