“yu” 2024-07-14 17:16:15 +08:00
parent e685cad683
commit ea3c57f04a
1 changed files with 42 additions and 4 deletions

View File

@ -144,7 +144,14 @@
> >
下发指令 下发指令
</div> </div>
<div v-else></div> <div class="send_box" v-else>
发送中
<div class="loading-dots">
<span>.</span>
<span>.</span>
<span>.</span>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -526,7 +533,7 @@ let send_Status=ref(false);//发送中。。的状态
let btn_sendFlag = ref(false); // let btn_sendFlag = ref(false); //
const haneleprogress = () => { const haneleprogress = () => {
send_Status.value=true// div send_Status.value = true; // div
if (btn_sendFlag.value === false) return; //flag if (btn_sendFlag.value === false) return; //flag
alert(1); alert(1);
btn_sendFlag.value = false; // btn_sendFlag.value = false; //
@ -1270,6 +1277,37 @@ const styleVar = computed(() => {
display: flex; display: flex;
width: changeHeight(550); width: changeHeight(550);
justify-content: space-between; justify-content: space-between;
.loading-dots {
display: inline-block;
font-size: 20px; /* 根据需要调整大小 */
color: #58a7cb; /* 点的颜色 */
}
.loading-dots span {
animation: blink 1s step-start infinite;
}
.loading-dots span:nth-child(1) {
animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
animation-delay: 0.33s;
}
.loading-dots span:nth-child(3) {
animation-delay: 0.66s;
}
@keyframes blink {
0%,
100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
} }
} }