feat(Search): add left slot (#5771)

This commit is contained in:
chenjiahan
2020-03-07 09:14:29 +08:00
parent fd6b48873a
commit 32f0446629
5 changed files with 33 additions and 8 deletions
+11 -3
View File
@@ -66,9 +66,17 @@ test('search event', () => {
test('label slot', () => {
const wrapper = mount(Search, {
scopedSlots: {
label() {
return 'Custom Label';
},
label: () => 'Custom Label',
},
});
expect(wrapper).toMatchSnapshot();
});
test('left slot', () => {
const wrapper = mount(Search, {
scopedSlots: {
left: () => 'Custom Left Content',
},
});