You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/README.md
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,12 @@ components: {
46
46
</tab-content>
47
47
</form-wizard>
48
48
```
49
+
## Compatibility
50
+
51
+
Vue-form-wizard works with Vue > 2.2, but the examples in the docs follow the latest Vue > 2.5 changes especially on the `slot` parts.
52
+
If you use vue < 2.5.x, use `scope="props"` instead of `slot-scope="props"` for scoped slots. See [Vue 2.5 simplified scoped slots](https://gist.github.com/yyx990803/9bdff05e5468a60ced06c29c39114c6b#simplified-scoped-slots-usage)
53
+
54
+
49
55
## Props
50
56
### Form Wizard props
51
57
```js
@@ -191,8 +197,8 @@ then you could use this slot. Otherwise, you could stick with the buttons slots
191
197
One potential usage can be that you want to have a different button when completing the wizard. Maybe you want to position it in the center, give it a different color and click event
@@ -209,12 +215,13 @@ Working fiddle for the [example above](https://jsfiddle.net/bt5dhqtf/717/)
209
215
This slot can be used to disable the click event on the step or to customize the UI of each step
210
216
One possible usage:
211
217
```html
212
-
<templateslot="step"scope="props">
213
-
<wizard-step:tab="props.tab"
214
-
:transition="props.transition"
215
-
:index="props.index">
216
-
</wizard-step>
217
-
</template>
218
+
<wizard-step
219
+
slot-scope="props"
220
+
slot="step"
221
+
:tab="props.tab"
222
+
:transition="props.transition"
223
+
:index="props.index">
224
+
</wizard-step>
218
225
```
219
226
#### Exposed props for the `step` slot
220
227
- tab (the tab object which contains the tab-content component corresponding to the step) This object contains several fields such as `active, checked, shape, color` and so on. You can check how these are used [here](https://github.com/cristijora/vue-form-wizard/blob/master/src/components/WizardStep.vue):
0 commit comments