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(); this.$forceUpdate();
}, },
}, },
updated(){ updated() {
if(this.autoFormCreate || this.form) { if (this.autoFormCreate || this.form) {
this.form.cleanUpUselessFields(); this.form.cleanUpUselessFields();
} }
}, },

View File

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

View File

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