Explorar el Código

禁止图片拖拽,防止拖拽进富文本编辑器

cxmo hace 1 año
padre
commit
e10e304c15

+ 1 - 1
src/views/ppt_manage/newVersion/components/editor/InsertCharts.vue

@@ -40,7 +40,7 @@
           En
         </div>
         <p>{{ item.ChartName }}</p>
-        <img :src="item.ChartImage" alt="" />
+        <img :src="item.ChartImage" alt="" style="-webkit-user-drag:none;"/>
       </div>
     </div>
     <div v-if="list.length == 0" class="empty-box">无数据</div>

+ 1 - 1
src/views/ppt_manage/newVersion/components/editor/InsertSemantics.vue

@@ -12,7 +12,7 @@
 		<div class="list" v-infinite-scroll="load" v-if="list.length>0">
             <div class="item" v-for="item in list" :key="item.SaCompareId" @click="handleClickItem(item)">
                 <p>{{ item.Title }}</p>
-                <img :src="item.PicUrl" alt="">
+                <img :src="item.PicUrl" alt="" style="-webkit-user-drag:none;">
             </div>
 		</div>
         <div v-if="list.length==0" class="empty-box">

+ 3 - 3
src/views/ppt_manage/newVersion/pptEditor.vue

@@ -137,7 +137,7 @@
                     <template v-if="chartList.length">
                     <div v-for="(item, index) in chartList" :key="index" @click="chooseChart(item,'chart')" class="chart-item" :style="item.Disabled && 'cursor: not-allowed;'">
                         <p class="chart_tit">{{ item.ChartName }}</p>
-                        <img :src="item.ChartImage" ref="insert_img" />
+                        <img :src="item.ChartImage" ref="insert_img" style="-webkit-user-drag:none;"/>
                     </div>
                     </template>
                     <tableNoData text="暂无数据" size="mini" v-else/>
@@ -151,7 +151,7 @@
                   <template v-if="sandTableList.length">
                     <div v-for="(item,index) in sandTableList" :key="index" class="sandTable-item" >
                       <p class="chart_tit">{{item.Name}}</p>
-                      <img :src="item.PicUrl" style="width:100%"  @click="chooseChart(item,'sandImage')"/>
+                      <img :src="item.PicUrl" style="width:100%;-webkit-user-drag:none;"  @click="chooseChart(item,'sandImage')"/>
                       <p class="source-identification">来源:弘则研究</p>
                     </div>
                     <div v-loading = "sandTableLoading" class="loaded-text">{{loadedText}}</div>
@@ -167,7 +167,7 @@
                   <template v-if="sheetSearchList.length">
                     <div v-for="(item,index) in sheetSearchList" :key="index" class="sandTable-item" >
                       <p class="chart_tit">{{item.ExcelName}}</p>
-                      <img :src="item.ExcelImage" style="width:100%;object-fit: contain;height: 250px"  @click="chooseChart(item,'sheet')"/>
+                      <img :src="item.ExcelImage" style="width:100%;object-fit: contain;height: 250px;-webkit-user-drag:none;"  @click="chooseChart(item,'sheet')"/>
                     </div>
                   </template>
                   <tableNoData text="暂无数据" size="mini" v-else/>