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

    Step -1 in stepper

    Help
    3
    5
    1633
    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.
    • K
      kirills345 last edited by kirills345

      <q-stepper ref="steps">
          <template v-for="type in point.check_types">
              <q-step
                  :ready="checked.includes(type.name)"
                  :title="type.name"
              >
                  {{type.desc}}
              </q-step>
          </template>
      </q-stepper>
      

      After change point.check_types if point.check_types more than be before it, then all steps after their have {data: {step: -1}}

      example:

      point.check_types = [{name: 'step1'}, {name: 'step2'}]
      // then rendering [step1: {Data: {step: 1}}, step2: {Data: {step: 2}}]
      point.check_types.push({name: 'some2'})
      // then rendering [step1: {Data: {step: 1}}, step2: {Data: {step: 2}}, step3: {Data: {step: -1}}]
      

      0_1496565436049_Снимок.PNG

      J 1 Reply Last reply Reply Quote 0
      • J
        JCharante @kirills345 last edited by

        @kirills345 Can you please reword what you need help with?

        Also you can format your code with markdown.

        For example:

        ```
        console.log(‘Hello World’)
        ```

        turns into

        console.log('Hello World')
        
        K 1 Reply Last reply Reply Quote 0
        • K
          kirills345 @JCharante last edited by

          @JCharante problem is that when i add one more step after component render, it has a property “step” is -1 (in data of component “steps”) and i cant check this step.
          result of this problem is on image

          1 Reply Last reply Reply Quote 1
          • rstoenescu
            rstoenescu Admin last edited by

            The Stepper has been completely redesigned in future v0.14 and many of its issues (like the one being discussed here) have been fixed by a better design (which brings cool new features too). Stay tuned for v0.14.

            K 1 Reply Last reply Reply Quote 0
            • K
              kirills345 @rstoenescu last edited by

              @rstoenescu ok, thank for answer

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