|
|
@@ -4,12 +4,13 @@ const coinTop50 = {
|
|
|
return {
|
|
|
date :document.getElementById("startDate").innerText,
|
|
|
items: [],
|
|
|
+ datepicker:null
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.requestData(this.date)
|
|
|
const elems = document.querySelectorAll('.datepicker');
|
|
|
- M.Datepicker.init(elems, {onClose:()=>{
|
|
|
+ this.datepicker = M.Datepicker.init(elems, {onClose:()=>{
|
|
|
this.date = this.datepicker.date.toISOString().slice(0,10)
|
|
|
}});
|
|
|
},
|