mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
docs(Anchor): add targetOffset doc
This commit is contained in:
parent
9803ebab34
commit
b02e433226
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user