mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-12 21:22:26 +03:00
refactor: 3.0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user