|
@@ -46,7 +46,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ppt-editor-wrap ppt-page-wrap" v-loading="isChartLoading" :element-loading-text="chartLoadingText">
|
|
<div class="ppt-editor-wrap ppt-page-wrap" v-loading="isChartLoading" :element-loading-text="chartLoadingText">
|
|
- <div class="ppt-editor" ref="pptEditor" @paste="handlePasteOutSide">
|
|
|
|
|
|
+ <div class="ppt-editor" id="pptEditor" ref="pptEditor" @paste="handlePasteOutSide">
|
|
<!-- 显示全部ppt -->
|
|
<!-- 显示全部ppt -->
|
|
<template v-if="pageList.length">
|
|
<template v-if="pageList.length">
|
|
<!-- <transition-group name="flip-list"> -->
|
|
<!-- <transition-group name="flip-list"> -->
|
|
@@ -54,13 +54,13 @@
|
|
<AddFormat @addPage="addPage($event,index)" :chooseModalId="chooseModalId"/>
|
|
<AddFormat @addPage="addPage($event,index)" :chooseModalId="chooseModalId"/>
|
|
<div class="ppt-item" :class="{'choose':currentItem.id===item.id}"
|
|
<div class="ppt-item" :class="{'choose':currentItem.id===item.id}"
|
|
v-loading="item.isUpdating" :element-loading-text="$t('Slides.updating_chart_loading')"
|
|
v-loading="item.isUpdating" :element-loading-text="$t('Slides.updating_chart_loading')"
|
|
- @click.stop="changeCurrentItem(item)">
|
|
|
|
|
|
+ @click="changeCurrentItem(item)">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
<!-- <div class="title-wrap" style="background-color: #999999;">
|
|
<!-- <div class="title-wrap" style="background-color: #999999;">
|
|
<input type="text" placeholder="单击输入标题" v-model="item.title"/>
|
|
<input type="text" placeholder="单击输入标题" v-model="item.title"/>
|
|
</div> -->
|
|
</div> -->
|
|
<!-- 自定义标题 -->
|
|
<!-- 自定义标题 -->
|
|
- <div
|
|
|
|
|
|
+ <div @click.stop
|
|
:class="[
|
|
:class="[
|
|
'ppt-editor-title',
|
|
'ppt-editor-title',
|
|
'custom-title-wrap',
|
|
'custom-title-wrap',
|
|
@@ -812,9 +812,17 @@ export default {
|
|
})
|
|
})
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
let height = $('.ppt-editor-item')[0].offsetHeight
|
|
let height = $('.ppt-editor-item')[0].offsetHeight
|
|
|
|
+ const index = this.currentIndex
|
|
//pptEditor的滚动条动画
|
|
//pptEditor的滚动条动画
|
|
- this.$refs.pptEditor.scrollTo({
|
|
|
|
- top:height*this.currentIndex,
|
|
|
|
|
|
+ /* this.$refs.pptEditor.scrollTo({
|
|
|
|
+ top:height*index,
|
|
|
|
+ left:0,
|
|
|
|
+ behavior: 'smooth'
|
|
|
|
+ }) */
|
|
|
|
+ const pptEditorDom = document.getElementById('pptEditor')
|
|
|
|
+ console.log('开始滑动')
|
|
|
|
+ pptEditorDom.scrollTo({
|
|
|
|
+ top:height*index,
|
|
left:0,
|
|
left:0,
|
|
behavior: 'smooth'
|
|
behavior: 'smooth'
|
|
})
|
|
})
|