-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-core): add type check for v-model without argument (#4598)
- Loading branch information
1 parent
0213c01
commit 6cc2bd6
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ foo: number; }>(); | ||
defineModel<number>({ required: true }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import Comp from './component.vue'; | ||
const model = ref(''); | ||
</script> | ||
|
||
<template> | ||
<!-- @vue-expect-error --> | ||
<Comp v-model="model" :foo="1" /> | ||
<!-- @vue-expect-error --> | ||
<Comp v-model:model-value="model" :foo="1" /> | ||
</template> |