!180 chore(s-layout): 支持定义顶部导航栏背景颜色

Merge pull request !180 from 背起行囊/master
pull/179/MERGE
芋道源码 2026-05-23 08:59:46 +00:00 committed by Gitee
commit 3a27171cda
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 9 additions and 3 deletions

View File

@ -12,6 +12,7 @@
:color="color"
:tools="tools"
:opacityBgUi="opacityBgUi"
:backgroundColor="navbarBackgroundColor"
@search="(e) => emits('search', e)"
:defaultSearch="defaultSearch"
/>
@ -80,6 +81,11 @@
type: String,
default: 'bg-white',
},
// navbar === 'normal'
navbarBackgroundColor: {
type: String,
default: '',
},
color: {
type: String,
default: '',
@ -213,16 +219,16 @@
// #endif
// 使 onMounted 使 onShow
onMounted(()=>{
onMounted(() => {
// #ifdef MP-ALIPAY
uni.setNavigationBarTitle({
title: "",
title: '',
});
// #endif
if (!isEmpty(shareInfo.value)) {
sheep.$platform.share.updateShareInfo(shareInfo.value);
}
})
});
</script>
<style lang="scss" scoped>