-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
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
Enhancement: Add generics and better slots to PTabs #1218
Conversation
✅ Deploy Preview for prefect-design ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
// adding defineSlots doesn't match what app.component expects | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error | ||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly enough, this component doesn't even use defineSlots...
✅ Deploy Preview for prefect-design ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/components/Tabs/PTabSelect.vue
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This components slots were inconsistent with the root PTabs component. Which likely would lead to implementation errors/bugs at some point. Bringing it inline (yay slot types!)
Description
Wanted to fix a few issues.
Updating these components to use generics and defineSlots fixes these
Note: There's a weird type issue in the install method for PTabs. I've run into this before and it seems to be related to using defineSlots producing some type other than what app.component wants. But everything seems to work as I'd expect when testing this.