[bugfix] Icon: assets spelling (#1465)

This commit is contained in:
neverland
2018-07-11 21:01:07 +08:00
committed by GitHub
parent 91f45ac61b
commit b53b6c2be0
4 changed files with 4 additions and 6 deletions
+2
View File
@@ -162,9 +162,11 @@ export default create({
event.preventDefault();
}
}
if (this.type === 'search' && event.keyCode === 13) {
this.blur();
}
this.$emit('keypress', event);
},
+1 -5
View File
@@ -32,11 +32,7 @@ test('function call', done => {
triggerDrag(swipe, 0, 0);
expect(wrapper.querySelectorAll('img').length).toEqual(1);
Vue.nextTick(() => {
expect(wrapper.style.display).toEqual('none');
done();
});
done();
});
});