This commit is contained in:
lik
2026-09-14 09:35:39 +08:00
parent efa0df5a76
commit 9c3e514560
4 changed files with 83 additions and 10 deletions
+11 -1
View File
@@ -15,8 +15,18 @@
</view>
<view class="message-content">
<view class="message-bubble {{item.type}}-bubble">
<!-- subagent 消息:引用卡片样式,默认折叠 -->
<block wx:if="{{item.source === 'subagent'}}">
<view class="subagent-header" data-id="{{item.id}}" bindtap="toggleSubagent">
<text class="subagent-label">思考中...</text>
<text class="subagent-arrow {{expandedIds[item.id] ? 'expanded' : ''}}">▸</text>
</view>
<view class="subagent-body" wx:if="{{expandedIds[item.id]}}">
<t-chat-markdown class="message-markdown" content="{{item.content}}" />
</view>
</block>
<t-chat-markdown
wx:if="{{item.contentType === 'text' && item.type === 'ai'}}"
wx:elif="{{item.contentType === 'text' && item.type === 'ai'}}"
class="message-markdown"
content="{{item.content}}"
/>