Skip to content

Commit 0834d52

Browse files
committed
fix: merge
2 parents e5c6140 + c8574d1 commit 0834d52

File tree

82 files changed

+337
-230
lines changed

Some content is hidden

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

82 files changed

+337
-230
lines changed

.huskyrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "pretty-quick --staged",
4+
"pre-publish": "npm run lint",
5+
"commit-msg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS"
6+
}
7+
}

.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: {

0 commit comments

Comments
 (0)