Skip to content

Commit

Permalink
doc: add example for Vue class component
Browse files Browse the repository at this point in the history
  • Loading branch information
ylc395 committed Sep 17, 2024
1 parent 8b877f7 commit e4355dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@ Vue.component('AsyncComponent', (resolve, reject) => {
}, 500)
})
```
You can do this for [Vue class component](https://class-component.vuejs.org/) too:

```
<script lang="ts">
// @vue/component
@Component({
components: { For }
})
export default class Bar extends Vue {}
</script>
```

### Disabling rules via `<!-- eslint-disable -->`

Expand Down

0 comments on commit e4355dc

Please sign in to comment.