From 745310684fa18897bd69cc766882d45c7d136c52 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 3 Aug 2018 10:24:09 +0800 Subject: [PATCH] =?UTF-8?q?BI-19821=20=E5=B8=83=E5=B1=80=E9=97=B4=E8=B7=9D?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 32 ++++++++++++---------- dist/fineui.js | 32 ++++++++++++---------- dist/widget.js | 32 ++++++++++++---------- src/widget/dynamicdate/dynamicdate.card.js | 32 ++++++++++++---------- 4 files changed, 68 insertions(+), 60 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 8f24531d3..5b2431908 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 0f4137a97..d73f80ecc 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 783a55502..f35ff65fe 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 b25fe2018..21c4c8248 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