Last active
November 18, 2021 16:26
-
-
Save jcppman/ce77978d2792f086a7b0e5abb3cc0313 to your computer and use it in GitHub Desktop.
Repro of volar issue #704
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
<script lang="ts"> | |
import { defineComponent } from 'vue'; | |
import SubComponent from './Sub.vue'; | |
export default defineComponent({ | |
components: { | |
SubComponent, | |
}, | |
setup() { | |
function handleChange(n: number) { | |
console.log(n); | |
} | |
return { | |
handleChange, | |
}; | |
}, | |
}); | |
</script> | |
<template> | |
<sub-component @change="handleChange" /> | |
</template> |
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
<script lang="ts"> | |
import { defineComponent } from 'vue'; | |
export default defineComponent({ | |
emits: { | |
change(n: boolean) { | |
return true; | |
}, | |
}, | |
props: { | |
a: { | |
type: String, | |
required: false, | |
}, | |
}, | |
setup(props) {}, | |
}); | |
</script> | |
<template> | |
Sub | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment