mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Tab: card type incorrect style (#742)
This commit is contained in:
parent
4cbefd361a
commit
ed3221747f
@ -29,6 +29,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__scroll--card {
|
||||||
|
border: 1px solid @red;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
&__nav {
|
&__nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@ -40,10 +45,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--card {
|
&--card {
|
||||||
margin: 0 15px;
|
|
||||||
border-radius: 2px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border: 1px solid @red;
|
|
||||||
height: @van-tabs-card-height;
|
height: @van-tabs-card-height;
|
||||||
|
|
||||||
.van-tab {
|
.van-tab {
|
||||||
@ -83,6 +84,7 @@
|
|||||||
|
|
||||||
&--card {
|
&--card {
|
||||||
padding-top: @van-tabs-card-height;
|
padding-top: @van-tabs-card-height;
|
||||||
|
margin: 0 15px;
|
||||||
|
|
||||||
.van-tabs__wrap {
|
.van-tabs__wrap {
|
||||||
height: @van-tabs-card-height;
|
height: @van-tabs-card-height;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
scroll-x="{{ scrollable }}"
|
scroll-x="{{ scrollable }}"
|
||||||
scroll-with-animation
|
scroll-with-animation
|
||||||
scroll-left="{{ scrollLeft }}"
|
scroll-left="{{ scrollLeft }}"
|
||||||
|
class="van-tabs__scroll--{{ type }}"
|
||||||
>
|
>
|
||||||
<view class="van-tabs__nav van-tabs__nav--{{ type }}" style="{{ color ? 'border-color: ' + color : '' }}">
|
<view class="van-tabs__nav van-tabs__nav--{{ type }}" style="{{ color ? 'border-color: ' + color : '' }}">
|
||||||
<view wx:if="{{ type === 'line' }}" class="van-tabs__line" style="{{ lineStyle }}" />
|
<view wx:if="{{ type === 'line' }}" class="van-tabs__line" style="{{ lineStyle }}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user