Browse Source

update video

yewenwen 5 years ago
parent
commit
c53e9b4d54
2 changed files with 7 additions and 2 deletions
  1. 1 1
      src/packages/video/demo.vue
  2. 6 1
      src/packages/video/video.scss

+ 1 - 1
src/packages/video/demo.vue

@@ -83,6 +83,6 @@ export default {
 
 <style lang="scss" scoped>
 .nut-video{
-    height:200px;
+    height:240px;
 }
 </style>

+ 6 - 1
src/packages/video/video.scss

@@ -5,7 +5,7 @@
     display: flex;
     .nut-videoplayer {
         width: 100%;
-        background: #000;
+        background:#000;
     }
     .playing-mask {
         width: 100%;
@@ -15,6 +15,11 @@
         right: 0;
         bottom: 60px;
     }
+    video{
+        width:100%;
+        height:100%;
+        object-fit:fill;
+    }
     .nut-video-play-btn {
         // display: none;
         width: 80px;