mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
perf: dialog loading
This commit is contained in:
parent
55519148f1
commit
5aa31d8068
@ -134,8 +134,8 @@
|
|||||||
@on-error="onError"
|
@on-error="onError"
|
||||||
@on-emoji="onEmoji"
|
@on-emoji="onEmoji"
|
||||||
@on-show-emoji-user="onShowEmojiUser">
|
@on-show-emoji-user="onShowEmojiUser">
|
||||||
<template slot="header">
|
<template #header>
|
||||||
<div v-if="(allMsgs.length === 0 && loadMsg) || prevId > 0" class="dialog-item loading"><Loading type="pure"/></div>
|
<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>
|
<div v-else-if="allMsgs.length === 0" class="dialog-item nothing">{{$L('暂无消息')}}</div>
|
||||||
</template>
|
</template>
|
||||||
</VirtualList>
|
</VirtualList>
|
||||||
|
|||||||
@ -953,15 +953,8 @@
|
|||||||
|
|
||||||
&.loading {
|
&.loading {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
box-sizing: content-box;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.common-pureing {
|
|
||||||
margin: 0;
|
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
border-width: 2px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.nothing {
|
&.nothing {
|
||||||
@ -1474,6 +1467,25 @@
|
|||||||
overflow: hidden !important;
|
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 {
|
body.eeui-app {
|
||||||
.dialog-wrapper {
|
.dialog-wrapper {
|
||||||
.dialog-scroller {
|
.dialog-scroller {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user