Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit698e29a

Browse files
authored
add defineComponent
1 parent9b6d404 commit698e29a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ add `lang="ts"` to the script tag to declare TS as the lang used.
2626
...
2727
</script>
2828
```
29+
30+
use`defineComponent` to get type inference in Vue component options
31+
```js
32+
import {defineComponent }from'vue'
33+
34+
constComponent=defineComponent({
35+
// type inference enabled
36+
})
37+
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp