Skip to content

Commit

Permalink
#16 fix slots re-using identical inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Aug 4, 2018
1 parent 472d2f0 commit a188d79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@
:onBack="backClicked">
<div slot="page1">
<h4>Step 1</h4>
<p>This is step 1</p>
<input
id="step1"
v-model="step1"
rows="15"
>
</input>
</div>
<div slot="page2">
<h4>Step 2</h4>
<p>This is step 2</p>
<input
id="step2"
v-model="step2"
rows="15"
>
</input>
</div>
<div slot="page3">
<h4>Step 3</h4>
<p>This is step 3</p>
</div>
<div slot="page4">
<h4>Step 4</h4>
<p>This is step 4</p>
</div>
</vue-good-wizard>
</div>
Expand All @@ -34,6 +37,8 @@ export default {
name: 'demo',
data(){
return {
step1: '',
step2: '',
cStep: 1,
steps: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Wizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:style="{ left: arrowPosition }">
</span>
<div ref="wizard-body" class="wizard__body" :class="{'vgw-mobile': isMobile}">
<div class="wizard__body__step">
<div :key="currentSlot" class="wizard__body__step">
<slot :name="currentSlot"></slot>
</div>
<div class="wizard__body__actions clearfix">
Expand Down

0 comments on commit a188d79

Please sign in to comment.