Skip to content

Commit a523d7f

Browse files
committed
fix: fix showToolcall icon
1 parent 2ec9c52 commit a523d7f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/collapse/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Component({
1212
showBgColor:{
1313
type: Boolean,
1414
value: false
15+
},
16+
showExpandIcon: {
17+
type: Boolean,
18+
value: true
1519
}
1620
},
1721

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/collapse/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--components/agent-ui/collapsibleCard/index.wxml-->
22
<view class="collapse" style="{{collapsedStatus&&showBgColor?'background-color: #f5f5f5;':''}}">
33
<view class="collapse-header" bind:tap="changeCollapsedStatus">
4-
<image src="../imgs/arrow.svg" mode="aspectFill" style="width: 16px;height: 16px;transform: rotate({{collapsedStatus?360:270}}deg);" />
4+
<image wx:if="{{showExpandIcon}}" src="../imgs/arrow.svg" mode="aspectFill" style="width: 16px;height: 16px;transform: rotate({{collapsedStatus?360:270}}deg);" />
55
<slot name="title"></slot>
66
</view>
77
<block wx:if="{{collapsedStatus}}">

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<view wx:if="{{item.toolCallList && item.toolCallList.length > 0}}">
7272
<block wx:for="{{item.toolCallList}}" wx:for-item="subItem" wx:key="id">
7373
<markdownPreview markdown="{{subItem.content || ''}}"></markdownPreview>
74-
<FoldedCard initStatus="{{false}}" showBgColor="{{false}}">
74+
<FoldedCard showExpandIcon="{{showToolCallDetail}}" initStatus="{{false}}" showBgColor="{{false}}">
7575
<view slot="title" style="opacity: 0.7;font-size: 14px; display: flex; align-items: center; gap: 8px;">
7676
<block>
7777
调用工具 {{subItem.name}}

0 commit comments

Comments
 (0)