[new feature] Field: add click event

This commit is contained in:
陈嘉涵
2019-05-31 21:16:38 +08:00
parent a8a18505a6
commit 9a32a4a35d
6 changed files with 21 additions and 2 deletions

View File

@@ -10,6 +10,13 @@ test('input event', () => {
expect(wrapper.emitted('input')[0][0]).toEqual('1');
});
test('click event', () => {
const wrapper = mount(Field);
wrapper.trigger('click');
expect(wrapper.emitted('click')[0][0]).toBeTruthy();
});
test('click icon event', () => {
const wrapper = mount(Field, {
propsData: {