-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(image): support aria * test(image): update snap * feat(image): example add aria-label * test(image): update snap
- Loading branch information
1 parent
34d9fcc
commit c1f61eb
Showing
5 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
<view class="tr"> | ||
<view class="col"> | ||
<view class="text">裁切</view> | ||
<t-image src="{{imageSrc}}" mode="aspectFill" width="72" height="72" /> | ||
<t-image src="{{imageSrc}}" mode="aspectFill" width="72" height="72" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
<view class="col"> | ||
<view class="text">适应高</view> | ||
<t-image src="{{imageSrc}}" mode="heightFix" width="72" height="72" /> | ||
<t-image src="{{imageSrc}}" mode="heightFix" width="72" height="72" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
<view class="col"> | ||
<view class="text">拉伸</view> | ||
<t-image src="{{imageSrc}}" width="72" height="72" /> | ||
<t-image src="{{imageSrc}}" width="72" height="72" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
</view> | ||
|
||
<view class="tr"> | ||
<view class="col"> | ||
<view class="text">方形</view> | ||
<t-image src="{{imageSrc}}" mode="aspectFill" width="72" height="72" /> | ||
<t-image src="{{imageSrc}}" mode="aspectFill" width="72" height="72" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
<view class="col"> | ||
<view class="text">圆角方形</view> | ||
<t-image src="{{imageSrc}}" width="72" height="72" shape="round" /> | ||
<t-image src="{{imageSrc}}" width="72" height="72" shape="round" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
<view class="col"> | ||
<view class="text">圆形</view> | ||
<t-image src="{{imageSrc}}" width="72" height="72" shape="circle" /> | ||
<t-image src="{{imageSrc}}" width="72" height="72" shape="circle" aria-label="一个放置在墙角的黄色行李箱" /> | ||
</view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters