feat(IndexBar): add scrollTo method (#7794)

This commit is contained in:
晓晓晓晓晓丶vv
2020-12-24 19:29:03 +08:00
committed by GitHub
parent fc55822b48
commit a8bbaf1bfd
4 changed files with 53 additions and 2 deletions
+8
View File
@@ -90,6 +90,14 @@ export default {
| ------- | ------------------------------------- |
| default | Anchor content, show index by default |
### Methods
Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get IndexBar instance and call instance methods.
| Name | Description | Attribute | Return value |
| --- | --- | --- | --- |
| scrollTo | scroll to target element | _index: number \| string_ | - |
### Less Variables
How to use: [Custom Theme](#/en-US/theme).