forked from opentiny/tiny-vue
28 lines
499 B
Vue
28 lines
499 B
Vue
<template>
|
|
<tiny-amount v-model="value" @change="change" :date="date" date-allow-empty placeholder="请输入值"></tiny-amount>
|
|
</template>
|
|
|
|
<script>
|
|
import { Amount, Modal } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyAmount: Amount
|
|
},
|
|
data() {
|
|
return {
|
|
value: 88.88,
|
|
date: ''
|
|
}
|
|
},
|
|
methods: {
|
|
change(val) {
|
|
Modal.message({
|
|
message: `改变后的值:${JSON.stringify(val)}`,
|
|
status: 'info'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|