瀏覽代碼

富文本中图片视频锁宽度

zhaoxiaohai 3 年之前
父節點
當前提交
c83e2079d7
共有 1 個文件被更改,包括 9 次插入10 次删除
  1. 9 10
      src/SManagement/archives_ad/components/detail.vue

+ 9 - 10
src/SManagement/archives_ad/components/detail.vue

@@ -15,11 +15,9 @@
       </div>
     </div>
     <div class="file2">
-      <div class="file-item" v-for="(item,index) in currentSelectFile.attinfos" :key="index">
-        <file-item :itemStyle="itemStyle" 
-                   :fileData="[item]"
-                   :isDownLoad="true"
-                   @updateDownLoadRecord="updateDownLoadRecord">
+      <div class="file-item" v-for="(item, index) in currentSelectFile.attinfos" :key="index">
+        <file-item :itemStyle="itemStyle" :fileData="[item]" :isDownLoad="true"
+          @updateDownLoadRecord="updateDownLoadRecord">
         </file-item>
       </div>
     </div>
@@ -77,11 +75,11 @@ export default {
           "sat_sharematerialid": this.currentSelectFile.sat_sharematerialid
         }
       })
-      if(res.code != 1) {
+      if (res.code != 1) {
         this.$notify({
-          title:'提示',
-          message:'下载更新记录失败',
-          type:'warning'
+          title: '提示',
+          message: '下载更新记录失败',
+          type: 'warning'
         })
       }
     }
@@ -94,7 +92,8 @@ export default {
   box-sizing: border-box;
 }
 
-/deep/video{
+/deep/video,
+/deep/img {
   width: 100% !important;
 }