web端优化数据加载

This commit is contained in:
Xwite
2024-10-15 14:55:40 +08:00
parent 5807dfa0b6
commit 41e2c4f177
21 changed files with 197 additions and 139 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ const subJustify = computed(() =>
)
</script>
<style scoped>
<style lang="scss" scoped>
.books-wrapper {
overflow: auto;
+1 -1
View File
@@ -33,7 +33,7 @@ const catas = computed(() => {
})
</script>
<style scoped>
<style lang="scss" scoped>
.selected {
color: #eb4259;
}
@@ -26,6 +26,7 @@ import type { webReadConfig } from '@/web'
const store = useBookStore()
const readWidth = computed(() => store.config.readWidth)
const bookUrl = computed(() => store.readingBook.bookUrl)
const props = defineProps<{
chapterIndex: number
contents: Array<string>
@@ -116,7 +117,7 @@ onUnmounted(() => {
})
</script>
<style scoped>
<style lang="scss" scoped>
.title {
margin-bottom: 57px;
font:
+1 -1
View File
@@ -92,7 +92,7 @@ const gotoChapter = (chapter: BookChapter) => {
}
</script>
<style scoped>
<style lang="scss" scoped>
.cata-wrapper {
margin: -16px;
padding: 18px 0 24px 25px;
+1 -1
View File
@@ -356,7 +356,7 @@ const setInfiniteLoading = (loading: boolean) => {
}
</script>
<style scoped>
<style lang="scss" scoped>
:deep(.iconfont) {
font-family: iconfont;
font-style: normal;
+1 -1
View File
@@ -60,7 +60,7 @@ const isBookSource = computed(() => {
})
</script>
<style scoped>
<style lang="scss" scoped>
:deep(#debug-text) {
height: calc(100vh - 45px - 36px - 5px);
}
+1 -1
View File
@@ -53,7 +53,7 @@ import { Link } from '@element-plus/icons-vue'
</div>
</template>
<style scoped>
<style lang="scss" scoped>
.el-link {
padding: 4px;
}
+1 -1
View File
@@ -36,7 +36,7 @@ const isSaveError = computed(() => {
return !map.has(sourceUrl.value)
})
</script>
<style scoped>
<style lang="scss" scoped>
:deep(.el-checkbox__label) {
flex: 1;
display: flex;
+1 -1
View File
@@ -34,7 +34,7 @@ watchEffect(async () => {
}
})
</script>
<style scoped>
<style lang="scss" scoped>
:deep(.el-input) {
width: 100%;
}
+1 -1
View File
@@ -143,7 +143,7 @@ const outExport = () => {
}
</script>
<style scoped>
<style lang="scss" scoped>
.tool {
display: flex;
margin: 4px 0;
+1 -1
View File
@@ -309,7 +309,7 @@ onMounted(() => {
})
</script>
<style scoped>
<style lang="scss" scoped>
.flex-space-between {
display: flex;
justify-content: space-between;