mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[new feature] Toast support position
prop (#244)
* [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed * [bugfix] Optimize component dependency analyze when build style entry * merge * update yarn.lock * update README.md * update README.md * update README.md * update README.md * update README.md * [Doc] add more badges in README.md * update README.md * [bugfix] Address & Contact list style * fix: contact test cases * [bugfix] popup style missing when build style entry * [bugfix] Search: onSearch event arguments missing * [Doc] add demo pages * update zan-doc@0.3.7 * fix: build entry error * [Doc] add goods demo * [bugfix] button primary background color * [Doc] update doc detail * [new feature] Coupon add 'showExchangeBar' prop && add empty style * [new feature] Toast support `position` prop * [new feature] Tabbar add 'info' prop
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
color: #999;
|
||||
color: $gray-dark;
|
||||
margin: 15px 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
|
@@ -10,11 +10,11 @@
|
||||
}
|
||||
|
||||
.van-icon {
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
}
|
||||
.van-icon::before {
|
||||
font-family: "vant-icon" !important;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
|
||||
|
@@ -43,6 +43,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__info {
|
||||
color: #fff;
|
||||
top: -5px;
|
||||
right: -100%;
|
||||
font-size: 12px;
|
||||
transform: scale(.8);
|
||||
box-sizing: border-box;
|
||||
padding: 0 3px;
|
||||
text-align: center;
|
||||
min-width: 18px;
|
||||
line-height: 18px;
|
||||
border-radius: 9px;
|
||||
background-color: $red;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
&--active {
|
||||
color: $blue;
|
||||
}
|
||||
|
@@ -54,6 +54,15 @@
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&--top {
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
&--bottom {
|
||||
top: auto;
|
||||
bottom: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.van-toast-fade-enter, .van-toast-fade-leave-to {
|
||||
|
Reference in New Issue
Block a user