centaline-data-driven-v3 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- 头部 -->
|
|
4
4
|
<div class="header">
|
|
5
5
|
<div class="header-item">
|
|
6
|
-
<img class="ico-button" :src="util.getAssetsImage('AIChat.png')" @click="hideAI()">
|
|
6
|
+
<img class="ico-button avatar-img" :src="util.getAssetsImage('AIChat.png')" @click="hideAI()">
|
|
7
7
|
</div>
|
|
8
8
|
<div class="header-item" v-if="model.controlLabel">
|
|
9
9
|
<h3 style="line-height: 35px;">
|
|
@@ -239,10 +239,15 @@ const addMessage = (message) => {
|
|
|
239
239
|
}
|
|
240
240
|
// 添加消息通用方法
|
|
241
241
|
const appendMessage = (message) => {
|
|
242
|
+
|
|
242
243
|
if (!isStopped) {
|
|
243
244
|
model.value.messages[model.value.messages.length - 1].content = model.value.messages[model.value.messages.length - 1].content + message;
|
|
244
245
|
scheduleScroll()
|
|
245
246
|
}
|
|
247
|
+
if (afoot) {
|
|
248
|
+
afoot.value = false;
|
|
249
|
+
}
|
|
250
|
+
|
|
246
251
|
}
|
|
247
252
|
|
|
248
253
|
const UpdateMessageType = (type) => {
|
|
@@ -423,7 +428,6 @@ const fetchAIResponse = async (params) => {
|
|
|
423
428
|
} else {
|
|
424
429
|
startTypingEffect(outtext.value);
|
|
425
430
|
}
|
|
426
|
-
afoot.value = false;
|
|
427
431
|
}).catch(error => {
|
|
428
432
|
UpdateMessageType('error');
|
|
429
433
|
if (error.name === 'AbortError') {
|
|
@@ -900,4 +904,26 @@ function rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex, fl
|
|
|
900
904
|
transform: rotate(360deg);
|
|
901
905
|
}
|
|
902
906
|
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
.avatar-img {
|
|
910
|
+
animation: bounce 0.5s infinite ease-in-out;
|
|
911
|
+
/* 使用ease-in-out让动画更平滑 */
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
@keyframes bounce {
|
|
915
|
+
0% {
|
|
916
|
+
transform: translateY(0);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
50% {
|
|
920
|
+
transform: translateY(-5px);
|
|
921
|
+
/* 中间位置向上移动10像素 */
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
100% {
|
|
925
|
+
transform: translateY(0);
|
|
926
|
+
/* 回到初始位置 */
|
|
927
|
+
}
|
|
928
|
+
}
|
|
903
929
|
</style>
|