-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: wt-stepper colors [WTEL-3957]
- Loading branch information
Showing
8 changed files
with
80 additions
and
40 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,20 @@ | ||
<script setup> | ||
import Docs from './wt-stepper-docs.vue'; | ||
import ExampleStepper from './examples/example-stepper.vue'; | ||
</script> | ||
|
||
# WtStepper | ||
|
||
## Props | ||
::: raw | ||
<Docs /> | ||
::: | ||
|
||
## Example Stepper | ||
::: raw | ||
<ExampleStepper /> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-stepper.vue | ||
::: |
28 changes: 28 additions & 0 deletions
28
docs/pages/webitel-ui/components/wt-stepper/examples/example-stepper.vue
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,28 @@ | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const steps = [ | ||
{ name: 'Step 1' }, | ||
{ name: 'Step 2' }, | ||
{ name: 'Step 3' }, | ||
]; | ||
const active = ref(1); | ||
</script> | ||
|
||
<template> | ||
<wt-stepper | ||
:active-step="active" | ||
:steps="steps" | ||
/> | ||
|
||
<wt-button | ||
@click="active < 3 ? active++ : active = 1" | ||
> | ||
Next step | ||
</wt-button> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
</style> |
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,5 @@ | ||
|
||
:root { | ||
--wt-stepper-divider-background-color: var(--secondary-color); | ||
--wt-stepper-divider-background-completed-color: var(--primary-color); | ||
} |
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