docs: update

This commit is contained in:
orzyyyy 2019-10-02 11:56:08 +08:00 committed by 偏右
parent 5e4697e38b
commit 4a29aaaf6b
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ The sidebar.
| defaultCollapsed | to set the initial status | 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 | | | reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false | |
| style | to customize the styles | object | - | | | style | to customize the styles | object | - | |
| specialTriggerStyle | to customize the styles of the special trigger that appears when collapsedWidth is 0 | object | - | 3.24.0 |
| theme | color theme of the sidebar | string: `light` `dark` | `dark` | 3.6.0 | | theme | color theme of the sidebar | string: `light` `dark` | `dark` | 3.6.0 |
| trigger | specify the customized trigger, set to null to hide the trigger | string\|ReactNode | - | | | trigger | specify the customized trigger, set to null to hide the trigger | string\|ReactNode | - | |
| width | width of the sidebar | number\|string | 200 | | | width | width of the sidebar | number\|string | 200 | |

View File

@ -96,6 +96,7 @@ title: Layout
| defaultCollapsed | 是否默认收起 | boolean | false | | | defaultCollapsed | 是否默认收起 | boolean | false | |
| reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false | | | reverseArrow | 翻转折叠提示箭头的方向,当 Sider 在右边时可以使用 | boolean | false | |
| style | 指定样式 | object | - | | | style | 指定样式 | object | - | |
| specialTriggerStyle | 指定当 `collapsedWidth` 为 0 时出现的特殊 trigger 的样式 | object | - | 3.24.0 |
| theme | 主题颜色 | string: `light` `dark` | `dark` | 3.6.0 | | theme | 主题颜色 | string: `light` `dark` | `dark` | 3.6.0 |
| trigger | 自定义 trigger设置为 null 时隐藏 trigger | string\|ReactNode | - | | | trigger | 自定义 trigger设置为 null 时隐藏 trigger | string\|ReactNode | - | |
| width | 宽度 | number\|string | 200 | | | width | 宽度 | number\|string | 200 | |