admin管理员组

文章数量:1291518

I am using vuepic/vue-date-picker month-picker (picked), I try to disable the months other than the current and previous month but I am unable to do that. Styles are not applied. what is the mistack in this?

<vue-date-picker :enable-time-picker="false" v-model="reportFromDate" type="month" :format="'MMM yyyy'" :editable="false" :clearable="false" :disabled-dates="disabledDates" popup-class="month-picker rounded custom" 
                auto-apply month-picker></vue-date-picker>

disabledDates(date) {
            return date >= new Date() || date <= moment(new Date()).subtract(2, "months").endOf("month")
        },

I am expecting the disabling of months

本文标签: