allRight.vue 634 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="all" @click="$emit('toDetail')"> <text :class="withdrawal?'all-right':''">{{name}}</text>
  3. <image class="right" src="../../../static/mine/right.png" mode="" ></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. props: {
  9. name: {
  10. type: String,
  11. default: '全部'
  12. },
  13. withdrawal:{
  14. type:Boolean,
  15. default:false
  16. }
  17. },
  18. data(){
  19. return{
  20. }
  21. }
  22. }
  23. </script>
  24. <style lang="scss">
  25. .all {
  26. color: #333;
  27. font-size: 12px;
  28. display: flex;
  29. align-items: center;
  30. .right {
  31. width: 10px;
  32. height: 10px;
  33. }
  34. .all-right{
  35. color: #222;
  36. font-size: 28rpx;
  37. }
  38. }
  39. </style>