1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view v-html="book_title" :style="{
- fontSize:`${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]*1.5}px`,
- lineHeight:`${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
- }"></view>
- <view class="inner-box">
- <view class="book-inner"
- v-html="text_content"
- :style="{
- fontSize: `${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
- lineHeight: `${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
- }"></view>
- <!-- <image src="../../static/logo.png"></image> -->
- </view>
-
- </template>
-
- <script setup lang="ts">
- import {defineProps, watch} from 'vue'
- import { ReadSetting } from '../../stores/readSetting';
- import { config } from '../../config/config';
- import { log } from '../../framework/log';
-
- let {text_content,book_title} = defineProps(['text_content','book_title'])
-
- let read_setting_data = ReadSetting().getReadSetting()
-
- function showTopLoading(){
- }
-
- function showBottomLoading(){
-
- }
- defineExpose({ showBottomLoading,showTopLoading });
- </script>
- <style lang="scss" scoped>
- .inner-box {
- flex: 1 1 auto;
- overflow: hidden;
- .book-inner {
- text-indent: 2em;
- text-align: justify;
- }
- padding: 5%;
- }
- </style>
|