naive-ui/demo/documentation/components/anchor/enUS/index.md
2020-01-29 21:35:19 +08:00

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)