File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
apps/miniprogram-agent-ui/miniprogram/components/agent-ui Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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}}">
Original file line number Diff line number Diff line change 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}}
You can’t perform that action at this time.
0 commit comments