mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-05-17 04:59:38 +03:00
32 lines
488 B
Vue
32 lines
488 B
Vue
<template>
|
|
<div>
|
|
<date-picker
|
|
v-model="value"
|
|
value-type="format"
|
|
type="time"
|
|
:open.sync="open"
|
|
placeholder="Select time"
|
|
@change="handleChange"
|
|
></date-picker>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ControlOpen',
|
|
data() {
|
|
return {
|
|
value: null,
|
|
open: false,
|
|
};
|
|
},
|
|
methods: {
|
|
handleChange(value, type) {
|
|
if (type === 'second') {
|
|
this.open = false;
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script>
|