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

    inline q-card can't work with v-show?

    Help
    3
    4
    1480
    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.
    • bigzhu
      bigzhu last edited by

      inline q-card had a css

      .inline-block {
        display: inline-block !important;
      }
      

      v-show just add style style="display: none;"

      so the inline q-card can’t hidden

      eleina 1 Reply Last reply Reply Quote 0
      • eleina
        eleina @bigzhu last edited by eleina

        @bigzhu Not quite sure if I follow you, but the docs of Vue say that v-show renders the element, but simply hides it from the viewer. Using a v-if will only render elements based on a certain condition.

        Source: https://vuejs.org/v2/guide/conditional.html#v-show

        1 Reply Last reply Reply Quote 0
        • S
          spectrolite last edited by

          if you want to be able to hide your inline q-cards,
          just overwrite that css rule in your scoped style block:

          <style scoped lang="stylus">
          .inline-block {
            display: inline-block
          }
          <style>
          
          1 Reply Last reply Reply Quote 0
          • S
            spectrolite last edited by

            just remember you need to display: inline-block when you want to show it again

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