mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add NumberBox
This commit is contained in:
parent
ffe2bf1880
commit
5f74accfd0
1 changed files with 17 additions and 0 deletions
17
client/src/components/inputs/NumberBox.vue
Normal file
17
client/src/components/inputs/NumberBox.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
|
||||
const props = defineModel<{
|
||||
modelValue: number,
|
||||
min?: number,
|
||||
max?: number,
|
||||
}>();
|
||||
let { modelValue, min, max } = $(props);
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<input type="number" v-model="modelValue" :min="min" :max="max">
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
Loading…
Add table
Reference in a new issue