Skip to content

Commit 67c3186

Browse files
committed
style: prettier code
1 parent 754c220 commit 67c3186

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

components/form/Form.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ const Form = {
149149
this.$forceUpdate();
150150
},
151151
},
152-
updated(){
153-
if(this.autoFormCreate || this.form) {
152+
updated() {
153+
if (this.autoFormCreate || this.form) {
154154
this.form.cleanUpUselessFields();
155155
}
156156
},

components/form/__tests__/message.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ describe('Form', () => {
3131
const wrapper = mount(Form1, {
3232
sync: false,
3333
});
34-
await asyncExpect(()=>{
34+
await asyncExpect(() => {
3535
myForm.validateFields();
36-
});
36+
});
3737

3838
wrapper.vm.$forceUpdate();
3939
expect(wrapper.html()).toMatchSnapshot();

components/vc-form/demo/dynamic-fields.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,15 @@ const Form4 = {
235235
<h2>situation 4</h2>
236236
{this.useInput
237237
? getFieldDecorator('name', {
238-
initialValue: '',
239-
trigger: 'input',
240-
rules: [
241-
{
242-
required: true,
243-
message: "What's your name 1?",
244-
},
245-
],
246-
})(<input />)
238+
initialValue: '',
239+
trigger: 'input',
240+
rules: [
241+
{
242+
required: true,
243+
message: "What's your name 1?",
244+
},
245+
],
246+
})(<input />)
247247
: getFieldDecorator('name2', {
248248
initialValue: '',
249249
trigger: 'input',

components/vc-form/src/createBaseForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ function createBaseForm(option = {}, mixins = []) {
632632
const formProps = {
633633
[formPropName]: this.getForm(),
634634
};
635-
const {wrappedComponentRef, ...restProps} = getOptionProps(this);
635+
const { wrappedComponentRef, ...restProps } = getOptionProps(this);
636636
const wrappedComponentProps = {
637637
props: mapProps.call(this, {
638638
...formProps,

0 commit comments

Comments
 (0)