flat: 暂存

This commit is contained in:
史典卓
2025-03-29 11:51:48 +08:00
parent b8ee5e7c17
commit 09d9603f04
101 changed files with 93 additions and 57 deletions

View File

@@ -13,7 +13,7 @@
</view>
</FadeView>
<scroll-view class="chat-list scrollView" :scroll-top="scrollTop" :scroll-y="true" scroll-with-animation>
<FadeView :show="messages.length" :duration="600">
<FadeView :show="messages.length >= 1" :duration="600">
<view class="chat-list list-content">
<view
v-for="(msg, index) in messages"
@@ -22,7 +22,7 @@
class="chat-item"
:class="{ self: msg.self }"
>
<text class="message" v-if="msg.self">
<view class="message" v-if="msg.self">
<view class="msg-filecontent" v-if="msg.files.length">
<view
class="msg-files"
@@ -35,8 +35,8 @@
</view>
</view>
{{ msg.displayText }}
</text>
<text class="message" :class="{ messageNull: !msg.displayText }" v-else>
</view>
<view class="message" :class="{ messageNull: !msg.displayText }" v-else>
<!-- {{ msg.displayText }} -->
<md-render :content="msg.displayText"></md-render>
<!-- guess -->
@@ -59,7 +59,7 @@
</view>
</view>
</view>
</text>
</view>
</view>
<view v-if="isTyping" :class="{ self: true }">
<text class="message msg-loading">
@@ -290,7 +290,7 @@ const scrollToBottom = throttle(function () {
scrollTop.value = scrolldistance;
}
});
}, 100);
}, 500);
} catch (err) {
console.warn(err);
}