Skip to content

Commit

Permalink
docs: remove takeover mode related docs (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwilliamBUPT committed Mar 4, 2024
1 parent 719e350 commit ca46758
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/guide/typescript/composition-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,6 @@ const openModal = () => {
</script>
```

Note if you want to use this technique in TypeScript files instead of Vue SFCs, you need to enable Volar's [Takeover Mode](./overview#volar-takeover-mode).

In cases where the exact type of the component isn't available or isn't important, `ComponentPublicInstance` can be used instead. This will only include properties that are shared by all components, such as `$el`:

```ts
Expand Down
Binary file removed src/guide/typescript/images/takeover-mode.png
Binary file not shown.

0 comments on commit ca46758

Please sign in to comment.