Commit 83d8af34 authored by Mac's avatar Mac

1

parent 2c198f3c
<template> <template>
<div class="video-box"> <div class="video-box" :style="{
<video :src="video.url" style="width:100%;height:100%;" :poster="video.pic_url"></video> 'background-image': 'url(' + (video.backgroundimage ? video.backgroundimage : '') + ')', backgroundSize: '100% 100%'
}">
<view class="video-xbox" :style="{
'paddingLeft':video.left+'px',
'paddingRight':video.right+'px',
'paddingTop':video.top+'px',
'paddingBottom':video.bottom+'px',
}">
<video :src="video.url" :style="{'width':'100%','height':'100%','border-radius':video.radius+'px'}" :poster="video.pic_url" :show-fullscreen-btn='video.isfullscreen'></video>
</view>
</div> </div>
</template> </template>
...@@ -16,4 +27,9 @@ export default { ...@@ -16,4 +27,9 @@ export default {
height: 60vw; height: 60vw;
background: #333; background: #333;
} }
.video-xbox{
width: 100%;
height: 100%;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment