s-video-block.vue 600 B

123456789101112131415161718192021222324252627282930313233
  1. <!-- 装修图文组件:视频播放 -->
  2. <template>
  3. <su-video
  4. class="sss"
  5. :uid="guid()"
  6. :src="sheep.$url.cdn(data.videoUrl)"
  7. :poster="sheep.$url.cdn(data.posterUrl)"
  8. :height="styles.height * 2"
  9. :autoplay="data.autoplay"
  10. ></su-video>
  11. </template>
  12. <script setup>
  13. import sheep from '@/sheep';
  14. import { guid } from '@/sheep/helper';
  15. const props = defineProps({
  16. data: {
  17. type: Object,
  18. default() {},
  19. },
  20. styles: {
  21. type: Object,
  22. default() {},
  23. },
  24. });
  25. </script>
  26. <style lang="scss" scoped>
  27. .sss {
  28. z-index: -100;
  29. }
  30. </style>