mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 10:00:58 +08:00
13 lines
260 B
Vue
13 lines
260 B
Vue
<template>
|
|
<el-input-number v-model="num" :min="1" :max="10" @change="handleChange" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const num = ref(1)
|
|
const handleChange = (value: number | undefined) => {
|
|
console.log(value)
|
|
}
|
|
</script>
|