lihongxun945/jquery-weui

datetimePicker 日期限制问题

kekxv opened this issue · 0 comments

kekxv commented

以下代码会导致日期锁死在 2020-06-30 ,无法选择 2020-07-012020-07-07 这几个日期

$("#years-monthes").datetimePicker({
    title: '请选择预约时间',
        min: ”2020-06-30,
        max: ”2020-07-07,
        value: this.date,
        times: function () {
            return [
                {
                    values: ['上午', '下午']
                 }
              ];
            },
            onClose(picker) {
                self.date = (picker.value.slice(0, 3).join("-")) + " " + picker.value[3];
            },
        });