fix(Field): formatter not work when v-model changed (#6490)

This commit is contained in:
neverland
2020-06-08 20:41:19 +08:00
committed by GitHub
parent 9adbfcb26c
commit 1035503d65
2 changed files with 24 additions and 17 deletions
+1 -3
View File
@@ -289,11 +289,9 @@ test('formatter prop', () => {
},
});
const input = wrapper.find('input');
input.trigger('input');
expect(wrapper.emitted('input')[0][0]).toEqual('abc');
const input = wrapper.find('input');
input.element.value = '123efg';
input.trigger('input');
expect(wrapper.emitted('input')[1][0]).toEqual('efg');