scroll-list-card-kecheng.vue 495 B

12345678910111213141516171819202122
  1. <template>
  2. <view class="scroll-list-card mobile-card-box">
  3. <view>
  4. <img style="width: 100rpx;height: 100rpx;;" :src="data.pic" alt="" />
  5. </view>
  6. <text>{{data.name}}</text>
  7. <view>讲师:{{data.lecturerName ? data.lecturerName:'无讲师'}}</view>
  8. <view>时间:{{data.startTime}}</view>
  9. </view>
  10. </template>
  11. <script setup>
  12. import { toRefs, ref, computed } from "vue";
  13. const props = defineProps({
  14. data: {
  15. type: Object,
  16. },
  17. });
  18. const { data } = toRefs(props);
  19. </script>