mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[Improvement] Cell: add custom-style
This commit is contained in:
parent
4f04f8a61f
commit
4b10628d12
@ -23,6 +23,7 @@ Component({
|
|||||||
required: Boolean,
|
required: Boolean,
|
||||||
tapable: Boolean,
|
tapable: Boolean,
|
||||||
titleWidth: String,
|
titleWidth: String,
|
||||||
|
customStyle: String,
|
||||||
arrowDirection: String,
|
arrowDirection: String,
|
||||||
linkType: {
|
linkType: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__right-icon {
|
&__right-icon {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<view
|
<view
|
||||||
class="custom-class van-cell {{ center ? 'van-cell--center' : '' }} {{ required ? 'van-cell--required' : '' }} {{ isLink || tapable ? 'van-cell--tapable' : '' }} {{ border ? 'van-hairline' : '' }}"
|
class="custom-class van-cell {{ center ? 'van-cell--center' : '' }} {{ required ? 'van-cell--required' : '' }} {{ isLink || tapable ? 'van-cell--tapable' : '' }} {{ border ? 'van-hairline' : '' }}"
|
||||||
|
style="{{ customStyle }}"
|
||||||
bind:tap="onTap"
|
bind:tap="onTap"
|
||||||
>
|
>
|
||||||
<van-icon wx:if="{{ icon }}" custom-class="van-cell__left-icon left-icon-class" name="{{ icon }}" />
|
<van-icon wx:if="{{ icon }}" custom-class="van-cell__left-icon left-icon-class" name="{{ icon }}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user