mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Cell arrow (#1343)
This commit is contained in:
parent
f5fc86f182
commit
d43c8c8050
@ -28,7 +28,7 @@
|
||||
</slot>
|
||||
</div>
|
||||
<slot name="right-icon">
|
||||
<icon v-if="isLink" :class="`${b('right-icon')} ${arrowDirection ? b(`arrow--${arrowDirection}`) : ''}`" name="arrow" />
|
||||
<icon v-if="isLink" :class="b('right-icon', arrowDirection)" name="arrow" />
|
||||
</slot>
|
||||
<slot name="extra" />
|
||||
</div>
|
||||
@ -57,11 +57,11 @@ export default create({
|
||||
clickable: Boolean,
|
||||
title: [String, Number],
|
||||
value: [String, Number],
|
||||
arrowDirection: String,
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
arrowDirection: String
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -68,6 +68,16 @@ exports[`renders demo correctly 1`] = `
|
||||
<!---->
|
||||
</i>
|
||||
</div>
|
||||
<div class="van-cell van-cell--clickable van-hairline">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>单元格</span>
|
||||
<!---->
|
||||
</div>
|
||||
<div class="van-cell__value"><span>内容</span></div>
|
||||
<i class="van-icon van-icon-arrow van-cell__right-icon van-cell__right-icon--down" style="color:undefined;">
|
||||
<!---->
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -56,9 +56,7 @@
|
||||
font-size: 12px;
|
||||
line-height: 24px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
&__arrow {
|
||||
&--left::before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user