From 204009a6b4e4f6827f6a42d92d29f0e7d7b88908 Mon Sep 17 00:00:00 2001 From: cristijora Date: Wed, 15 Nov 2017 17:19:18 +0200 Subject: [PATCH] #57 Update scoped slot usage in docs Add compatibility notes --- docs/README.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/README.md b/docs/README.md index ddfa5a4..c94f67b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -46,6 +46,12 @@ components: { ``` +## Compatibility + +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. +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) + + ## Props ### Form Wizard props ```js @@ -191,8 +197,8 @@ then you could use this slot. Otherwise, you could stick with the buttons slots 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 ```html -