docs(IndexBar): use composition api

This commit is contained in:
chenjiahan
2020-12-09 14:38:14 +08:00
parent ec505d549e
commit afd3474da3
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ app.use(IndexAnchor);
```js
export default {
data() {
setup() {
return {
indexList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
};