UserInfoRowItem.vue 821 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view @click="click" class="row_item" :class="{ arrow_right: arrow }">
  3. <view class="title">
  4. <text>{{ lable }}</text>
  5. </view>
  6. <view class="content">
  7. <text>{{ content }}</text>
  8. </view>
  9. <slot>
  10. <u-icon v-if="arrow" name="arrow-right" color="#999" size="20"></u-icon>
  11. </slot>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name: "",
  17. components: {},
  18. props: {
  19. lable: String,
  20. content: String,
  21. arrow: {
  22. type: Boolean,
  23. default: false,
  24. },
  25. },
  26. data() {
  27. return {};
  28. },
  29. methods: {
  30. click() {
  31. this.$emit("click");
  32. },
  33. },
  34. };
  35. </script>
  36. <style lang="scss" scoped>
  37. .row_item {
  38. @include vCenterBox();
  39. padding: 24rpx 44rpx;
  40. }
  41. .title {
  42. margin-right: 24rpx;
  43. }
  44. .arrow_right {
  45. justify-content: space-between;
  46. }
  47. </style>