listOne.vue 547 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="video-item-box">
  3. <el-image :src="data[imgKey]" :preview-src-list="[data[imgKey]]" />
  4. <view class="video-mask-box">
  5. <p>{{data.picDate}}</p>
  6. <h5>{{data.title}}</h5>
  7. </view>
  8. </view>
  9. </template>
  10. <script setup>
  11. import {
  12. formatDateToYearMonthDay
  13. } from "@/utils/common.js"
  14. import {
  15. computed
  16. } from "vue"
  17. const props = defineProps({
  18. data: {
  19. type: Object
  20. },
  21. isShowBtn: {
  22. type: Boolean,
  23. default: false,
  24. },
  25. imgKey: {
  26. type: String,
  27. default: 'cover'
  28. }
  29. })
  30. </script>
  31. <style>
  32. </style>