diff --git a/dist/bundle.js b/dist/bundle.js index 8f24531d3c..5b24319081 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -91234,8 +91234,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { self.fireEvent("EVENT_CHANGE"); } }] - }, - bgap: 5 + } }], ref: function () { self.workDay = this; @@ -91261,16 +91260,19 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { var self = this; var items = BI.map(values, function (idx, value) { return { - type: "bi.dynamic_date_param_item", - dateType: value.dateType, - value: value.value, - offset: value.offset, - listeners: [{ - eventName: "EVENT_CHANGE", - action: function () { - self.fireEvent("EVENT_CHANGE"); - } - }] + el: { + type: "bi.dynamic_date_param_item", + dateType: value.dateType, + value: value.value, + offset: value.offset, + listeners: [{ + eventName: "EVENT_CHANGE", + action: function () { + self.fireEvent("EVENT_CHANGE"); + } + }] + }, + tgap: idx === 0 ? 5 : 0 }; }); @@ -91458,9 +91460,9 @@ BI.extend(BI.DynamicDateCard, { WORK_DAY: 6 }, OFFSET: { - CURRENT: 1, - BEGIN: 2, - END: 3 + CURRENT: "1", + BEGIN: "2", + END: "3" } });BI.DynamicDateCombo = BI.inherit(BI.Single, { diff --git a/dist/fineui.js b/dist/fineui.js index 0f4137a973..d73f80ecc5 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -91455,8 +91455,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { self.fireEvent("EVENT_CHANGE"); } }] - }, - bgap: 5 + } }], ref: function () { self.workDay = this; @@ -91482,16 +91481,19 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { var self = this; var items = BI.map(values, function (idx, value) { return { - type: "bi.dynamic_date_param_item", - dateType: value.dateType, - value: value.value, - offset: value.offset, - listeners: [{ - eventName: "EVENT_CHANGE", - action: function () { - self.fireEvent("EVENT_CHANGE"); - } - }] + el: { + type: "bi.dynamic_date_param_item", + dateType: value.dateType, + value: value.value, + offset: value.offset, + listeners: [{ + eventName: "EVENT_CHANGE", + action: function () { + self.fireEvent("EVENT_CHANGE"); + } + }] + }, + tgap: idx === 0 ? 5 : 0 }; }); @@ -91679,9 +91681,9 @@ BI.extend(BI.DynamicDateCard, { WORK_DAY: 6 }, OFFSET: { - CURRENT: 1, - BEGIN: 2, - END: 3 + CURRENT: "1", + BEGIN: "2", + END: "3" } });BI.DynamicDateCombo = BI.inherit(BI.Single, { diff --git a/dist/widget.js b/dist/widget.js index 783a555026..f35ff65fe9 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -3029,8 +3029,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { self.fireEvent("EVENT_CHANGE"); } }] - }, - bgap: 5 + } }], ref: function () { self.workDay = this; @@ -3056,16 +3055,19 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { var self = this; var items = BI.map(values, function (idx, value) { return { - type: "bi.dynamic_date_param_item", - dateType: value.dateType, - value: value.value, - offset: value.offset, - listeners: [{ - eventName: "EVENT_CHANGE", - action: function () { - self.fireEvent("EVENT_CHANGE"); - } - }] + el: { + type: "bi.dynamic_date_param_item", + dateType: value.dateType, + value: value.value, + offset: value.offset, + listeners: [{ + eventName: "EVENT_CHANGE", + action: function () { + self.fireEvent("EVENT_CHANGE"); + } + }] + }, + tgap: idx === 0 ? 5 : 0 }; }); @@ -3253,9 +3255,9 @@ BI.extend(BI.DynamicDateCard, { WORK_DAY: 6 }, OFFSET: { - CURRENT: 1, - BEGIN: 2, - END: 3 + CURRENT: "1", + BEGIN: "2", + END: "3" } });BI.DynamicDateCombo = BI.inherit(BI.Single, { diff --git a/src/widget/dynamicdate/dynamicdate.card.js b/src/widget/dynamicdate/dynamicdate.card.js index b25fe20186..21c4c8248e 100644 --- a/src/widget/dynamicdate/dynamicdate.card.js +++ b/src/widget/dynamicdate/dynamicdate.card.js @@ -111,8 +111,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { self.fireEvent("EVENT_CHANGE"); } }] - }, - bgap: 5 + } }], ref: function () { self.workDay = this; @@ -138,16 +137,19 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { var self = this; var items = BI.map(values, function (idx, value) { return { - type: "bi.dynamic_date_param_item", - dateType: value.dateType, - value: value.value, - offset: value.offset, - listeners: [{ - eventName: "EVENT_CHANGE", - action: function () { - self.fireEvent("EVENT_CHANGE"); - } - }] + el: { + type: "bi.dynamic_date_param_item", + dateType: value.dateType, + value: value.value, + offset: value.offset, + listeners: [{ + eventName: "EVENT_CHANGE", + action: function () { + self.fireEvent("EVENT_CHANGE"); + } + }] + }, + tgap: idx === 0 ? 5 : 0 }; }); @@ -335,9 +337,9 @@ BI.extend(BI.DynamicDateCard, { WORK_DAY: 6 }, OFFSET: { - CURRENT: 1, - BEGIN: 2, - END: 3 + CURRENT: "1", + BEGIN: "2", + END: "3" } }); \ No newline at end of file