-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from alexzhang1030/feat/sync-vue
feat: add metadata api to vue binding
- Loading branch information
Showing
7 changed files
with
216 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@stepperize/vue": major | ||
--- | ||
|
||
feat: add metadata api to vue binding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Migrating to v2 | ||
description: Learn how to migrate from v1 to v2 | ||
icon: CircleFadingArrowUp | ||
--- | ||
|
||
`@stepperize/vue` adds a new `metadata` API to the `useStepper` composable. | ||
|
||
## Breaking Changes | ||
|
||
### Name changes in the values returned by the composable | ||
|
||
Now the parameters of useStepper are not a string indicating the initial step, but rather an object with the following values: | ||
|
||
- `initialStep` The ID of the initial step to display | ||
- `initialMetadata` The initial metadata to set for the steps | ||
|
||
## New Features | ||
|
||
### New `metadata` API | ||
|
||
The `metadata` API allows you to set dynamic metadata for each step. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.