scroll-list-card-mes.vue 548 B

123456789101112131415161718192021
  1. <template>
  2. <view class="notice-list-card">
  3. <view class="notice-list-title">
  4. <text v-if="!data.wait" class="notice-list-read">已读</text>
  5. <text v-if="data.wait" class="notice-list-unread">未读</text>
  6. <view class="notice-title">{{data.name}}</view>
  7. </view>
  8. <view class="news-page-word">{{data.createTime}}</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>