[solved] bug? q-route-tabs being built wrong? being placed in q-tabs-panes?
-
From what I can tell, a q-tab should be able to be replaced by a q-route-tab. That is not presently the case. QRouteTabs aren’t showing in the tab bar of QTabs.
Here is my case:
I’m replacing q-tab with q-route-tab, both of which reside under a q-tabs element.My original was
<q-tabs glossy color="blue-10" > <q-tab slot="title" :count="numRoles" label="Roles" default name="tab-role" icon="supervised_user_circle" /> <q-tab label="Permissions" count="0" slot="title" name="tab-perm" icon="visibility" /> <q-tab label="Users" count="0" slot="title" name="tab-user" icon="assignment_ind" /> </q-tabs>
The new stuff looks like this so far:
<q-tabs glossy color="blue-10" > <q-route-tab to="roles" label="Roles" :count="numRoles" name="tab-role" icon="supervised_user_circle" exact /> <q-route-tab to="permissions" label="Permissions" count="0" name="tab-perm" icon="visibility" exact /> </q-tabs>
Previously, I had a q-tab-pane after the q-tabs, and now I have a router-view. There is no tab pane anymore. The routing seems to work fine.
When I was previously using the tabs, they showed up left-to-right in the glossy blue bar. They now show stacked top-to-bottom below the glossy blue bar with a horizontal rule between them. Inspecting the HTML, I see that my new route tabs are nested inside of a q-tabs-panes div. The item above it, is a q-tabs-head div, and is the blue bar. Shouldn’t the q-route-tab(s) be nested inside that? That’s where q-tab(s) get put.
I’m on Q-CLI 0.17.9, Q-F of 0.17.8.
-
Updated to CLI 0.17.15. Same issue.
-
Never mind - needed slot=“title” per https://github.com/quasarframework/quasar/issues/1324