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

datetimePicker 日期限制问题 #627

Open
kekxv opened this issue Jun 30, 2020 · 0 comments
Open

datetimePicker 日期限制问题 #627

kekxv opened this issue Jun 30, 2020 · 0 comments

Comments

@kekxv
Copy link

kekxv commented Jun 30, 2020

以下代码会导致日期锁死在 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];
            },
        });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant