Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(image): update slot demo #1600

Merged
merged 2 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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