A
A
Alexander Ivanov2018-08-07 10:34:48
Vue.js
Alexander Ivanov, 2018-08-07 10:34:48

How to remove the datepicker warning in vue?

https://github.com/darrenfang/vuetify-datetime-picker
- plugin page

Invalid prop: type check failed for prop "datetime". Expected Date, got String.

<v-datetime-picker
        :label="datetimeLabel"
        :format="datetimeFormat"
        :datetime="datetime"
        @input="updateDatetime">
</v-datetime-picker>

datetime:'',
datetimeFormat: 'YYYY-MM-DD HH:mm:ss',
datetimeLabel:'Дата публикации',

...
updateDatetime(datetime){
  this.datetime=datetime;
},

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question