style: prettier code
parent
754c220eab
commit
67c31867d2
|
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue