From 5c891a8b6f98a580f38535507ca3ab7bf6197550 Mon Sep 17 00:00:00 2001 From: tanyp <742354529@qq.com> Date: Fri, 5 May 2023 10:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/layout/Index.vue | 18 +++++++++++-- .../components/layout/component/TbMenu.vue | 27 ++++++++++++++----- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/tansci-boot-ui/src/components/layout/Index.vue b/tansci-boot-ui/src/components/layout/Index.vue index fc99d17..1a1750f 100644 --- a/tansci-boot-ui/src/components/layout/Index.vue +++ b/tansci-boot-ui/src/components/layout/Index.vue @@ -10,6 +10,7 @@ headerHeight: '52px', asideWidth: '260px', defaultHeight: null, + isCollapse: false, routers: [], }) @@ -40,6 +41,16 @@ state.defaultHeight = window.innerHeight } + function onCollapse(val:Boolean){ + if(val){ + state.isCollapse = false + state.asideWidth = "260px" + } else { + state.isCollapse = true + state.asideWidth = "110px" + } + } +