Created
August 19, 2021 07:53
-
-
Save ejirocodes/90dfb4e4083957da5cc9cc29e429d028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<date-picker v-model="date" /> | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
date: new Date(), | |
}; | |
}, | |
}; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: ["~/plugins/datepicker.client.js"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue"; | |
import DatePicker from "vue2-datepicker"; | |
import "vue2-datepicker/index.css"; | |
Vue.component("date-picker", DatePicker); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment