-
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
Make tabs work without tab-pane #809
Comments
Current (2.26.1) n-tabs can't works without n-tab-pane, if tab-pane generated from array, in tab it must check array length first, otherwise it will show error with "Cannot read properties of undefined (reading 'props'), Tabs.js:53:40 flatten(slots.default())[0].props.name" That means we can't use card tab with addable props but without any panes Expected API
|
https://www.naiveui.com/zh-CN/os-theme/components/tabs#no-pane.vue It doesn't work? |
https://codesandbox.io/s/fast-glade-ec1ted?file=/src/App.vue It works with self-closing n-tabs or static pane in tab but not dynamic panes from array |
The main problem is that |
This function solves the problem (这个功能解决的问题)
Only use the bar
Expected API (期望的 API)
The text was updated successfully, but these errors were encountered: