fix:自定义页面头部添加返回按钮及快捷菜单,s-layout 添加显示返回按钮字段

This commit is contained in:
kele
2023-02-07 15:51:37 +08:00
parent 2a206115ac
commit 504c052364
3 changed files with 90 additions and 2 deletions
+7 -1
View File
@@ -20,6 +20,7 @@
<s-custom-navbar
v-else-if="navbar === 'custom' && navbarMode === 'normal'"
:data="navbarStyle"
:showLeftButton="showLeftButton"
/>
<view class="page-body" :style="[bgBody]">
<!-- 沉浸式头部 -->
@@ -30,7 +31,7 @@
></view>
<!-- 装修组件导航栏-沉浸式 -->
<s-custom-navbar v-if="navbar === 'custom' && navbarMode === 'inner'" :data="navbarStyle" />
<s-custom-navbar v-if="navbar === 'custom' && navbarMode === 'inner'" :data="navbarStyle" :showLeftButton="showLeftButton" />
<!-- 页面内容插槽 -->
<slot />
@@ -134,6 +135,11 @@
type: Boolean,
default: false,
},
//展示返回按钮
showLeftButton: {
type: Boolean,
default: false,
},
});
const emits = defineEmits(['search']);