Add breakpoint width documentation

This commit is contained in:
afc163 2017-07-14 13:32:30 +08:00
parent 9d39a55604
commit f9193952ff
2 changed files with 24 additions and 0 deletions

View File

@ -97,6 +97,18 @@ breakpoint | breakpoint of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg'
style | to custom the styles | object | -
className | container className | string | -
#### breakpoint width
```js
{
xs: '480px',
sm: '768px',
md: '992px',
lg: '1200px',
xl: '1600px',
}
```
> Note: If you want to wrap the `Sider`, do not forget to add this setting to the customized component: `__ANT_LAYOUT_SIDER = true`. e.g.
```jsx

View File

@ -98,6 +98,18 @@ title: Layout
| style | 指定样式 | object | - |
| className | 容器 className | string | - |
#### breakpoint width
```js
{
xs: '480px',
sm: '768px',
md: '992px',
lg: '1200px',
xl: '1600px',
}
```
> 注意:如果你想在 `Sider` 基础上进行包装,需要给自定义组件加上 `__ANT_LAYOUT_SIDER = true` 设置,例如:
```jsx