[Improvement] Cell: add custom-style

This commit is contained in:
陈嘉涵 2018-08-07 14:55:57 +08:00
parent 4f04f8a61f
commit 4b10628d12
3 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Component({
required: Boolean,
tapable: Boolean,
titleWidth: String,
customStyle: String,
arrowDirection: String,
linkType: {
type: String,

View File

@ -44,6 +44,7 @@
font-size: 16px;
line-height: 24px;
margin-right: 5px;
vertical-align:middle;
}
&__right-icon {

View File

@ -1,5 +1,6 @@
<view
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"
>
<van-icon wx:if="{{ icon }}" custom-class="van-cell__left-icon left-icon-class" name="{{ icon }}" />