mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
124b4b8abc
fix #4678
21 lines
370 B
Vue
21 lines
370 B
Vue
<template>
|
|
<el-input-number v-model="num" :min="1" :max="10" @change="handleChange" />
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent, ref } from 'vue'
|
|
|
|
export default defineComponent({
|
|
setup() {
|
|
const num = ref(1)
|
|
const handleChange = (value) => {
|
|
console.log(value)
|
|
}
|
|
return {
|
|
num,
|
|
handleChange,
|
|
}
|
|
},
|
|
})
|
|
</script>
|