index.vue 740 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="back-bar border-bottom">
  3. <div class="arrow-icon">
  4. <i class="el-icon-arrow-left" @click="$router.go(-1)"></i>
  5. </div>
  6. {{title}}
  7. <slot></slot>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'backBar',
  13. props: ['title']
  14. }
  15. </script>
  16. <style lang="scss" scoped>
  17. .back-bar{
  18. height: px2rem(90);
  19. line-height: px2rem(90);
  20. text-align: center;
  21. font-size: px2rem(34);
  22. color: #333333;
  23. position: relative;
  24. background-color: #f2f2f2;
  25. .arrow-icon{
  26. position: absolute;
  27. left: 0;
  28. top: 0;
  29. bottom: 0;
  30. height: px2rem(90);
  31. line-height: px2rem(90);
  32. text-align: center;
  33. width: px2rem(70);
  34. }
  35. i{
  36. color: #333333;
  37. font-size: px2rem(42);
  38. }
  39. }
  40. </style>