[new feature] Search: add left-icon prop

This commit is contained in:
陈嘉涵
2019-05-27 10:39:27 +08:00
parent 73f34be3a8
commit ac431276f9
5 changed files with 33 additions and 2 deletions
+10
View File
@@ -74,3 +74,13 @@ test('render label slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('left-icon prop', () => {
const wrapper = mount(Search, {
propsData: {
leftIcon: 'setting-o'
}
});
expect(wrapper).toMatchSnapshot();
});