feat(Search): add left slot (#5771)
This commit is contained in:
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user