From bd2c186696a39257f9ea6bb219fe7d8860a336fc Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 11 Jan 2021 11:11:46 +0800 Subject: [PATCH] update --- src/widget/datepane/datepane.js | 4 +++- src/widget/datetimepane/datetimepane.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widget/datepane/datepane.js b/src/widget/datepane/datepane.js index c2bdf7451c..4abd441767 100644 --- a/src/widget/datepane/datepane.js +++ b/src/widget/datepane/datepane.js @@ -1,7 +1,9 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { props: { - baseCls: "bi-dynamic-date-pane" + baseCls: "bi-dynamic-date-pane", + minDate: "1900-01-01", + maxDate: "2099-12-31", }, render: function () { diff --git a/src/widget/datetimepane/datetimepane.js b/src/widget/datetimepane/datetimepane.js index 34e6f42246..119f162a26 100644 --- a/src/widget/datetimepane/datetimepane.js +++ b/src/widget/datetimepane/datetimepane.js @@ -1,7 +1,9 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, { props: { - baseCls: "bi-dynamic-date-pane" + baseCls: "bi-dynamic-date-pane", + minDate: "1900-01-01", + maxDate: "2099-12-31", }, render: function () {