forked from opentiny/tiny-vue
25 lines
457 B
Vue
25 lines
457 B
Vue
<template>
|
|
<tiny-numeric v-model="stepNum" :step="step" :empty-value="null" @change="onChange" allow-empty></tiny-numeric>
|
|
</template>
|
|
|
|
<script>
|
|
import { Numeric, Modal } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyNumeric: Numeric
|
|
},
|
|
data() {
|
|
return {
|
|
step: 2,
|
|
stepNum: 1
|
|
}
|
|
},
|
|
methods: {
|
|
onChange(val, oldVal) {
|
|
Modal.message({ message: `${val} ${oldVal}`, status: 'info' })
|
|
}
|
|
}
|
|
}
|
|
</script>
|