style: prettier code

pull/422/head
tangjinzhou 2019-01-15 09:41:07 +08:00
parent 754c220eab
commit 67c31867d2
4 changed files with 14 additions and 14 deletions

View File

@ -149,8 +149,8 @@ const Form = {
this.$forceUpdate();
},
},
updated(){
if(this.autoFormCreate || this.form) {
updated() {
if (this.autoFormCreate || this.form) {
this.form.cleanUpUselessFields();
}
},

View File

@ -31,7 +31,7 @@ describe('Form', () => {
const wrapper = mount(Form1, {
sync: false,
});
await asyncExpect(()=>{
await asyncExpect(() => {
myForm.validateFields();
});

View File

@ -632,7 +632,7 @@ function createBaseForm(option = {}, mixins = []) {
const formProps = {
[formPropName]: this.getForm(),
};
const {wrappedComponentRef, ...restProps} = getOptionProps(this);
const { wrappedComponentRef, ...restProps } = getOptionProps(this);
const wrappedComponentProps = {
props: mapProps.call(this, {
...formProps,