[bugfix] Panel: header-class not work (#831)

This commit is contained in:
neverland 2018-10-30 20:00:52 +08:00 committed by GitHub
parent 40ce5cf61a
commit c9e89ec594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,13 +1,12 @@
import { VantComponent } from '../common/component'; import { VantComponent } from '../common/component';
VantComponent({ VantComponent({
classes: ['footer-class'], classes: ['header-class', 'footer-class'],
props: { props: {
desc: String, desc: String,
title: String, title: String,
status: String, status: String,
headerClass: String,
useFooterSlot: Boolean useFooterSlot: Boolean
} }
}); });

View File

@ -4,7 +4,7 @@
title="{{ title }}" title="{{ title }}"
label="{{ desc }}" label="{{ desc }}"
value="{{ status }}" value="{{ status }}"
custom-class="{{ headerClass }}" custom-class="header-class"
value-class="van-panel__header-value" value-class="van-panel__header-value"
/> />
<slot wx:else name="header" /> <slot wx:else name="header" />