lex před 1 rokem
rodič
revize
eee11c8b48

+ 1 - 1
dev-dist/sw.js

@@ -82,7 +82,7 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.lduvfp1t7ko"
+    "revision": "0.adk7cp4e958"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 15 - 2
src/components/card-preview/index.tsx

@@ -45,7 +45,11 @@ export default defineComponent({
           }}
           preset="card"
           showIcon={false}
-          class={['modalTitle background', styles.cardPreview, item.value.type === 'PPT' && styles.maxCard]}
+          class={[
+            'modalTitle background',
+            styles.cardPreview,
+            item.value.type === 'PPT' && styles.maxCard
+          ]}
           title={item.value.title}
           blockScroll={false}>
           {item.value.type === 'VIDEO' && (
@@ -53,7 +57,16 @@ export default defineComponent({
           )}
           {item.value.type === 'MUSIC' && <MusicModal item={item.value} />}
           {item.value.type === 'SONG' && <SongModal item={item.value} />}
-          {item.value.type === 'PPT' && <iframe class={styles.pptBox} src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(item.value.content)}`} width='100%' height='100%' frameborder='1'></iframe>}  
+          {item.value.type === 'PPT' && (
+            <iframe
+              class={styles.pptBox}
+              src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(
+                item.value.content
+              )}`}
+              width="100%"
+              height="100%"
+              frameborder="1"></iframe>
+          )}
           {!['VIDEO', 'MUSIC', 'SONG', 'PPT'].includes(item.value.type) && (
             <TheEmpty />
           )}

+ 2 - 0
src/components/card-preview/song-modal/index.module.less

@@ -94,6 +94,7 @@
     height: 52px;
     padding: 0;
     background: transparent;
+    cursor: pointer;
 
     &>img {
       width: 100%;
@@ -106,6 +107,7 @@
     width: 31px;
     height: 29px;
     background-color: transparent;
+    cursor: pointer;
 
     &>img {
       width: 100%;

+ 2 - 0
src/components/card-preview/video-modal/index.module.less

@@ -64,6 +64,7 @@
       height: 52px;
       padding: 0;
       background: transparent;
+      cursor: pointer;
 
       &>img {
         width: 100%;
@@ -76,6 +77,7 @@
       width: 31px;
       height: 29px;
       background-color: transparent;
+      cursor: pointer;
 
       &>img {
         width: 100%;

+ 4 - 3
src/components/card-type/index.tsx

@@ -103,7 +103,7 @@ export default defineComponent({
           break;
         case 'PPT':
           typeImg = iconPPT;
-          break;          
+          break;
       }
       return typeImg;
     };
@@ -148,7 +148,8 @@ export default defineComponent({
             props.isShowAdd ? '' : styles.course,
             props.isActive ? styles.isActive : '',
             props.item.exist ? styles.showAddBtn : '' // 是否已添加
-          ]}>
+          ]}
+          style={{ cursor: 'pointer' }}>
           {{
             cover: () => (
               <>
@@ -197,7 +198,7 @@ export default defineComponent({
                     objectFit="cover"
                     src={props.item.coverImg || PageEnum.PPT_DEFAULT_COVER}
                   />
-                )}                
+                )}
               </>
             ),
             footer: () => (

+ 1 - 1
src/components/layout/layoutTop.tsx

@@ -212,7 +212,7 @@ export default defineComponent({
               raw={true}
               v-slots={{
                 trigger: () => (
-                  <div class={styles.mesgWrap}>
+                  <div class={styles.mesgWrap} style={{ cursor: 'pointer' }}>
                     <NImage
                       preview-disabled
                       class={styles.teacherIcon}