优化部分细节(同步更新)
This commit is contained in:
parent
4f87b7178e
commit
925f952748
@ -81,7 +81,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<HentaiSearch :is-querying="isQuerying" @close="closeQueryPanel"></HentaiSearch>
|
<HentaiSearch :is-querying="isQuerying" @close="isQuerying = false"></HentaiSearch>
|
||||||
|
|
||||||
<el-dialog title="修改授权码" v-model="isAlterAuthCode" width="100%">
|
<el-dialog title="修改授权码" v-model="isAlterAuthCode" width="100%">
|
||||||
<el-form>
|
<el-form>
|
||||||
@ -386,9 +386,6 @@ function resetLocalQuery(){
|
|||||||
store.commit("_searchLocalByTag", [''])
|
store.commit("_searchLocalByTag", [''])
|
||||||
param.value = ""
|
param.value = ""
|
||||||
}
|
}
|
||||||
function closeQueryPanel(){
|
|
||||||
isQuerying.value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
//删除任务
|
//删除任务
|
||||||
function deleteGallery(){
|
function deleteGallery(){
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
import {computed, ref, watch} from "vue";
|
import {computed, ref, watch} from "vue";
|
||||||
import store from "../store/index.js";
|
import store from "../store/index.js";
|
||||||
let props = defineProps(['currentGallery', 'isOnlineReading'])
|
let props = defineProps(['currentGallery', 'isOnlineReading'])
|
||||||
|
let emit = defineEmits(['close'])
|
||||||
let isShowUp = ref()
|
let isShowUp = ref()
|
||||||
let onlineReadingScrollbar = ref()
|
let onlineReadingScrollbar = ref()
|
||||||
let links = ref()
|
let links = ref()
|
||||||
@ -32,7 +33,7 @@ function alterPage(){
|
|||||||
|
|
||||||
//跳转到对应页数
|
//跳转到对应页数
|
||||||
function jump(targetIndex){
|
function jump(targetIndex){
|
||||||
links.value = props.currentLinks.slice(targetIndex * lengthPerPage.value, (targetIndex + 1) * lengthPerPage.value)
|
links.value = props.currentGallery.images.slice(targetIndex * lengthPerPage.value, (targetIndex + 1) * lengthPerPage.value)
|
||||||
index.value = targetIndex
|
index.value = targetIndex
|
||||||
temp_index.value = targetIndex + 1
|
temp_index.value = targetIndex + 1
|
||||||
onlineReadingScrollbar.value.setScrollTop(0)
|
onlineReadingScrollbar.value.setScrollTop(0)
|
||||||
@ -40,6 +41,7 @@ function jump(targetIndex){
|
|||||||
|
|
||||||
function closeDialog(){
|
function closeDialog(){
|
||||||
onlineReadingScrollbar.value.setScrollTop(0)
|
onlineReadingScrollbar.value.setScrollTop(0)
|
||||||
|
emit('close')
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -55,7 +57,7 @@ function closeDialog(){
|
|||||||
</template>
|
</template>
|
||||||
<el-scrollbar height="75vh" ref="onlineReadingScrollbar">
|
<el-scrollbar height="75vh" ref="onlineReadingScrollbar">
|
||||||
<el-image v-for="(link, i) in links" :src="link" :style="{'width': 'auto', 'text-align': 'center', 'background-color': 'ghostwhite'}"
|
<el-image v-for="(link, i) in links" :src="link" :style="{'width': 'auto', 'text-align': 'center', 'background-color': 'ghostwhite'}"
|
||||||
:preview-src-list="currentLinks" :initial-index="index * lengthPerPage + i" loading="lazy"/>
|
:preview-src-list="currentGallery.images" :initial-index="index * lengthPerPage + i" loading="lazy"/>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
<!--五页以下-->
|
<!--五页以下-->
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<OnlineReader :current-gallery="currentGallery" :isOnlineReading="isOnlineReading"/>
|
<OnlineReader :current-gallery="currentGallery" :isOnlineReading="isOnlineReading" @close="isOnlineReading = false"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user