mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
669 B
669 B
Anchor
The demo used to use some charactor names from Hard-Boiled Wonderland and the End of the World as anchor links, but if so there will be too wired in this page. So I rewrite them. What a pity.
Demos
basic
affix
scrollto
Props
Name | Type | Default | Description |
---|---|---|---|
affix | boolean |
false |
If it works like a affix. If set to true , it will recieve props from affix |
target | () => HTMLElement |
A function that returns the nearest scrollable ascendant element | The element that anchor listens to scroll event. |
bound | number |
12 |
Methods
Method | Description |
---|---|
scrollTo(href: string) |