Browse Source

上传代码

master
前端-胡立永 10 months ago
parent
commit
a5849a57cf
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      components/base/navbar.vue

+ 9
- 9
components/base/navbar.vue View File

@ -1,6 +1,6 @@
<template> <template>
<view class="navbar"
:style="{backgroundColor : bgColor}">
<!-- <view class="navbar"
:style="{backgroundColor : bgColor}"> -->
<view class="title" <view class="title"
:style="{backgroundColor : bgColor}"> :style="{backgroundColor : bgColor}">
<view class="left"> <view class="left">
@ -34,7 +34,7 @@
</view> </view>
</view> </view>
</view>
<!-- </view> -->
</template> </template>
<script> <script>
@ -81,13 +81,13 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.navbar{
width: 100%;
height: 120rpx;
padding-top: var(--status-bar-height);
}
// .navbar{
// width: 100%;
// height: 120rpx;
// padding-top: var(--status-bar-height);
// }
.title{ .title{
position: fixed;
position: sticky;
top: 0; top: 0;
left: 0; left: 0;
padding-top: calc(var(--status-bar-height) + 20rpx); padding-top: calc(var(--status-bar-height) + 20rpx);


Loading…
Cancel
Save