Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.
This repository was archived by the owner on May 31, 2021. It is now read-only.

datetimePicker 日期限制问题 #627

Open
@kekxv

Description

@kekxv

以下代码会导致日期锁死在 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];
            },
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions