tiny-vue/examples/sites/demos/pc/app/drop-times/basic-usage-composition-api...

24 lines
513 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>
<div class="drop-time-demo-basic">
<tiny-drop-times v-model="value" placeholder="请选择" @change="change"></tiny-drop-times>
<p>当前选中值{{ value }}</p>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { DropTimes as TinyDropTimes, Modal } from '@opentiny/vue'
const value = ref('')
function change(value) {
Modal.message({ message: 'change 事件,当前值为 ' + value })
}
</script>
<style scoped>
.drop-time-demo-basic {
width: 270px;
}
</style>