readPage.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view v-html="book_title" :style="{
  3. fontSize:`${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]*1.5}px`,
  4. lineHeight:`${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
  5. }"></view>
  6. <view class="inner-box">
  7. <view class="book-inner"
  8. v-html="text_content"
  9. :style="{
  10. fontSize: `${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
  11. lineHeight: `${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
  12. }"></view>
  13. <!-- <image src="../../static/logo.png"></image> -->
  14. </view>
  15. </template>
  16. <script setup lang="ts">
  17. import {defineProps, watch} from 'vue'
  18. import { ReadSetting } from '../../stores/readSetting';
  19. import { config } from '../../config/config';
  20. import { log } from '../../framework/log';
  21. let {text_content,book_title} = defineProps(['text_content','book_title'])
  22. let read_setting_data = ReadSetting().getReadSetting()
  23. function showTopLoading(){
  24. }
  25. function showBottomLoading(){
  26. }
  27. defineExpose({ showBottomLoading,showTopLoading });
  28. </script>
  29. <style lang="scss" scoped>
  30. .inner-box {
  31. flex: 1 1 auto;
  32. overflow: hidden;
  33. .book-inner {
  34. text-indent: 2em;
  35. text-align: justify;
  36. }
  37. padding: 5%;
  38. }
  39. </style>