zhongshujie
12 小时以前 30d147c4c92dbfd5ca1b2f8c24a617dc82d2d25b
src/books/childHealth/view/index.vue
@@ -1,12 +1,5 @@
<template>
  <div
    class="temp-book"
    @mouseup="handleMouseUp"
    :style="{
      fontSize: fontSize ? fontSize + 'px' : '16px',
      transform: `scale(${pageZoom ? pageZoom : 1})`
    }"
  >
  <div class="temp-book" @mouseup="handleMouseUp">
    <pageContent></pageContent>
  </div>
</template>
@@ -15,19 +8,12 @@
import pageContent from "./content/index.vue";
export default {
  components: {
    pageContent
    pageContent,
  },
  data() {
    return {};
  },
  computed: {
    fontSize() {
      return this.$store.state.qiankun.fontSize;
    },
    pageZoom() {
      return this.$store.state.qiankun.scale / 100;
    }
  },
  mounted() {},
  methods: {
    getParentWithClass(element, className) {
@@ -38,6 +24,7 @@
        }
      }
    },
    handleMouseUp(e) {
      const selection = (
        this.container ? this.container : window
@@ -64,7 +51,7 @@
              txt,
              page,
              x: e.x,
              y: e.y
              y: e.y,
            });
          }
        }
@@ -75,12 +62,12 @@
            txt: "",
            page: "",
            x: e.x,
            y: e.y
            y: e.y,
          });
        }
      }
    }
  }
    },
  },
};
</script>