feat(Collapse): 新增外部样式类 title-class @rex-zsd (#1271)

This commit is contained in:
rex 2019-02-01 07:38:43 +08:00 committed by neverland
parent 1949fa03a2
commit 13e00d9de3
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { VantComponent } from '../common/component';
VantComponent({
classes: ['content-class'],
classes: ['title-class', 'content-class'],
relation: {
name: 'collapse',

View File

@ -3,6 +3,7 @@
<view class="van-collapse-item van-hairline--top custom-class">
<van-cell
title="{{ title }}"
title-class="title-class"
icon="{{ icon }}"
is-link="{{ isLink }}"
value="{{ value }}"