h-navbar.vue 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="h-navbar-wrap">
  3. <view class="h-navbar">
  4. <u-icon name="arrow-left" color="#fff" size="38rpx" space="14rpx" :label="title" label-pos="right" label-color="#fff" label-size="34rpx" @click="$navigate.navigateBack"/>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name:"h-navbar",
  11. props: {
  12. title: {
  13. type: String,
  14. default: ''
  15. }
  16. },
  17. data() {
  18. return {
  19. };
  20. }
  21. }
  22. </script>
  23. <style scoped>
  24. .h-navbar-wrap {
  25. position: relative;
  26. width: 100%;
  27. height: 84rpx;
  28. }
  29. .h-navbar {
  30. width: 100%;
  31. height: 84rpx;
  32. padding: 0 0 0 18rpx;
  33. background-color: #3D7CF7;
  34. display: flex;
  35. align-items: center;
  36. position: fixed;
  37. z-index: 999;
  38. }
  39. </style>