feat(Card): allow use bottom slot without price or num (#5116)
This commit is contained in:
@@ -4,9 +4,7 @@ exports[`render bottom slot 1`] = `
|
||||
<div class="van-card">
|
||||
<div class="van-card__header">
|
||||
<div class="van-card__content">
|
||||
<div class="van-card__bottom">
|
||||
<div class="van-card__price">¥ 100</div>Custom Bottom
|
||||
</div>
|
||||
<div class="van-card__bottom">Custom Bottom</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -65,9 +65,6 @@ test('render origin-price slot', () => {
|
||||
|
||||
test('render bottom slot', () => {
|
||||
const wrapper = mount(Card, {
|
||||
propsData: {
|
||||
price: 100
|
||||
},
|
||||
scopedSlots: {
|
||||
bottom: () => 'Custom Bottom'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user