|
|
- <template>
- <view class="navbar bx">
- <div class="leftClick"
- v-if="leftClick"
- @click="leftClick();$play()">
- <uni-icons color="#000" type="left" size="30rpx"></uni-icons>
- </div>
- <div>{{ title }}</div>
- </view>
- </template>
-
- <script>
- export default {
- name:"m-navbar",
- props : ['leftClick', 'title'],
- data() {
- return {
-
- };
- },
- methods : {
- }
- }
- </script>
-
- <style scoped lang="scss">
- .navbar{
- position: sticky;
- top: 0;
- width: 100%;
- height: 90rpx;
- // background: linear-gradient(to right, #4899a6, #6fc6ad);
- background: #fff;
- border-bottom: 1px solid #ccc;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #000;
- font-size: 26rpx;
- z-index: 9999;
- .leftClick{
- position: absolute;
- left: 0px;
- top: 0;
- width: 80rpx;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- }
- .navbar-b{
- height: 90rpx;
- }
- </style>
|