Home>
I want to create a date selection form with Vue.js.
https://www.kabanoki.net/3905/
I created this site as a reference, but an error occurs and it is no longer displayed.
[Vue warn]: Unknown custom element:<v-date-picker>-did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
--->at app/javascript/packs/components/about.vue
<Root>
Applicable source code
<template>
<v-date-picker: mode = "mode"
: formats = "formats"
v-model = "selectedDate"></v-date-picker>
</template>
<script>
import Vue from 'vue';
import VCalendar from 'v-calendar';
Vue.use (VCalendar);
export default {
data: function () {
return {
mode: 'single',
formats: {
input: ['YYYY-MM-DD'],
},
selectedDate: null,
}
}
}
</script>
https://www.kabanoki.net/3890/
V-calendar has been installed with npm referring to this site.
I don't know what caused it ...
-
Answer # 1
Related articles
- javascript - i want to create a hierarchical category with vuejs
- is it possible to create dynamic breadcrumbs with vuetify/vuejs?
- i want to create a search function with vuejs and laravel, but i do not know how to pass the search condition from vue to larave
- javascript - [create rails + vuejs application] displaying elementui
- javascript - [vuejs] i want to create an alphabet array smartly
- Vuejs code for making custom selection components with demo
- Create templates with Vuejs methods and composite using multiple templates
- How to create Android Studio Menu selection menu
- Vuejs Icon Selection Component Practice
Trends
v-date-picker
doesn't seem to be loaded correctly as far as you can see the error.How about making corrections with reference to this article?
Use Vue.js calendar library v-calendar to display data for each date on the calendar-qiita