mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
docs: update layout doc
This commit is contained in:
parent
30af93b7b8
commit
b698d74fd0
@ -77,18 +77,6 @@ export default {
|
||||
collapsedWidth: 80,
|
||||
}),
|
||||
|
||||
// static childContextTypes = {
|
||||
// siderCollapsed: PropTypes.bool,
|
||||
// collapsedWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
// };
|
||||
|
||||
// static contextTypes = {
|
||||
// siderHook: PropTypes.object,
|
||||
// };
|
||||
|
||||
// private mql: MediaQueryList;
|
||||
// private uniqueId: string;
|
||||
|
||||
data () {
|
||||
this.uniqueId = generateId('ant-sider-')
|
||||
let matchMedia
|
||||
|
@ -34,7 +34,7 @@ The sidebar.
|
||||
| breakpoint | [breakpoints](/ant-desing-vue/components/grid#api) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - |
|
||||
| class | container className | string | - |
|
||||
| collapsed(v-model) | 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 |
|
||||
|
@ -34,7 +34,7 @@
|
||||
| breakpoint | 触发响应式布局的[断点](/ant-design-vue/components/grid#API) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - |
|
||||
| class | 容器 class | string | - |
|
||||
| collapsed(v-model) | 当前收起状态 | boolean | - |
|
||||
| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 64 |
|
||||
| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 |
|
||||
| collapsible | 是否可收起 | boolean | false |
|
||||
| defaultCollapsed | 是否默认收起 | boolean | false |
|
||||
| reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false |
|
||||
|
Loading…
Reference in New Issue
Block a user