|
@@ -68,7 +68,7 @@ export default {
|
|
|
data: getVideoData(),
|
|
|
curVideoIndex: 0,
|
|
|
elementWidth: 0,
|
|
|
- elementHeight: 139,
|
|
|
+ elementHeight: 0,
|
|
|
viewTopBottomBtn: false,
|
|
|
fileLen: 0,
|
|
|
translateY: 0,
|
|
@@ -92,6 +92,10 @@ export default {
|
|
|
this.elementHeight = ele.clientHeight;
|
|
|
}
|
|
|
|
|
|
+ if (ele.clientHeight <= 0) {
|
|
|
+ this.elementHeight = this.data.minHeight;
|
|
|
+ }
|
|
|
+
|
|
|
const mainEle = this.$refs.videoArea;
|
|
|
// 检查元素是否包含已知的类名
|
|
|
mainEle.classList.forEach((className) => {
|