WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
2025-03-06 ed12cd465254a6c3dfef2b1045fadae1f3b9b9bb
style:自定义导航-改为绝对定位于顶部,引用时需要显示的设置padding
2 files modified
10 ■■■■■ changed files
layout/navCustomBar/CNavCustomBar.vue 5 ●●●●● patch | view | raw | blame | history
layout/navCustomBar/cNavCustomBar.scss 5 ●●●● patch | view | raw | blame | history
layout/navCustomBar/CNavCustomBar.vue
@@ -94,6 +94,11 @@
        $getStatusBarHeight() {
            return this.statusBarHeight;
        },
        //  使用自定义导航时,需要在主页显示的设置padding的值,此值是导航栏的高度,本导航已经使用固定定位为头部
        $getNavBarHeight() {
            return this.navBarHeight;
        },
    },
};
</script>
layout/navCustomBar/cNavCustomBar.scss
@@ -9,7 +9,10 @@
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    .c-nav-icon {
        position: absolute;
        left: 0px;