<template>
  <Input v-model="text" :number="true"></Input>
</template>
<script>
  export default {
    props: {
      value: Number,
    },
    data() {
      return {
        text: this.value,
      }
    },
    watch: {
      text(val) {
        this.$emit('input', val);
      }
    }
  }
</script>