zyejMAll-mobile/sheep/components/s-video-block/s-video-block.vue
2024-08-07 10:31:42 +08:00

33 lines
598 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 装修图文组件视频播放 -->
<template>
<su-video
class="sss"
:uid="guid()"
:src="sheep.$url.cdn(data.videoUrl)"
:poster="sheep.$url.cdn(data.posterUrl)"
:height="styles.height * 2"
:autoplay="data.autoplay"
></su-video>
</template>
<script setup>
import sheep from '@/sheep';
import { guid } from '@/sheep/helper';
const props = defineProps({
data: {
type: Object,
default() {},
},
styles: {
type: Object,
default() {},
},
});
</script>
<style lang="scss" scoped>
.sss {
z-index: -100;
}
</style>