mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
Add breakpoint width documentation
This commit is contained in:
parent
9d39a55604
commit
f9193952ff
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user