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
onUpdate:value
defineProps
3.3.1
https://stackblitz.com/edit/vitejs-vite-qly3ag?file=src%2FApp.vue,package.json&terminal=dev
Expected "}" but found ":" 4 | __name: 'App', 5 | props: { 6 | onUpdate:value: { type: Function, required: true } | ^ 7 | }, 8 | setup(__props: any, { expose: __expose }) {
Generate correct code
Generate wrong code
No response
I want to extends Select component of ant-design-vue, then I try to use like this:
Select
ant-design-vue
import type { SelectProps } from 'ant-design-vue' export interface ApiSelectProps extends SelectProps { api?: () => Promise<SelectProps['options']> } const props = defineProps<ApiSelectProps>()
Workaround:
import type { SelectProps } from 'ant-design-vue' import { selectProps } from 'ant-design-vue/es/select' export interface ApiSelectProps extends SelectProps { api?: () => Promise<SelectProps['options']> } const props = defineProps({ ...selectProps(), api: { type: Function as PropType<NonNullable<ApiSelectProps['api']>>, }, })
The text was updated successfully, but these errors were encountered:
have the same problem
Sorry, something went wrong.
I found this issue earlier, don't know if this PR will fix it
https://deploy-preview-7803--vue-sfc-playground.netlify.app/#eNpNjLEOwjAMRH/F8lJY6F5CJBZmFrYsUWNQpOBYjZOl6r+TiqXLnU5371a8i1xaJZzQlHmJolBIq0Dy/Lk51OLQOg70jkzPJUsxq2OAIfNLgleamk+VhgkelWeNma+ON3s6dzPj/7HzPSh9JXWgJwATYrNm3HXfHTrcfipHNDU=
fix(compiler-sfc): handle prop keys that need escaping (#7803)
690ef29
close #8291
Successfully merging a pull request may close this issue.
Vue version
3.3.1
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-qly3ag?file=src%2FApp.vue,package.json&terminal=dev
Steps to reproduce
What is expected?
Generate correct code
What is actually happening?
Generate wrong code
System Info
No response
Any additional comments?
I want to extends
Select
component ofant-design-vue
, then I try to use like this:Workaround:
The text was updated successfully, but these errors were encountered: