mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-22 14:39:16 +08:00
[bugfix] Panel: header-class not work (#831)
This commit is contained in:
parent
40ce5cf61a
commit
c9e89ec594
@ -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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -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" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user