docs(layout): update type definition (#5477)
parent
2addaf35ac
commit
23f56561e9
|
@ -86,7 +86,7 @@ The sidebar.
|
|||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| breakpoint | [breakpoints](/components/grid#api) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | |
|
||||
| breakpoint | [breakpoints](/components/grid#api) of the responsive layout | `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 | 80 | |
|
||||
|
@ -94,7 +94,7 @@ The sidebar.
|
|||
| defaultCollapsed | to set the initial status | boolean | false | |
|
||||
| reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false | |
|
||||
| style | to customize the styles | object\|string | - | |
|
||||
| theme | color theme of the sidebar | string: `light` `dark` | `dark` | |
|
||||
| theme | color theme of the sidebar | `light` \| `dark` | `dark` | |
|
||||
| trigger | specify the customized trigger, set to null to hide the trigger | string\|slot | - | |
|
||||
| width | width of the sidebar | number\|string | 200 | |
|
||||
| zeroWidthTriggerStyle | to customize the styles of the special trigger that appears when `collapsedWidth` is 0 | object | - | 1.5.0 |
|
||||
|
|
|
@ -87,7 +87,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/hzEndUVEx/Layout.svg
|
|||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| breakpoint | 触发响应式布局的[断点](/components/grid#API) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | |
|
||||
| breakpoint | 触发响应式布局的[断点](/components/grid#API) | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `xxl` | - | |
|
||||
| class | 容器 class | string | - | |
|
||||
| collapsed(v-model) | 当前收起状态 | boolean | - | |
|
||||
| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 | |
|
||||
|
@ -95,7 +95,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/hzEndUVEx/Layout.svg
|
|||
| defaultCollapsed | 是否默认收起 | boolean | false | |
|
||||
| reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false | |
|
||||
| style | 指定样式 | object\|string | - | |
|
||||
| theme | 主题颜色 | string: `light` `dark` | `dark` | |
|
||||
| theme | 主题颜色 | `light` \| `dark` | `dark` | |
|
||||
| trigger | 自定义 trigger,设置为 null 时隐藏 trigger | string\|slot | - | |
|
||||
| width | 宽度 | number\|string | 200 | |
|
||||
| zeroWidthTriggerStyle | 指定当 `collapsedWidth` 为 0 时出现的特殊 trigger 的样式 | object | - | 1.5.0 |
|
||||
|
|
Loading…
Reference in New Issue