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
It would be good that this type was exported so it could help with props that are shared with other components (formerly mixins).
Example use case:
export const sharedProps = { disabled: Boolean, } export function getSharedPropBindings (props: ExtractPropTypes<typeof sharedProps>) { return computed(() => ({ disabled: props.disabled, })) }
Later in component:
import { sharedProps, getSharedPropBindings } from './sharedProps' // setup block const sharedPropBindings = getSharedPropBindings(props)
<component v-bind="sharedPropBindings" />
The text was updated successfully, but these errors were encountered:
vue-next exports it as well. I don't see any reason why we shouldn't. Would you like to draft a PR for it? Thanks.
Sorry, something went wrong.
Heading for a release, I will fix it for now. Thanks!
903a0aa
Apologies @antfu, was pretty busy and I couldn’t find a spot to get with it. Thanks for taking care of it 💪
Successfully merging a pull request may close this issue.
It would be good that this type was exported so it could help with props that are shared with other components (formerly mixins).
Example use case:
Later in component:
Script
Template
The text was updated successfully, but these errors were encountered: