We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.16
sfc.vuejs.org/
<script setup lang="ts"> import { ref } from 'vue' import { IProp } from './a' const props = withDefaults(defineProps<IProp>(),{ flag: true }) const msg = ref('Hello World!') </script> <template> <h1>{{ msg }}</h1> <input v-model="msg"> </template>
export interface IProp { flag?:boolean }
can use the way import ts file to define the props that defineProps need
complier error
The text was updated successfully, but these errors were encountered:
duplicate of #4294
Sorry, something went wrong.
No branches or pull requests
Version
3.2.16
Reproduction link
sfc.vuejs.org/
Steps to reproduce
vue file
import interface ts file
What is expected?
can use the way import ts file to define the props that defineProps need
What is actually happening?
complier error
The text was updated successfully, but these errors were encountered: