docs: update layout doc

This commit is contained in:
tangjinzhou 2019-01-05 10:38:14 +08:00
parent 30af93b7b8
commit b698d74fd0
3 changed files with 2 additions and 14 deletions

View File

@ -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

View File

@ -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 |

View File

@ -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 |