Skip to content

Commit d756173

Browse files
committed
style: format code
1 parent d038b90 commit d756173

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+128
-99
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ components/style/color/*.less
2424
.gitattributes
2525
.stylelintrc
2626
.vcmrc
27+
.logo
28+
.npmrc.template
29+
.huskyrc

components/checkbox/__tests__/group.test.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ describe('CheckboxGroup', () => {
4040
it('does not trigger onChange callback of both Checkbox and CheckboxGroup when CheckboxGroup is disabled', () => {
4141
const onChangeGroup = jest.fn();
4242

43-
const options = [{ label: 'Apple', value: 'Apple' }, { label: 'Pear', value: 'Pear' }];
43+
const options = [
44+
{ label: 'Apple', value: 'Apple' },
45+
{ label: 'Pear', value: 'Pear' },
46+
];
4447

4548
const groupWrapper = mount(
4649
{
@@ -95,7 +98,10 @@ describe('CheckboxGroup', () => {
9598
});
9699

97100
it('passes prefixCls down to checkbox', () => {
98-
const options = [{ label: 'Apple', value: 'Apple' }, { label: 'Orange', value: 'Orange' }];
101+
const options = [
102+
{ label: 'Apple', value: 'Apple' },
103+
{ label: 'Orange', value: 'Orange' },
104+
];
99105

100106
const wrapper = mount({
101107
render() {
@@ -106,7 +112,10 @@ describe('CheckboxGroup', () => {
106112
expect(wrapper.html()).toMatchSnapshot();
107113
});
108114
it('should be controlled by value', async () => {
109-
const options = [{ label: 'Apple', value: 'Apple' }, { label: 'Orange', value: 'Orange' }];
115+
const options = [
116+
{ label: 'Apple', value: 'Apple' },
117+
{ label: 'Orange', value: 'Orange' },
118+
];
110119

111120
const wrapper = mount(Checkbox.Group, {
112121
propsData: { options },

components/date-picker/__tests__/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable import/prefer-default-export */
21
export function $$(className) {
32
return document.body.querySelectorAll(className);
43
}

components/date-picker/demo/disabled-date.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Disabled part of dates and time by `disabledDate` and `disabledTime` respectivel
2424
:disabledDate="disabledDate"
2525
:disabledTime="disabledRangeTime"
2626
:showTime="{
27-
hideDisabledOptions: true,
27+
hideDisabledOptions: true,
2828
defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('11:59:59', 'HH:mm:ss')]
2929
}"
3030
format="YYYY-MM-DD HH:mm:ss"

components/drawer/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const Drawer = {
162162
return (
163163
<div
164164
class={`${prefixCls}-wrapper-body`}
165-
style={{...containerStyle, ...wrapStyle}}
165+
style={{ ...containerStyle, ...wrapStyle }}
166166
onTransitionend={this.onDestroyTransitionEnd}
167167
>
168168
{this.renderHeader(prefixCls)}

components/form/FormItem.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export default {
9696
const { help, validateStatus } = this.$props;
9797
warning(
9898
this.getControls(this.slotDefault, true).length <= 1 ||
99-
(help !== undefined || validateStatus !== undefined),
99+
help !== undefined ||
100+
validateStatus !== undefined,
100101
'`Form.Item` cannot generate `validateStatus` and `help` automatically, ' +
101102
'while there are more than one `getFieldDecorator` in it.',
102103
);

components/form/demo/validate-other.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ Demonstration of validation configuration for form controls which are not shown
99
</us>
1010

1111
<template>
12-
<a-form id="components-form-demo-validate-other" :form="form" v-bind="formItemLayout" @submit="handleSubmit">
12+
<a-form
13+
id="components-form-demo-validate-other"
14+
:form="form"
15+
v-bind="formItemLayout"
16+
@submit="handleSubmit"
17+
>
1318
<a-form-item label="Plain Text">
1419
<span class="ant-form-text">
1520
China

components/locale-provider/__tests__/index.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react/no-multi-comp */
21
import { mount } from '@vue/test-utils';
32
import Vue from 'vue';
43
import moment from 'moment';

components/radio/__tests__/group.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ describe('Radio', () => {
218218
});
219219

220220
it('passes prefixCls down to radio', () => {
221-
const options = [{ label: 'Apple', value: 'Apple' }, { label: 'Orange', value: 'Orange' }];
221+
const options = [
222+
{ label: 'Apple', value: 'Apple' },
223+
{ label: 'Orange', value: 'Orange' },
224+
];
222225

223226
const wrapper = mount(RadioGroup, {
224227
propsData: {

components/table/__tests__/Table.filter.test.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ describe('Table.filter', () => {
2121
{
2222
text: 'Title',
2323
value: 'title',
24-
children: [{ text: 'Designer', value: 'designer' }, { text: 'Coder', value: 'coder' }],
24+
children: [
25+
{ text: 'Designer', value: 'designer' },
26+
{ text: 'Coder', value: 'coder' },
27+
],
2528
},
2629
],
2730
onFilter: filterFn,
@@ -358,7 +361,10 @@ describe('Table.filter', () => {
358361
title="name"
359362
dataIndex="name"
360363
key="name"
361-
filters={[{ text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }]}
364+
filters={[
365+
{ text: 'Jack', value: 'Jack' },
366+
{ text: 'Lucy', value: 'Lucy' },
367+
]}
362368
filteredValue={this.filters.name}
363369
onFilter={filterFn}
364370
/>
@@ -399,7 +405,10 @@ describe('Table.filter', () => {
399405
title: 'Name',
400406
dataIndex: 'name',
401407
key: 'name',
402-
filters: [{ text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }],
408+
filters: [
409+
{ text: 'Jack', value: 'Jack' },
410+
{ text: 'Lucy', value: 'Lucy' },
411+
],
403412
onFilter: filterFn,
404413
filteredValue: ['Jack'],
405414
},

0 commit comments

Comments
 (0)