-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(numeric): [numeric] add props of numeric
- Loading branch information
1 parent
c974af3
commit 7eed239
Showing
8 changed files
with
95 additions
and
19 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
24 changes: 22 additions & 2 deletions
24
examples/sites/demos/pc/app/numeric/about-step-composition-api.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 |
---|---|---|
@@ -1,11 +1,31 @@ | ||
<template> | ||
<tiny-numeric v-model="value" :step="step"></tiny-numeric> | ||
<div class="m-layout"> | ||
<div class="m-b10"> | ||
<div class="m-b10">1、step-restore 用法</div> | ||
<tiny-numeric v-model="value" :step="step" step-restore></tiny-numeric> | ||
</div> | ||
<div> | ||
<div class="m-b10">2、step-strictly 用法</div> | ||
<tiny-numeric v-model="valueStep" :step="step" step-strictly></tiny-numeric> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
import { TinyNumeric } from '@opentiny/vue' | ||
const value = ref(0) | ||
const step = ref(2) | ||
const step = ref(5) | ||
const valueStep = ref(0) | ||
</script> | ||
|
||
<style scoped> | ||
.m-layout { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.m-b10 { | ||
margin-bottom: 10px; | ||
} | ||
</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
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