[new feature] Stepper: add focus event (#2841)

This commit is contained in:
neverland
2019-02-25 19:38:23 +08:00
committed by GitHub
parent 2b9c30f906
commit 8f3dc3f9ca
4 changed files with 14 additions and 0 deletions

View File

@@ -80,6 +80,13 @@ test('only allow interger', () => {
expect(wrapper.emitted('input')).toEqual([[1]]);
});
test('stepper focus', () => {
const wrapper = mount(Stepper);
const input = wrapper.find('input');
input.trigger('focus');
expect(wrapper.emitted('focus')).toBeTruthy();
});
test('stepper blur', () => {
const wrapper = mount(Stepper, {
propsData: {