未验证 提交 cc657383 编写于 作者: O openharmony_ci 提交者: Gitee

!21631 修改侧边栏最大宽度最小宽度优先级

Merge pull request !21631 from luoweibin/731docs
......@@ -46,8 +46,8 @@ SideBarContainer( type?: SideBarContainerType )
| controlButton | [ButtonStyle](#buttonstyle对象说明) | 设置侧边栏控制按钮的属性。 |
| showControlButton | boolean | 设置是否显示控制按钮。<br/>默认值:true |
| sideBarWidth | number&nbsp;\|&nbsp;[Length](ts-types.md#length)<sup>9+</sup> | 设置侧边栏的宽度。<br/>默认值:240vp<br/>单位:vp<br/>**说明:** <br/>API version 9及以下版本默认值为200vp,API version 10的默认值为240vp。<br/>设置为小于0的值时按默认值显示。<br/>受最小宽度和最大宽度限制,不在限制区域内取最近的点。<br/>sideBarWidth优先于侧边栏子组件width,sideBarWidth未设置时默认值优先级高于侧边栏子组件width。 |
| minSideBarWidth | number&nbsp;\|&nbsp;[Length](ts-types.md#length)<sup>9+</sup> | 设置侧边栏最小宽度。<br/>默认值:240vp<br/>单位:vp<br/>**说明:** <br/>API version 9及以下版本默认值为200vp,API version 10的默认值为240vp。<br/>设置为小于0的值时按默认值显示。<br/>值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。<br/>minSideBarWidth优先于侧边栏子组件minWidth,minSideBarWidth未设置时默认值优先级于侧边栏子组件minWidth。 |
| maxSideBarWidth | number&nbsp;\|&nbsp;[Length](ts-types.md#length)<sup>9+</sup> | 设置侧边栏最大宽度。<br/>默认值:280vp<br>单位:vp<br/>**说明:** <br/>设置为小于0的值时按默认值显示。<br/>值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。<br/>maxSideBarWidth优先于侧边栏子组件maxWidth,maxSideBarWidth未设置时默认值优先级于侧边栏子组件maxWidth。 |
| minSideBarWidth | number&nbsp;\|&nbsp;[Length](ts-types.md#length)<sup>9+</sup> | 设置侧边栏最小宽度。<br/>默认值:240vp<br/>单位:vp<br/>**说明:** <br/>API version 9及以下版本默认值为200vp,API version 10的默认值为240vp。<br/>设置为小于0的值时按默认值显示。<br/>值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。<br/>minSideBarWidth优先于侧边栏子组件minWidth,minSideBarWidth未设置时默认值优先级于侧边栏子组件minWidth。 |
| maxSideBarWidth | number&nbsp;\|&nbsp;[Length](ts-types.md#length)<sup>9+</sup> | 设置侧边栏最大宽度。<br/>默认值:280vp<br>单位:vp<br/>**说明:** <br/>设置为小于0的值时按默认值显示。<br/>值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。<br/>maxSideBarWidth优先于侧边栏子组件maxWidth,maxSideBarWidth未设置时默认值优先级于侧边栏子组件maxWidth。 |
| autoHide<sup>9+</sup> | boolean | 设置当侧边栏拖拽到小于最小宽度后,是否自动隐藏。<br/>默认值:true<br>**说明:** <br>受minSideBarWidth属性方法影响,minSideBarWidth属性方法未设置值使用默认值。<br/>拖拽过程中判断是否要自动隐藏。小于最小宽度时需要阻尼效果触发隐藏(越界一段距离) |
| sideBarPosition<sup>9+</sup> | [SideBarPosition](#sidebarposition9枚举说明) | 设置侧边栏显示位置。<br/>默认值:SideBarPosition.Start |
| divider<sup>10+</sup> | [DividerStyle](#dividerstyle10对象说明) \| null | 设置分割线的样式。<br/>- 默认为DividerStyle:显示分割线。<br/>- null:不显示分割线。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册