diff --git a/components/avatar/index.en-US.md b/components/avatar/index.en-US.md index 263f14354082d8b8af093269268baa359aeb67f9..7a08346079adbfe0ae39e1a07890edd58aee6307 100644 --- a/components/avatar/index.en-US.md +++ b/components/avatar/index.en-US.md @@ -16,4 +16,4 @@ Avatars can be used to represent people or objects. It supports images, `Icon`s, | src | the address of the image for an image avatar | string | - | | srcSet | a list of sources to use for different screen resolutions | string | - | | alt | This attribute defines the alternative text describing the image | string | - | -| onError | handler when img load error,return false to prevent default fallback behavior | () => boolean | - | +| onError | handler when img load error, return false to prevent default fallback behavior | () => boolean | - | diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 82b54d97842c373c68882e9fbf682293a1428325..259877fbbe3cf9aeb75a3edda7bad444eeaf0b91 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -152,7 +152,7 @@ To mark the returned fields data in `mapPropsToFields`, [demo](#components-form- ### this.props.form.getFieldDecorator(id, options) -After wrapped by `getFieldDecorator`, `value`(or other property defined by `valuePropName`) `onChange`(or other property defined by `trigger`) props will be added to form controls,the flow of form data will be handled by Form which will cause: +After wrapped by `getFieldDecorator`, `value`(or other property defined by `valuePropName`) `onChange`(or other property defined by `trigger`) props will be added to form controls, the flow of form data will be handled by Form which will cause: 1. You shouldn't use `onChange` to collect data, but you still can listen to `onChange`(and so on) events. 2. You cannot set value of form control via `value` `defaultValue` prop, and you should set default value with `initialValue` in `getFieldDecorator` instead. diff --git a/components/input/demo/size.md b/components/input/demo/size.md index f9b2fe04cc5da64986e54edfe93d042b30712f82..40a4822e2b15bbd16ea34f0d820365ceb73005bd 100644 --- a/components/input/demo/size.md +++ b/components/input/demo/size.md @@ -11,7 +11,7 @@ title: ## en-US -There are three sizes of an Input box: `large` (40px)、`default` (32px) and `small` (24px). +There are three sizes of an Input box: `large` (40px), `default` (32px) and `small` (24px). ````jsx import { Input } from 'antd'; diff --git a/components/layout/index.en-US.md b/components/layout/index.en-US.md index b10bc6aa8e54dd77c09c6502ddeacaaef25eb901..f2aefaf4430ec58ffae5dc4e0713b5be3811653f 100644 --- a/components/layout/index.en-US.md +++ b/components/layout/index.en-US.md @@ -43,7 +43,7 @@ The first level navigation is inclined left near a logo, and the secondary menu - **Enlarge the size of the font** - `12px`、`14px` is a standard font size of navigations,`14px` is used for the first and the second level of the navigation. You can choose an appropriate font size regarding the level of your navigation. + `12px`, `14px` is a standard font size of navigations, `14px` is used for the first and the second level of the navigation. You can choose an appropriate font size regarding the level of your navigation. ## Component Overview diff --git a/components/mention/index.en-US.md b/components/mention/index.en-US.md index e9718506f6f7322c2101ce70d8f61a894c637f8c..1f2c4c3482728d53632022e3fc80dab98bb554fd 100644 --- a/components/mention/index.en-US.md +++ b/components/mention/index.en-US.md @@ -64,4 +64,4 @@ When need to mention someone or something. | Property | Description | Type | Default | | -------- | ----------- | ---- | ------- | | children | suggestion content | object | {} | -| value | value of suggestion,the value will insert into input filed while selected | string | "" | +| value | value of suggestion, the value will insert into input filed while selected | string | "" | diff --git a/components/slider/index.en-US.md b/components/slider/index.en-US.md index 439dc3e49f01bdad7b2c4f9a69ff0599e048511e..29d8fb50ff307ffcfe94b03e935fad06d64dd8aa 100644 --- a/components/slider/index.en-US.md +++ b/components/slider/index.en-US.md @@ -18,8 +18,8 @@ To input a value in a range. | defaultValue | The default value of slider. When `range` is `false`, use `number`, otherwise, use `[number, number]` | number\|number\[] | 0 or \[0, 0] | | disabled | If true, the slider will not be interactable. | boolean | false | | dots | Whether the thumb can drag over tick only. | boolean | false | -| included | Make effect when `marks` not null,`true` means containment and `false` means coordinative | boolean | true | -| marks | Tick mark of Slider, type of key must be `number`, and must in closed interval \[min, max] ,each mark can declare its own style. | object | { number: string\|ReactNode } or { number: { style: object, label: string\|ReactNode } } | +| included | Make effect when `marks` not null, `true` means containment and `false` means coordinative | boolean | true | +| marks | Tick mark of Slider, type of key must be `number`, and must in closed interval \[min, max], each mark can declare its own style. | object | { number: string\|ReactNode } or { number: { style: object, label: string\|ReactNode } } | | max | The maximum value the slider can slide to | number | 100 | | min | The minimum value the slider can slide to. | number | 0 | | range | dual thumb mode | boolean | false | diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 4e3bd26fe198c6ee29163635c6d94c358735f3a9..e88aecdc34f4abf491abe331eb8834f02ddfba50 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -113,7 +113,7 @@ One of the Table `columns` prop for describing the table's columns, Column has t | align | specify how content is aligned | 'left' \| 'right' \| 'center' | 'left' | | className | className of this column | string | - | | colSpan | Span of this column's title | number | | -| dataIndex | Display field of the data record, could be set like `a.b.c`、`a[0].b.c[1]` | string | - | +| dataIndex | Display field of the data record, could be set like `a.b.c`, `a[0].b.c[1]` | string | - | | defaultSortOrder | Default order of sorted values | 'ascend' \| 'descend' | - | | filterDropdown | Customized filter overlay | ReactNode | - | | filterDropdownVisible | Whether `filterDropdown` is visible | boolean | - | diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index 1ac8664679b1c48d613a014ac32a762a8cd1603a..57da5659622c251ea82730cdccb4fe601e4fa8ab 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -57,7 +57,7 @@ When uploading state change, it returns: ```js { - uid: 'uid', // unique identifier,negative is recommend,to prevent interference with internal generated id + uid: 'uid', // unique identifier, negative is recommend, to prevent interference with internal generated id name: 'xx.png' // file name status: 'done', // options:uploading, done, error, removed response: '{"status": "success"}', // response from server diff --git a/docs/react/customize-theme.en-US.md b/docs/react/customize-theme.en-US.md index 9ba17275808a8e1432831d57ba4088c64fe34ae9..169db390a1a81cc3281af5c9a3e142d93e061a83 100644 --- a/docs/react/customize-theme.en-US.md +++ b/docs/react/customize-theme.en-US.md @@ -69,7 +69,7 @@ Note that do not exclude antd package in node_modules when using less-loader. ### Customize in roadhog or Umi -You can easily use `theme` field in [.webpackrc](https://github.com/ant-design/ant-design-pro/blob/b7e7983661eb5e53dc807452e9653e93e74276d4/.webpackrc.js#L18) (roadhog) or [config/config.js](https://github.com/ant-design/ant-design-pro/blob/56e648ec14bdb9f6724169fd64830447e224ccb1/config/config.js#L45) (Umi) file of your project root directory if you are using [roadhog](https://github.com/sorrycc/roadhog) or [Umi](http://umijs.org/),which could be a object or a javascript file path. +You can easily use `theme` field in [.webpackrc](https://github.com/ant-design/ant-design-pro/blob/b7e7983661eb5e53dc807452e9653e93e74276d4/.webpackrc.js#L18) (roadhog) or [config/config.js](https://github.com/ant-design/ant-design-pro/blob/56e648ec14bdb9f6724169fd64830447e224ccb1/config/config.js#L45) (Umi) file of your project root directory if you are using [roadhog](https://github.com/sorrycc/roadhog) or [Umi](http://umijs.org/), which could be a object or a javascript file path. ```js "theme": { diff --git a/docs/react/introduce.en-US.md b/docs/react/introduce.en-US.md index 60767ed33418a7d5d947520836ed99e8ff7241f9..05f4e67a28bf8e19f1523f1b8f9febe8bbdbbdd4 100644 --- a/docs/react/introduce.en-US.md +++ b/docs/react/introduce.en-US.md @@ -48,7 +48,7 @@ You can subscribe to this feed for new version notifications: https://github.com ### Using npm or yarn -**We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling. +**We recommend using npm or yarn to install**, it not only makes development easier, but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling. ```bash $ npm install antd --save @@ -58,7 +58,7 @@ $ npm install antd --save $ yarn add antd ``` -If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm). +If you are in a bad network environment, you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm). ### Import in Browser diff --git a/docs/spec/contrast.en-US.md b/docs/spec/contrast.en-US.md index a5071a02a4b6eaca6ea69293d8abaa210bda87f9..e89c36097ad4adad14ae953c5e6cd3bc3a230b80 100644 --- a/docs/spec/contrast.en-US.md +++ b/docs/spec/contrast.en-US.md @@ -15,7 +15,7 @@ Contrast is one of the effective ways to add visual interest to your page, and t good example bad example -In order to help user make a quick operation (something like the form,modal), a more important operation or a operation with higher frequency would be emphasized. +In order to help user make a quick operation (something like the form, modal), a more important operation or a operation with higher frequency would be emphasized. > Notes: ways of emphasizing are not just to intensify the key item. It could also weaken the other items. diff --git a/docs/spec/direct.en-US.md b/docs/spec/direct.en-US.md index 2be20429e1fc3f313ea84e6f32d2724c9df70fa9..3fa540496151bb01766cf1224a7e4c026ffb4449 100644 --- a/docs/spec/direct.en-US.md +++ b/docs/spec/direct.en-US.md @@ -29,7 +29,7 @@ If the priority is given to 『readability』 and the 『editability』 of opera Multi-Field Inline Edit ->Note:In『Multi-Field Inline Edit』,there are huge different between the content and required field,So it is more needed to use the [『Explain What Just Happened』](../docs/spec/transition#解释刚刚发生了什么) in 『Use Transition』to eliminate this visual effects. +>Note:In『Multi-Field Inline Edit』, there are huge different between the content and required field, So it is more needed to use the [『Explain What Just Happened』](../docs/spec/transition#解释刚刚发生了什么) in 『Use Transition』to eliminate this visual effects.
@@ -38,7 +38,7 @@ Multi-Field Inline Edit ## Drag and Drop -Example of Drag and Drop List +Example of Drag and Drop List Drag and Drop List diff --git a/docs/spec/icon.en-US.md b/docs/spec/icon.en-US.md index 0298483586e3633c4fcff87a6c6879d82044f659..8d0486204401af82c78dc869251bf3cc18fb731d 100644 --- a/docs/spec/icon.en-US.md +++ b/docs/spec/icon.en-US.md @@ -81,7 +81,7 @@ For example, icons inline with 12pt font should be 12px in size with 8px of spac ### Color - + The color of the icon should be consistent the color of the surrounding copy, unless the icon is being used to express state (in which case it should be colored accordingly). diff --git a/docs/spec/layout.en-US.md b/docs/spec/layout.en-US.md index 09ded955885bd7367a9dd0b4c00d0aef4fc2f7cf..c1040f1ca246f367989ac286a7fd38920a812756 100644 --- a/docs/spec/layout.en-US.md +++ b/docs/spec/layout.en-US.md @@ -54,7 +54,7 @@ Ant Design's designers keep the following 4 things in mind in the communication 1. Clear definition of dynamic layout area 2. Try to always use even numbers -3. Delivery of critical numbers (Gutter、Column) +3. Delivery of critical numbers (Gutter, Column) 4. Always use beginning column and ending column to define blocks. ## Common Scales diff --git a/docs/spec/proximity.en-US.md b/docs/spec/proximity.en-US.md index 3ad16f40f72ee83339befc7fc206f18b78a6e957..01740cdabab97e84ca8f14d5bb4eec44487caea1 100644 --- a/docs/spec/proximity.en-US.md +++ b/docs/spec/proximity.en-US.md @@ -20,7 +20,7 @@ Divide the hierarchy of information through three formats:『small spacing』, In the case that the three formats are applicable, the hierarchy of information can be separated clearly through adding or cutting down the multiple of 『basic spacing』, or adding elements. -> Note: in Ant Design, y=8+8*n, among which,n>=0,y stands for the vertical spacing and 8 represents 『basic spacing』. +> Note: in Ant Design, y = 8 + 8 * n, among which, n >= 0, y stands for the vertical spacing and 8 represents 『basic spacing』. --- diff --git a/docs/spec/proximity.zh-CN.md b/docs/spec/proximity.zh-CN.md index 69f162d1ce84d7e3a21cbaa7f94b30630da46cb9..2fb401328002675dd4bdd68bdbc0dfb4c29d369f 100644 --- a/docs/spec/proximity.zh-CN.md +++ b/docs/spec/proximity.zh-CN.md @@ -20,7 +20,7 @@ title: 亲密性 在这三种规格不适用的情况下,可以通过加减『基础间距』的倍数,或者增加元素来拉开信息层次。 -> 注:在 Ant Design 中,`y=8+8*n`。其中,`n>=0`,y 是纵向间距,8 是『基础间距』。 +> 注:在 Ant Design 中,`y = 8 + 8 * n`。其中,`n >= 0`,y 是纵向间距,8 是『基础间距』。 --- diff --git a/docs/spec/repetition.en-US.md b/docs/spec/repetition.en-US.md index a9025c2e42530240cdf0b2e4d56ad9f093ec297d..5c3fd4a063f2a47c0a8622e18bc6349d8795b113 100644 --- a/docs/spec/repetition.en-US.md +++ b/docs/spec/repetition.en-US.md @@ -16,4 +16,4 @@ The same elements keep repeating in the whole interface, which not only could lo Example of repetitive of formats -The repetitive element may be a thick rule(line), a wireframe, color, design elements, particular format, spatial relationships, etc. +The repetitive element may be a thick rule(line), a wireframe, color, design elements, particular format, spatial relationships, etc. diff --git a/docs/spec/stay.en-US.md b/docs/spec/stay.en-US.md index 776fb43ac26f40623e99a49a855de0aaab54e000..92ee13d5cadfd0ace8a65840ab874238e639f360 100644 --- a/docs/spec/stay.en-US.md +++ b/docs/spec/stay.en-US.md @@ -6,7 +6,7 @@ title: Stay on the Page Solve most of problems on the same page and avoid a new one, because the page refresh and forwarding can lead to change blindness, in addition to disrupting the user’s mental flow. -> ** Change Blindness** is a surprising perceptual phenomenon that occurs when a change in a visual stimulus is introduced and the observer does not notice it. People's poor ability to detect changes has been argued to reflect fundamental limitations of human attention,from the term of Change blindness, Wikipedia. +> ** Change Blindness** is a surprising perceptual phenomenon that occurs when a change in a visual stimulus is introduced and the observer does not notice it. People's poor ability to detect changes has been argued to reflect fundamental limitations of human attention, from the term of Change blindness, Wikipedia. > ** Flow**, also known as the zone, is the mental state of operation in which a person performing an activity is fully immersed in a feeling of energized focus, full involvement, and enjoyment in the process of the activity, from the term of Flow, Wikipedia