From bb584963c6abe77c5577cbcad3c9956b69444ae9 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 01 七月 2025 17:17:30 +0800 Subject: [PATCH] 无人机样章 --- src/components/translateWord/index.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/translateWord/index.vue b/src/components/translateWord/index.vue index 7958b4e..569e7fd 100644 --- a/src/components/translateWord/index.vue +++ b/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; -- Gitblit v1.9.1