mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
8a28eb1790
This reverts merge request !5
31 lines
816 B
Vue
31 lines
816 B
Vue
<template>
|
|
<input type="text" class="form-control" v-datepicker :value="value" v-on:changeDate="updateDate($event)">
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
directives: {
|
|
datepicker: {
|
|
inserted (el,) {
|
|
let vm = this;
|
|
$(el).datepicker({
|
|
autoclose: true,
|
|
format: 'dd/mm/yyyy',
|
|
todayBtn: true,
|
|
todayHighlight: true
|
|
}).on('changeDate',function(e){
|
|
this.updateDate(event.target.value)
|
|
})
|
|
}
|
|
}
|
|
},
|
|
props: ['value'],
|
|
methods: {
|
|
updateDate(value){
|
|
alert(value);
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|