Skip to content

Commit 23f5656

Browse files
authored
docs(layout): update type definition (#5477)
1 parent 2addaf3 commit 23f5656

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/layout/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ The sidebar.
8686

8787
| Property | Description | Type | Default | Version |
8888
| --- | --- | --- | --- | --- |
89-
| breakpoint | [breakpoints](/components/grid#api) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | |
89+
| breakpoint | [breakpoints](/components/grid#api) of the responsive layout | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `xxl` | - | |
9090
| class | container className | string | - | |
9191
| collapsed(v-model) | to set the current status | boolean | - | |
9292
| collapsedWidth | width of the collapsed sidebar, by setting to `0` a special trigger will appear | number | 80 | |
9393
| collapsible | whether can be collapsed | boolean | false | |
9494
| defaultCollapsed | to set the initial status | boolean | false | |
9595
| reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false | |
9696
| style | to customize the styles | object\|string | - | |
97-
| theme | color theme of the sidebar | string: `light` `dark` | `dark` | |
97+
| theme | color theme of the sidebar | `light` \| `dark` | `dark` | |
9898
| trigger | specify the customized trigger, set to null to hide the trigger | string\|slot | - | |
9999
| width | width of the sidebar | number\|string | 200 | |
100100
| zeroWidthTriggerStyle | to customize the styles of the special trigger that appears when `collapsedWidth` is 0 | object | - | 1.5.0 |

components/layout/index.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ cover: https://gw.alipayobjects.com/zos/alicdn/hzEndUVEx/Layout.svg
8787

8888
| 参数 | 说明 | 类型 | 默认值 | 版本 |
8989
| --- | --- | --- | --- | --- |
90-
| breakpoint | 触发响应式布局的[断点](/components/grid#API) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | |
90+
| breakpoint | 触发响应式布局的[断点](/components/grid#API) | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `xxl` | - | |
9191
| class | 容器 class | string | - | |
9292
| collapsed(v-model) | 当前收起状态 | boolean | - | |
9393
| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 | |
9494
| collapsible | 是否可收起 | boolean | false | |
9595
| defaultCollapsed | 是否默认收起 | boolean | false | |
9696
| reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false | |
9797
| style | 指定样式 | object\|string | - | |
98-
| theme | 主题颜色 | string: `light` `dark` | `dark` | |
98+
| theme | 主题颜色 | `light` \| `dark` | `dark` | |
9999
| trigger | 自定义 trigger,设置为 null 时隐藏 trigger | string\|slot | - | |
100100
| width | 宽度 | number\|string | 200 | |
101101
| zeroWidthTriggerStyle | 指定当 `collapsedWidth` 为 0 时出现的特殊 trigger 的样式 | object | - | 1.5.0 |

0 commit comments

Comments
 (0)