feat(List): add finished slot

This commit is contained in:
陈嘉涵
2019-12-26 20:14:16 +08:00
committed by neverland
parent 30b3e4b6ba
commit 8a0705d761
5 changed files with 29 additions and 4 deletions
+13
View File
@@ -70,6 +70,19 @@ test('finished', async () => {
expect(wrapper.contains('.van-list__finished-text')).toBeFalsy();
});
test('finished slot', async () => {
const wrapper = mount(List, {
propsData: {
finished: true
},
scopedSlots: {
finished: () => 'Custom Finished'
}
});
expect(wrapper).toMatchSnapshot();
});
test('immediate check false', async () => {
const wrapper = mount(List, {
propsData: {