-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Tab Pane slots type seems to be incorrect #6696
Comments
I have the same problem. |
My current workaround to make typescript happy is to wrap the slot markup in a render function and pass it as a :tab prop, hope it helps, but render functions are annoying and I hope the issue gets resolved sooner than later |
It is hard to me. Maybe it will be fixed in next version. I want to wait for it. |
when I update naive-ui version from 2.40.3 to 2.41.0,compile will fail, back to 2.40.3 is ok |
My workaround is to augment
If it's not working, make sure that your
|
Describe the bug
Docs state these as available slots for TabPane:
yet the type is
export interface TabPaneSlots { default?: () => VNode[]; prefix?: () => VNode[]; suffix?: () => VNode[]; }
Steps to reproduce
not relevant
Link to minimal reproduction
not relevant
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: