设置页面资源
This commit is contained in:
2025-09-10 18:12:26 +08:00
parent cb2b8e76ea
commit 24c2a946a3
64 changed files with 7534 additions and 1023 deletions
@@ -102,15 +102,19 @@ export class ChatContentsLayout extends Component {
newBubble.node.position = new Vec3(pos.x, initPosY, pos.z);
pendingUpdates++;
newBubble.updateBubbleContent(dialog.content, (actualHeight: number) => {
initPosY += actualHeight + 20;
pendingUpdates--;
newBubble.updateBubbleContent(
dialog.content,
(actualHeight: number) => {
initPosY += actualHeight + 40;
pendingUpdates--;
// 当当前气泡更新完成后,处理下一个
if (pendingUpdates === 0) {
updateNextBubble(index - 1);
}
}, dialog.isLoading || false);
// 当当前气泡更新完成后,处理下一个
if (pendingUpdates === 0) {
updateNextBubble(index - 1);
}
},
dialog.isLoading || false
);
this.bubbles.push(newBubble);
};