tiny-vue/examples/docs/resources/pc/demo/drop-times/basic-usage.vue

27 lines
517 B
Vue
Raw 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 style="width: 270px">
<tiny-drop-times v-model="value" placeholder="请选择" @change="change"></tiny-drop-times>
<p>当前选中值:{{ value }}</p>
</div>
</template>
<script lang="jsx">
import { DropTimes, Modal } from '@opentiny/vue'
export default {
components: {
TinyDropTimes: DropTimes
},
data() {
return {
value: ''
}
},
methods: {
change(value) {
Modal.message({ message: 'change 事件当前值为 ' + value })
}
}
}
</script>