Revision of Anchor Props document description,"affix" default value is true; 修正Anchor Props说明,"affix" 是true

This commit is contained in:
yangwukang 2018-01-09 08:38:29 +08:00 committed by 偏右
parent a6d545f9fa
commit 16d7da31ad
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ For displaying anchor hyperlinks on page and jumping between them.
| Property | Description | Type | Default | | Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- | | -------- | ----------- | ---- | ------- |
| affix | Fixed mode of Anchor | boolean | false | | affix | Fixed mode of Anchor | boolean | true |
| bounds | Bounding distance of anchor area | number | 5(px) | | bounds | Bounding distance of anchor area | number | 5(px) |
| offsetBottom | Pixels to offset from bottom when calculating position of scroll | number | - | | offsetBottom | Pixels to offset from bottom when calculating position of scroll | number | - |
| offsetTop | Pixels to offset from top when calculating position of scroll | number | 0 | | offsetTop | Pixels to offset from top when calculating position of scroll | number | 0 |

View File

@ -18,7 +18,7 @@ title: Anchor
| 成员 | 说明 | 类型 | 默认值 | | 成员 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| affix | 固定模式 | boolean | false | | affix | 固定模式 | boolean | true |
| bounds | 锚点区域边界 | number | 5(px) | | bounds | 锚点区域边界 | number | 5(px) |
| offsetBottom | 距离窗口底部达到指定偏移量后触发 | number | | | offsetBottom | 距离窗口底部达到指定偏移量后触发 | number | |
| offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | | | offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | |