Skip to content

Commit a3d58dd

Browse files
committed
fix: Final fix for QStepper
1 parent dffa44d commit a3d58dd

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

dev/components/components/stepper.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@
55
<br><br>
66

77
<q-stepper :color="color" flat ref="stepper" v-model="step" :alternative-labels="alt">
8-
<q-step :order="2" default name="first" title="Ad style">
8+
<q-step default name="first" title="Ad style">
99
<div v-for="n in 10">Step 1</div>
1010
<q-stepper-navigation>
1111
<q-btn :color="color" @click="$refs.stepper.next()">Continue</q-btn>
1212
</q-stepper-navigation>
1313
</q-step>
14-
<q-step :order="5" error title="Custom channels" subtitle="Alert message">
14+
<q-step error title="Custom channels" subtitle="Alert message">
1515
<div v-for="n in 10">Step 2</div>
1616
<q-stepper-navigation>
1717
<q-btn :color="color" @click="$refs.stepper.next()">Next</q-btn>
1818
<q-btn :color="color" flat @click="$refs.stepper.previous()">Back</q-btn>
1919
</q-stepper-navigation>
2020
</q-step>
21-
<q-step :order="4" title="Get code">
21+
<q-step title="Get code">
2222
<div v-for="n in 3">Step 3</div>
2323
<q-stepper-navigation>
2424
<q-btn :color="color" @click="$refs.stepper.next()">Next</q-btn>
2525
<q-btn :color="color" flat @click="$refs.stepper.previous()">Back</q-btn>
2626
</q-stepper-navigation>
2727
</q-step>
28-
<q-step :order="3" name="fifth" disable title="Disabled">
28+
<q-step name="fifth" disable title="Disabled">
2929
<div v-for="n in 3">Step 4</div>
3030
<q-stepper-navigation>
3131
<q-btn :color="color" @click="$refs.stepper.next()">Next</q-btn>
3232
<q-btn :color="color" flat @click="$refs.stepper.previous()">Back</q-btn>
3333
</q-stepper-navigation>
3434
</q-step>
35-
<q-step :order="1" name="fourth" title="Editable">
35+
<q-step name="fourth" title="Editable">
3636
<div v-for="n in 3">Step 5</div>
3737
<q-stepper-navigation>
3838
<q-btn :color="color" @click="$refs.stepper.goToStep('first')">Restart</q-btn>
@@ -49,34 +49,34 @@
4949
<br><br>
5050

5151
<q-stepper ref="stepper2" :color="color" v-model="step2" :alternative-labels="alt" vertical>
52-
<q-step :order="2" default name="first" title="Ad style">
52+
<q-step default name="first" title="Ad style">
5353
<div v-for="n in 10">Step 1</div>
5454
<q-stepper-navigation>
5555
<q-btn :color="color" @click="$refs.stepper2.next()">Continue</q-btn>
5656
</q-stepper-navigation>
5757
</q-step>
58-
<q-step :order="5" error title="Custom channels" subtitle="Alert message">
58+
<q-step error title="Custom channels" subtitle="Alert message">
5959
<div v-for="n in 10">Step 2</div>
6060
<q-stepper-navigation>
6161
<q-btn :color="color" @click="$refs.stepper2.next()">Next</q-btn>
6262
<q-btn :color="color" flat @click="$refs.stepper2.previous()">Back</q-btn>
6363
</q-stepper-navigation>
6464
</q-step>
65-
<q-step :order="4" title="Get code">
65+
<q-step title="Get code">
6666
<div v-for="n in 3">Step 3</div>
6767
<q-stepper-navigation>
6868
<q-btn :color="color" @click="$refs.stepper2.next()">Next</q-btn>
6969
<q-btn :color="color" flat @click="$refs.stepper2.previous()">Back</q-btn>
7070
</q-stepper-navigation>
7171
</q-step>
72-
<q-step :order="3" name="fifth" disable title="Disabled">
72+
<q-step name="fifth" disable title="Disabled">
7373
<div v-for="n in 3">Step 4</div>
7474
<q-stepper-navigation>
7575
<q-btn :color="color" @click="$refs.stepper2.next()">Next</q-btn>
7676
<q-btn :color="color" flat @click="$refs.stepper2.previous()">Back</q-btn>
7777
</q-stepper-navigation>
7878
</q-step>
79-
<q-step :order="1" name="fourth" title="Editable">
79+
<q-step name="fourth" title="Editable">
8080
<div v-for="n in 3">Step 5</div>
8181
<q-stepper-navigation>
8282
<q-btn :color="color" @click="$refs.stepper2.goToStep('first')">Restart</q-btn>

src/components/stepper/StepTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="q-stepper-dot row items-center justify-center q-stepper-line relative-position">
2121
<span class="row items-center justify-center">
2222
<q-icon v-if="vm.stepIcon" :name="vm.stepIcon"></q-icon>
23-
<span v-else>{{ vm.actualOrder + 1 }}</span>
23+
<span v-else>{{ vm.innerOrder + 1 }}</span>
2424
</span>
2525
</div>
2626
<div v-if="vm.title" class="q-stepper-label q-stepper-line relative-position">

0 commit comments

Comments
 (0)