فهرست منبع

ppt 预览 组件

黄琪勇 2 روز پیش
والد
کامیت
5038832862

+ 3 - 2
src/views/courseware-play/component/theory/index.module.less

@@ -9,6 +9,7 @@
         border-radius: 8px;
         background: #fff;
         overflow-y: scroll;
+        overflow-x: hidden;
         &::-webkit-scrollbar
         {
             width:4px;
@@ -19,6 +20,6 @@
             min-height: 50px;
             border-radius:10px;
             background-color:#CBCBCB;
-        }         
+        }
     }
-}
+}

+ 2 - 0
src/views/pptResources/index.module.less

@@ -1,4 +1,6 @@
 .pptResources {
   width: 100%;
   height: 100vh;
+  position: relative;
+  overflow: hidden;
 }

+ 9 - 1
src/views/pptResources/index.tsx

@@ -21,8 +21,16 @@ export default defineComponent({
       MUSIC_WIKI: 'wiki',
       THEORY: 'theory'
     };
+    function handleChangeTogge() {
+      window.parent.postMessage(
+        {
+          api: 'changeTogge'
+        },
+        '*'
+      );
+    }
     return () => (
-      <div class={styles.pptResources}>
+      <div class={styles.pptResources} onClick={handleChangeTogge}>
         {['INSTRUMENT', 'MUSICIAN', 'MUSIC_WIKI'].includes(
           queryParams.pptContentType
         ) ? (