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
2.7.15
codepen.io/wuxx/pen/GReRwwy
import { withDefaults } from 'vue/types'
interface Props { layout: string }
const props = withDefaults(defineProps(), { layout: 'total, prev, pager, next, sizes, jumper' })
i want to set props default value
8:34:23 PM [vite] Internal server error: Missing "./types" specifier in "vue" package Plugin: vite:import-analysis
The text was updated successfully, but these errors were encountered:
withDefaults is a macro. There is no need to import it.
withDefaults
Sorry, something went wrong.
No branches or pull requests
Version
2.7.15
Reproduction link
codepen.io/wuxx/pen/GReRwwy
Steps to reproduce
import { withDefaults } from 'vue/types'
interface Props {
layout: string
}
const props = withDefaults(defineProps(), {
layout: 'total, prev, pager, next, sizes, jumper'
})
What is expected?
i want to set props default value
What is actually happening?
8:34:23 PM [vite] Internal server error: Missing "./types" specifier in "vue" package
Plugin: vite:import-analysis
The text was updated successfully, but these errors were encountered: