problem description
when using the DatePicker component in element, I want to limit the optional dates to an array where dates are selectable and other dates are disabled
the environmental background of the problems and what methods you have tried
tried to use disabledDate in picker-options, but reported an error
related codes
/ / Please paste the code text below (do not replace the code with pictures)
// avaiableDateList["2019-02-01","2019-02-02",...]
disabledDate: (time) => {
let date = moment(time.getTime()).format("YYYY-MM-DD")
return this.avaiableDateList.indexOf(date) === -1;
}