Skip to content

Commit

Permalink
fix(image): update slot demo (#1600)
Browse files Browse the repository at this point in the history
* fix(image): update slot demo

* test(image): update snapshot
  • Loading branch information
LeeJim authored Feb 16, 2023
1 parent 1e2379d commit 0de13c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/image/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ exports[`Image Image status demo works fine 1`] = `
<t-image
height="72"
id="loading-img-custom"
loading="slot"
loading=""
shape="round"
width="72"
>
Expand Down Expand Up @@ -191,7 +191,7 @@ exports[`Image Image status demo works fine 1`] = `
失败自定义提示
</wx-view>
<t-image
error="slot"
error=""
height="72"
shape="round"
src=""
Expand Down
4 changes: 2 additions & 2 deletions src/image/_example/status/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</view>
<view class="col">
<view class="text">加载自定义提示</view>
<t-image id="loading-img-custom" shape="round" loading="slot" width="72" height="72">
<t-image id="loading-img-custom" shape="round" loading="" width="72" height="72">
<t-loading slot="loading" theme="circular" size="40rpx" loading />
</t-image>
</view>
Expand All @@ -18,7 +18,7 @@
</view>
<view class="col">
<view class="text">失败自定义提示</view>
<t-image src="" shape="round" error="slot" width="72" height="72">
<t-image src="" shape="round" error="" width="72" height="72">
<text class="error-text" slot="error">加载失败</text>
</t-image>
</view>
Expand Down

0 comments on commit 0de13c1

Please sign in to comment.