chore(s-layout): 支持定义顶部导航栏背景颜色
parent
0533985189
commit
014b0dd508
|
|
@ -12,6 +12,7 @@
|
||||||
:color="color"
|
:color="color"
|
||||||
:tools="tools"
|
:tools="tools"
|
||||||
:opacityBgUi="opacityBgUi"
|
:opacityBgUi="opacityBgUi"
|
||||||
|
:backgroundColor="navbarBackgroundColor"
|
||||||
@search="(e) => emits('search', e)"
|
@search="(e) => emits('search', e)"
|
||||||
:defaultSearch="defaultSearch"
|
:defaultSearch="defaultSearch"
|
||||||
/>
|
/>
|
||||||
|
|
@ -80,6 +81,11 @@
|
||||||
type: String,
|
type: String,
|
||||||
default: 'bg-white',
|
default: 'bg-white',
|
||||||
},
|
},
|
||||||
|
// 顶部导航栏背景颜色(仅在 navbar === 'normal' 时生效)
|
||||||
|
navbarBackgroundColor: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|
@ -213,16 +219,16 @@
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// 组件中使用 onMounted 监听页面加载,不是页面组件不使用 onShow
|
// 组件中使用 onMounted 监听页面加载,不是页面组件不使用 onShow
|
||||||
onMounted(()=>{
|
onMounted(() => {
|
||||||
// #ifdef MP-ALIPAY
|
// #ifdef MP-ALIPAY
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: "",
|
title: '',
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
if (!isEmpty(shareInfo.value)) {
|
if (!isEmpty(shareInfo.value)) {
|
||||||
sheep.$platform.share.updateShareInfo(shareInfo.value);
|
sheep.$platform.share.updateShareInfo(shareInfo.value);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue