arrow-bar.vue 566 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="arrow-bar">
  3. <text class="title">{{ title }}</text>
  4. <uni-icons class="arrow" type="right" size="16"></uni-icons>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "arrow-bar",
  10. props: {
  11. title: {
  12. type: String,
  13. required: true
  14. }
  15. },
  16. }
  17. </script>
  18. <style lang="scss" scoped>
  19. .arrow-bar {
  20. width: 100%;
  21. height: 90rpx;
  22. font-size: 30rpx;
  23. color: black;
  24. margin-top: 5rpx;
  25. background-color: white;
  26. line-height: 90rpx;
  27. display: flex;
  28. .title {
  29. flex: 1;
  30. margin-left: 40rpx;
  31. }
  32. .arrow {
  33. margin-right: 40rpx;
  34. }
  35. }
  36. </style>