-
Notifications
You must be signed in to change notification settings - Fork 14
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
Does El-tabs not support ssr? #78
Comments
Some components are dynamically generated based on the content of the slots, and may not be fully rendered on the server side(eq. ElTabs), which needs to be optimized |
What should I do?
|
You can try optimizing it and then submit a PR to ElementPlus |
Where I can't locate the problem... It's werid, I have no time to do this. :-( |
I found it... El-tabs only render in client, because tabs.tsx const {
children: panes,
addChild: registerPane,
removeChild: unregisterPane,
} = useOrderedChildren<TabsPaneContext>(getCurrentInstance()!, 'ElTabPane') tab-pane.vue onMounted(() => {
tabsRoot.registerPane(pane)
})
onUnmounted(() => {
tabsRoot.unregisterPane(pane.uid)
}) |
It is indeed here that caused the tab nav not to be fully rendered as a static page on SSR |
@tolking And has a |
any updates? |
Unfortunately, no. |
It render tab nav in client.
The text was updated successfully, but these errors were encountered: