Kaynağa Gözat

添加遮罩

lex 1 yıl önce
ebeveyn
işleme
578fe28092

+ 1 - 0
src/views/attend-class/component/video-play.tsx

@@ -248,6 +248,7 @@ export default defineComponent({
           playsinline
           webkit-playsinline
           x5-video-player-type="h5"></video>
+        <div class={styles.videoPop}></div>
 
         <div
           class={[

+ 7 - 0
src/views/attend-class/component/video.module.less

@@ -1,6 +1,12 @@
 .videoWrap {
   width: 100%;
   height: 100%;
+  position: relative;
+
+  .videoPop {
+    position: absolute;
+    inset: 0;
+  }
 
   :global {
 
@@ -30,6 +36,7 @@
     display: flex;
     align-items: center;
     transition: all 0.301s;
+    z-index: 9;
 
     .time {
       display: flex;