zhongshujie
昨天 d11b7bf0ecbf1662ca96c127beda0581ecfd6853
src/components/translateWord/index.vue
@@ -2,10 +2,10 @@
  <div class="translate-box" :style="{ left: pageX + 'px', top: pageY + 'px' }">
    <div class="translate-box-word">
      <div> {{ showWord }}</div>
      <div>111111</div>
      <div>{{ IPA }}</div>
    </div>
    <div class="translate-box-translation">
      111111111111111
      {{ translate }}
    </div>
  </div>
</template>
@@ -14,6 +14,18 @@
export default {
  props: {
    showWord: {
      type: String,
      default: ""
    },
    prototype: {
      type: String,
      default: ""
    },
    IPA: {
      type: String,
      default: ""
    },
    translate: {
      type: String,
      default: ""
    },
@@ -32,11 +44,11 @@
<style lang="less" scoped>
.translate-box {
  max-width: 20%;
  max-width: 50%;
  text-wrap: wrap;
  border: 2px solid #3bc6f2;
  background-color: #fff;
  position: absolute;
  position: fixed;
  z-index: 9999;
  box-sizing: border-box;