This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slider to composition API (#35)
* Update slider to composition API * Version bump
- Loading branch information
1 parent
6bdea21
commit 0736f37
Showing
3 changed files
with
57 additions
and
61 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 |
---|---|---|
@@ -1,9 +1,21 @@ | ||
# Slider | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
|
||
const value = ref(0) | ||
</script> | ||
|
||
<DemoContainer> | ||
<Slider :min="1000" :max="10000" :step="1000"/> | ||
<Slider v-model="value" :min="1000" :max="10000" :step="1000"/> | ||
</DemoContainer> | ||
|
||
```vue | ||
<Slider :min="1000" :max="10000" :step="1000"/> | ||
<script setup> | ||
import { ref } from "vue"; | ||
const value = ref(0) | ||
</script> | ||
<Slider v-model="value" :min="1000" :max="10000" :step="1000"/> | ||
``` |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "omorphia", | ||
"type": "module", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"files": [ | ||
"dist" | ||
], | ||
|