You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
572 B
38 lines
572 B
1 year ago
|
<template>
|
||
|
<input type="number" @input="inputNum" v-model="value" />
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
import { reactive } from "vue";
|
||
|
// import InputNumType from '@/interfaces/compoment/InputNum';
|
||
|
// const details = reactive<InputNumType>({
|
||
|
// value: '',
|
||
|
// minNum: 0,
|
||
|
// maxNum: 0
|
||
|
// })
|
||
|
|
||
|
defineProps({
|
||
|
value: {
|
||
|
default: 0,
|
||
|
},
|
||
|
maxNum: {
|
||
|
default: 999999
|
||
|
},
|
||
|
minNum: {
|
||
|
default: 0
|
||
|
}
|
||
|
})
|
||
|
|
||
|
function setdetails() {
|
||
|
|
||
|
}
|
||
|
|
||
|
function inputNum() {
|
||
|
console.log('value :>> ', value);
|
||
|
}
|
||
|
|
||
|
defineExpose({ setdetails })
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
</style>
|