docs(Anchor): add targetOffset doc

This commit is contained in:
shao 2019-07-23 20:15:24 +08:00
parent 9803ebab34
commit b02e433226
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ For displaying anchor hyperlinks on page and jumping between them.
| showInkInFixed | Whether show ink-balls in Fixed mode | boolean | false | |
| onClick | set the handler to handle `click` event | Function(e: Event, link: Object) | - | 3.9.0 |
| getCurrentAnchor | Customize the anchor highlight | () => string | - | 3.21.0 |
| targetOffset | Scroll to target offset value | number | `offsetTop` | | 0 | 3.21.0 |
### Link Props

View File

@ -26,6 +26,7 @@ title: Anchor
| showInkInFixed | 固定模式是否显示小圆点 | boolean | false | |
| onClick | `click` 事件的 handler | Function(e: Event, link: Object) | - | 3.9.0 |
| getCurrentAnchor | 自定义高亮的锚点 | () => string | - | 3.21.0 |
| targetOffset | 滚动到目标的偏移量 | number | `offsetTop` | | 0 | 3.21.0 |
### Link Props