mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
perf: dialog loading
This commit is contained in:
parent
55519148f1
commit
5aa31d8068
@ -134,8 +134,8 @@
|
||||
@on-error="onError"
|
||||
@on-emoji="onEmoji"
|
||||
@on-show-emoji-user="onShowEmojiUser">
|
||||
<template slot="header">
|
||||
<div v-if="(allMsgs.length === 0 && loadMsg) || prevId > 0" class="dialog-item loading"><Loading type="pure"/></div>
|
||||
<template #header>
|
||||
<div v-if="(allMsgs.length === 0 && loadMsg) || prevId > 0" class="dialog-item loading"><div class="dialog-wrapper-loading"></div></div>
|
||||
<div v-else-if="allMsgs.length === 0" class="dialog-item nothing">{{$L('暂无消息')}}</div>
|
||||
</template>
|
||||
</VirtualList>
|
||||
|
||||
@ -953,15 +953,8 @@
|
||||
|
||||
&.loading {
|
||||
height: 20px;
|
||||
box-sizing: content-box;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.common-pureing {
|
||||
margin: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-width: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&.nothing {
|
||||
@ -1474,6 +1467,25 @@
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.dialog-wrapper-loading {
|
||||
width: 14px;
|
||||
height: 8px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border-radius: 4px;
|
||||
background: rgba($primary-text-color, 0.2);
|
||||
animation: dialog-loading-animation 0.6s 0.3s ease infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes dialog-loading-animation {
|
||||
0% {
|
||||
width: 14px;
|
||||
}
|
||||
100% {
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
body.eeui-app {
|
||||
.dialog-wrapper {
|
||||
.dialog-scroller {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user