Commit 29eeda26 authored by liujiangnan's avatar liujiangnan

feat: 去掉翻页动画

parent 49492fb2
...@@ -33,24 +33,22 @@ ...@@ -33,24 +33,22 @@
<!-- 主要内容 --> <!-- 主要内容 -->
<div class="main-content" v-else> <div class="main-content" v-else>
<div class="page-container"> <div class="page-container">
<transition :name="pageTransition"> <div class="full-image-wrapper" :key="currentPage">
<div class="full-image-wrapper" :key="currentPage"> <img ref="mainImg" :src="pages[currentPage].image_url" :alt="'Page ' + pages[currentPage].page" v-if="pages.length" class="full-image"/>
<img ref="mainImg" :src="pages[currentPage].image_url" :alt="'Page ' + pages[currentPage].page" v-if="pages.length" class="full-image"/> <template v-if="currentRects && isRectVisible">
<template v-if="currentRects && isRectVisible"> <div v-for="(rect, idx) in currentRects" :key="idx" class="rect-layer rect-visible" :style="getRectStyle(rect)"></div>
<div v-for="(rect, idx) in currentRects" :key="idx" class="rect-layer rect-visible" :style="getRectStyle(rect)"></div> </template>
</template> <!-- 单词级别矩形高亮 -->
<!-- 单词级别矩形高亮 --> <template v-if="highlightedWordRects && isRectVisible">
<template v-if="highlightedWordRects && isRectVisible"> <div
<div v-for="(wordRect, idx) in highlightedWordRects"
v-for="(wordRect, idx) in highlightedWordRects" :key="'word-' + idx"
:key="'word-' + idx" class="word-rect-layer"
class="word-rect-layer" :style="getWordRectStyle(wordRect)"
:style="getWordRectStyle(wordRect)" :title="wordRect.text"
:title="wordRect.text" ></div>
></div> </template>
</template> </div>
</div>
</transition>
</div> </div>
<div class="subtitle-bar" v-if="currentAudioText"> <div class="subtitle-bar" v-if="currentAudioText">
<div class="subtitle-text"> <div class="subtitle-text">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment