-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(demo): adjust avatar、icon、mask、popup、modal、dialog demo * feat(demo): adjust badge、steps、loading、terms demo * feat(demo): adjust noticebar、popover demo * feat(demo): adjust collapse、list、result demo * feat(demo): adjust tips、searchbar、tag demo * feat(demo): adjust tabs、button demo * feat(demo): 调整表单系列demo * chore(*): merge master * feat(docs): adjust docs style * feat(demo): adjust SwipeActionRef demo Co-authored-by: wyj <wb-wyj631405@antfin.com>
- Loading branch information
Showing
217 changed files
with
2,836 additions
and
3,811 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ | |
"bracketSpacing":true | ||
} | ||
} | ||
] | ||
], | ||
"singleQuote": true | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
page { | ||
background-color: #f5f5f5; | ||
} | ||
.btn-list { | ||
display: flex; | ||
flex-direction: column; | ||
.amd-button { | ||
margin-bottom: 16rpx; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<view class="demo-block {{className}}"> | ||
<view class="demo-block-title"> | ||
{{title}} | ||
</view> | ||
<view class="demo-block-content" style="padding:{{padding}};background:{{background}};"> | ||
<slot/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Component({ | ||
props: { | ||
padding: '24rpx', | ||
background: '#fff', | ||
className: '', | ||
title: '', | ||
}, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"component": true | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.demo-block { | ||
&-title { | ||
padding: 24rpx 16rpx 12rpx; | ||
color: #969696; | ||
font-size: 28rpx; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 +1,27 @@ | ||
<white-space /> | ||
<container title="四种尺寸"> | ||
<view class="demo-avatar-size"> | ||
<view class="demo-avatar-size-container"> | ||
<avatar size="large" /> | ||
<text>large</text> | ||
<view class="demo"> | ||
<demo-block title="基础用法-四种尺寸"> | ||
<view class="demo-list"> | ||
<view class="list-item" a:for="{{basicList}}"> | ||
<avatar size="{{item.size}}" src="{{item.src}}" /> | ||
<view class="size-text"> | ||
{{item.size}} | ||
</view> | ||
</view> | ||
</view> | ||
<view class="demo-avatar-size-container"> | ||
<avatar /> | ||
<text>默认值:medium</text> | ||
</view> | ||
<view class="demo-avatar-size-container"> | ||
<avatar size="small" /> | ||
<text>small</text> | ||
</view> | ||
<view class="demo-avatar-size-container"> | ||
<avatar size="x-small" /> | ||
<text>x-small</text> | ||
</view> | ||
</view> | ||
</container> | ||
</demo-block> | ||
<demo-block title="默认图,不传src时默认展示灰色的内置图片"> | ||
<avatar/> | ||
</demo-block> | ||
<demo-block title="带有name和desc"> | ||
<avatar name="用户名 x-small,desc不显示" desc="摘要信息" size="x-small" src="{{basicList[0].src}}" /> | ||
<white-space /> | ||
<avatar name="用户名 small" desc="摘要信息" size="small" src="{{basicList[1].src}}" /> | ||
<white-space /> | ||
<avatar name="用户名 medium" desc="摘要信息" size="medium" src="{{basicList[2].src}}" /> | ||
<white-space /> | ||
<avatar name="用户名 large" desc="摘要信息" size="large" src="{{basicList[3].src}}" /> | ||
</demo-block> | ||
<demo-block title="仅有 desc 时,name不显示"> | ||
<avatar desc="摘要信息" src="{{basicList[0].src}}" /> | ||
</demo-block> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
Page({}); | ||
const demoAvatarImages = [ | ||
"https://images.unsplash.com/photo-1548532928-b34e3be62fc6?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ", | ||
"https://images.unsplash.com/photo-1493666438817-866a91353ca9?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&s=b616b2c5b373a80ffc9636ba24f7a4a9", | ||
"https://images.unsplash.com/photo-1542624937-8d1e9f53c1b9?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ", | ||
"https://images.unsplash.com/photo-1546967191-fdfb13ed6b1e?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ", | ||
]; | ||
const sizes = ["large", "medium", "small", "x-small"]; | ||
Page({ | ||
data: { | ||
basicList: demoAvatarImages.map((v, i) => ({ | ||
src: v, | ||
size: sizes[i], | ||
})), | ||
}, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.demo-list { | ||
display: flex; | ||
align-items: flex-end; | ||
} | ||
.list-item { | ||
margin-right: 24rpx; | ||
text-align: left; | ||
.size-text { | ||
padding-top: 12rpx; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.