Skip to content

Commit c4006fb

Browse files
committed
feat: 根据 isSkyline 动态切换加载动画主题
1 parent 29a5844 commit c4006fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/pro-components/chat/attachments/attachments.wxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<view class="file-image {{classPrefix}}__file {{removable ? classPrefix + '__file--removable' : ''}}">
77
<block wx:if="{{item.status==='pending' || item.status==='fail' || item.status==='error'}}">
88
<view class="{{item.status}} {{classPrefix}}__file--{{item.status}}">
9-
<t-loading theme="circular" size="48rpx" />
9+
<t-loading theme="{{isSkyline ? 'spinner' : 'circular'}}" size="48rpx" />
1010
</view>
1111
</block>
1212
<block wx:else>
@@ -31,17 +31,17 @@
3131
<view class="image">
3232
<block wx:if="{{item.status==='pending'}}">
3333
<view class="loading {{classPrefix}}__file--pending">
34-
<t-loading theme="circular" size="48rpx" />
34+
<t-loading theme="{{isSkyline ? 'spinner' : 'circular'}}" size="48rpx" />
3535
</view>
3636
</block>
3737
<block wx:elif="{{item.status==='fail'}}">
3838
<view class="fail {{classPrefix}}__file--fail">
39-
<t-loading theme="circular" size="48rpx" />
39+
<t-loading theme="{{isSkyline ? 'spinner' : 'circular'}}" size="48rpx" />
4040
</view>
4141
</block>
4242
<block wx:elif="{{item.status==='error'}}">
4343
<view class="error {{classPrefix}}__file--error">
44-
<t-loading theme="circular" size="48rpx" />
44+
<t-loading theme="{{isSkyline ? 'spinner' : 'circular'}}" size="48rpx" />
4545
</view>
4646
</block>
4747
<block wx:else>

0 commit comments

Comments
 (0)