beelink/src/components/VideoPlay.vue

34 lines
577 B
Vue
Raw Normal View History

2020-09-29 01:26:52 +00:00
<template>
<div class="video">
2020-10-14 08:27:24 +00:00
<video :src="url" :controls="true"></video>
2020-09-29 01:26:52 +00:00
</div>
</template>
<style lang="scss" scoped>
.video{
width: 976px;
height: 563px;
border-radius: 17px;
2020-10-14 08:27:24 +00:00
background: white;
// background-color: #0f0;
2020-09-29 07:56:33 +00:00
overflow: hidden;
2020-09-29 01:26:52 +00:00
>video{
width: 100%;
height: 100%;
}
}
</style>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
2020-10-14 08:27:24 +00:00
props:{
url:{
type:String
}
},
2020-09-29 01:26:52 +00:00
setup(){
console.log(1)
}
})
</script>