forked from opentiny/tiny-vue
24 lines
460 B
Vue
24 lines
460 B
Vue
<template>
|
|
<tiny-amount v-model="value" :digits="1" :max-len="12" @change="handleChange" :rounding="false"></tiny-amount>
|
|
</template>
|
|
|
|
<script>
|
|
import { Amount, Modal } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyAmount: Amount
|
|
},
|
|
data() {
|
|
return {
|
|
value: 888888888888.88
|
|
}
|
|
},
|
|
methods: {
|
|
handleChange(value) {
|
|
Modal.message({ message: `当前值为 ${value.amount}`, status: 'info' })
|
|
}
|
|
}
|
|
}
|
|
</script>
|