No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [solved[ starting with quasar... cannot show q-tab

    Help
    1
    5
    1468
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fabiansilva last edited by Fabiansilva

      hello, I starting my first component and like to put tabs following http://quasar-framework.org/components/tabs.html
      I tried to import Qtabs and QBtn globally and locally and still Qtabs not work, I started with quasar default template
      tried to put:
      import { QTabs, QBtn} from ‘quasar’

      export default {
      components: { QTabs, QBtn }, …etc

      and when tried to view page, there is a button and a blue line on top but not tabs and the console error is:

      [Vue warn]: Unknown custom element: <q-tab> - did you register the component correctly? For recursive components, make sure to provide the “name” option.

      found in

      —> <Lista> at src\components\Lista.vue
      <App> at src\App.vue
      <Root>

      1 Reply Last reply Reply Quote 0
      • F
        Fabiansilva last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • F
          Fabiansilva last edited by

          also if I put on App.vue the imports and exports (ant not on main.js) also not work

          <template>
          <!-- Don’t drop “q-app” class -->
          <div id=“q-app”>
          <!–router-view /–>
          <template>
          <div>
          <q-tabs name=“tab”>
          <q-tab slot=“title” name=“tab-1” icon=“message” />
          <q-tab slot=“title” name=“tab-2” icon=“fingerprint” />
          <q-tab slot=“title” name=“tab-3” icon=“account_box” />
          </q-tabs>
          </div>
          </template>
          </div>
          </template>

          <script>
          import {
          QTabs,
          QBtn
          } from ‘quasar’

          /*

          • Root component
            */
            // export default {}
            export default {
            name: ‘Lista’,
            components: {
            QTabs,
            QBtn
            }
            }
            </script>

          <style></style>

          1 Reply Last reply Reply Quote 0
          • F
            Fabiansilva last edited by

            why button and q-tabs works but not “q-tab”?

            vue.runtime.esm.js?ff9b:567 [Vue warn]: Unknown custom element: <q-tab> - did you register the component correctly? For recursive components, make sure to provide the “name” option.

            found in

            —> <Lista> at src\App.vue
            <Root>

            1 Reply Last reply Reply Quote 0
            • F
              Fabiansilva last edited by

              I see… I not imported QTab, sorry, I’m new to this… I struggle all the day from yesterday to make it to work 😞

              1 Reply Last reply Reply Quote 0
              • First post
                Last post