zhongshujie
6 天以前 bb584963c6abe77c5577cbcad3c9956b69444ae9
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: ""
    },
@@ -36,7 +48,7 @@
  text-wrap: wrap;
  border: 2px solid #3bc6f2;
  background-color: #fff;
  position: absolute;
  position: fixed;
  z-index: 9999;
  box-sizing: border-box;