readPage.js 1.4 KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const stores_readSetting = require("../../stores/readSetting.js");
  4. const config_config = require("../../config/config.js");
  5. require("../../data/data.js");
  6. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  7. __name: "readPage",
  8. props: ["text_content"],
  9. setup(__props, { expose }) {
  10. let read_setting_data = stores_readSetting.ReadSetting().getReadSetting();
  11. function showTopLoading() {
  12. }
  13. function showBottomLoading() {
  14. }
  15. expose({ showBottomLoading, showTopLoading });
  16. return (_ctx, _cache) => {
  17. return {
  18. a: __props.text_content,
  19. b: `${common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex]}px`,
  20. c: `${common_vendor.unref(config_config.config).read_config.lineHeight * common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex]}px`,
  21. d: `${common_vendor.unref(config_config.config).read_config.colorList[common_vendor.unref(read_setting_data).colorBgIndex]}`
  22. };
  23. };
  24. }
  25. });
  26. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2dec9c91"], ["__file", "/Users/future/Desktop/项目/uni-xs/xs-app/components/read/readPage.vue"]]);
  27. tt.createComponent(Component);