diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index d43e663c70..d033dedf7b 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -84,8 +84,7 @@ If the form has been decorated by `Form.create` then it has `this.props.form` pr | isFieldTouched | Check whether a field is touched by `getFieldDecorator`'s `options.trigger` event | (name: string) => boolean | | isFieldValidating | Check if the specified field is being validated. | Function(name) | | resetFields | Reset the specified fields' value(to `initialValue`) and status. If you don't specify a parameter, all the fields will be reset. | Function(\[names: string\[]]) | -| setFields | Set the value and error of a field. [Code Sample](https://github.com/react-component/form/blob/3b9959b57ab30b41d8890ff30c79a7e7c383cad3/examples/server-validate.js#L74-L79) | Function({ [fieldName]: { value: any, errors: [Error] } }) | -| setFields | Set value and error state of fields | ({
  \[fieldName\]: {value: any, errors: \[Error\] }
}) => void | +| setFields | Set value and error state of fields. [Code Sample](https://github.com/react-component/form/blob/3b9959b57ab30b41d8890ff30c79a7e7c383cad3/examples/server-validate.js#L74-L79) | ({
  \[fieldName\]: {value: any, errors: \[Error\] }
}) => void | | setFieldsValue | Set the value of a field. (Note: please don't use it in `componentWillReceiveProps`, otherwise, it will cause an endless loop, [reason](https://github.com/ant-design/ant-design/issues/2985)) | ({ \[fieldName\]: value }) => void | | validateFields | Validate the specified fields and get theirs values and errors. If you don't specify the parameter of fieldNames, you will validate all fields. | (
  \[fieldNames: string\[]],
  \[options: object\],
  callback(errors, values)
) => void | | validateFieldsAndScroll | This function is similar to `validateFields`, but after validation, if the target field is not in visible area of form, form will be automatically scrolled to the target field area. | same as `validateFields` | diff --git a/components/layout/index.en-US.md b/components/layout/index.en-US.md index 4471498318..b10bc6aa8e 100644 --- a/components/layout/index.en-US.md +++ b/components/layout/index.en-US.md @@ -90,7 +90,7 @@ The sidebar. | breakpoint | [breakpoints](/components/grid#api) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | className | container className | string | - | | collapsed | to set the current status | boolean | - | -| collapsedWidth | width of the collapsed sidebar, by setting to `0` a special trigger will appear | number | 64 | +| collapsedWidth | width of the collapsed sidebar, by setting to `0` a special trigger will appear | number | 80 | | collapsible | whether can be collapsed | boolean | false | | defaultCollapsed | to set the initial status | boolean | false | | reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false | diff --git a/components/layout/index.zh-CN.md b/components/layout/index.zh-CN.md index e15631ae3a..be2237feb8 100644 --- a/components/layout/index.zh-CN.md +++ b/components/layout/index.zh-CN.md @@ -91,7 +91,7 @@ title: Layout | breakpoint | 触发响应式布局的[断点](/components/grid#api) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | className | 容器 className | string | - | | collapsed | 当前收起状态 | boolean | - | -| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 64 | +| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 | | collapsible | 是否可收起 | boolean | false | | defaultCollapsed | 是否默认收起 | boolean | false | | reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false |