mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
21 lines
378 B
Vue
21 lines
378 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: string) => {
|
||
|
console.log(value)
|
||
|
}
|
||
|
return {
|
||
|
num,
|
||
|
handleChange,
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|