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

19 lines
429 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 setup lang="jsx">
import { ref } from 'vue'
import { Amount as TinyAmount, Modal } from '@opentiny/vue'
const value = ref(88.88)
const date = ref(new Date())
function change(val) {
Modal.message({
message: `改变后的值${JSON.stringify(val)}`,
status: 'info'
})
}
</script>