<template>
  <div>
    <div>
      <p>正常情况下</p>
      <ynet-input-amt v-model="number1" size="small" />
    </div>
    <div>
      <p>保留3位小数</p>
      <ynet-input-amt v-model="number2" :decimal="3" size="small" />
    </div>
    <div>
      <p>不保留小数</p>
      <ynet-input-amt v-model="number3" :decimal="0" size="small" />
    </div>
  </div>
</template>

<script lang="ts">
import YnetInputAmt from 'common/components/basic/input-amt/index.vue'
import { defineComponent, ref } from 'vue-demi'

export default defineComponent({
  name: 'InputAmtExample',
  components: {
    YnetInputAmt
  },
  setup () {
    const number1 = ref(123)
    const number2 = ref(123)
    const number3 = ref(123)

    return {
      number1,
      number2,
      number3
    }
  }
})
</script>
