2
0
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:
mengxiong10
2019-11-10 17:47:30 +08:00
parent 72024440d7
commit 4875dc6b3d
165 changed files with 23248 additions and 21723 deletions
+31
View File
@@ -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>