tiny-vue/examples/sites/demos/pc/app/amount/set-date.vue

28 lines
501 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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