vue-datetime
Version:
Mobile friendly datetime picker for Vue. Supports date, datetime and time modes, i18n and disabling dates.
20 lines (15 loc) • 344 B
JavaScript
import Datetime from './Datetime.vue'
function plugin (Vue) {
Vue.component('datetime', Datetime)
}
// Install by default if using the script tag
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin)
}
export default plugin
const version = '__VERSION__'
// Export all components too
export {
Datetime,
version
}