فهرست منبع

网页端视频组件预览查看方式为播放列表时设置最小高度

zq 1 سال پیش
والد
کامیت
be620719ba
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/book/courseware/preview/components/video/VideoPreview.vue

+ 2 - 2
src/views/book/courseware/preview/components/video/VideoPreview.vue

@@ -20,7 +20,7 @@
           direction="vertical"
           :autoplay="false"
           :interval="0"
-          :style="{ width: elementWidth - 248 - 32 + 'px', height: elementHeight + 'px' }"
+          :style="{ width: elementWidth - 248 - 32 + 'px', height: elementHeight <= 0 ? 139 : elementHeight + 'px' }"
         >
           <el-carousel-item v-for="(file, i) in data.file_list" :key="i">
             <VideoPlay
@@ -31,7 +31,7 @@
             />
           </el-carousel-item>
         </el-carousel>
-        <div class="container-box" :style="{ height: elementHeight + 'px' }">
+        <div class="container-box" :style="{ height: elementHeight <= 0 ? 139 : elementHeight + 'px' }">
           <ul
             ref="container"
             class="view-list-bottom"