Browse Source

Pull request #1763: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '4d1682486fd107b3e305db7c9821f3cbadf9ab17':
  bugfix
es6
guy 4 years ago
parent
commit
d3fe87070b
  1. 4
      src/widget/datepane/datepane.js
  2. 4
      src/widget/datetimepane/datetimepane.js

4
src/widget/datepane/datepane.js

@ -4,6 +4,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
baseCls: "bi-dynamic-date-pane", baseCls: "bi-dynamic-date-pane",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
supportDynamic: true,
}, },
render: function () { render: function () {
@ -13,6 +14,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
items: [{ items: [{
el: { el: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: 30, height: 30,
items: BI.createItems([{ items: BI.createItems([{
@ -181,4 +183,4 @@ BI.shortcut("bi.dynamic_date_pane", BI.DynamicDatePane);
BI.extend(BI.DynamicDatePane, { BI.extend(BI.DynamicDatePane, {
Static: 1, Static: 1,
Dynamic: 2 Dynamic: 2
}); });

4
src/widget/datetimepane/datetimepane.js

@ -4,6 +4,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
baseCls: "bi-dynamic-date-pane", baseCls: "bi-dynamic-date-pane",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
supportDynamic: true,
}, },
render: function () { render: function () {
@ -13,6 +14,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
items: [{ items: [{
el: { el: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: 30, height: 30,
items: BI.createItems([{ items: BI.createItems([{
@ -177,4 +179,4 @@ BI.shortcut("bi.dynamic_date_time_pane", BI.DynamicDateTimePane);
BI.extend(BI.DynamicDateTimePane, { BI.extend(BI.DynamicDateTimePane, {
Static: 1, Static: 1,
Dynamic: 2 Dynamic: 2
}); });

Loading…
Cancel
Save