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,
|
||||
tapable: Boolean,
|
||||
titleWidth: String,
|
||||
customStyle: String,
|
||||
arrowDirection: String,
|
||||
linkType: {
|
||||
type: String,
|
||||
|
@ -44,6 +44,7 @@
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
margin-right: 5px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
&__right-icon {
|
||||
|
@ -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 }}" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user