fix:自定义页面头部添加返回按钮及快捷菜单,s-layout 添加显示返回按钮字段
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user