diff --git a/dist/bundle.js b/dist/bundle.js index 93a2dda54..793bedabe 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -87868,6 +87868,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { var conf = BI.YearPicker.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { baseCls: "bi-year-picker bi-background", + behaviors: {}, height: 40, min: "1900-01-01", // 最小日期 max: "2099-12-31" // 最大日期 @@ -87908,6 +87909,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { this.year = BI.createWidget({ type: "bi.year_date_combo", min: o.min, + behaviors: o.behaviors, max: o.max }); this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () { @@ -87968,7 +87970,8 @@ BI.YearPicker = BI.inherit(BI.Widget, { } }); BI.YearPicker.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.year_picker", BI.YearPicker);/** +BI.shortcut("bi.year_picker", BI.YearPicker); +/** * Created by GUY on 2015/9/7. * @class BI.DateCalendarPopup * @extends BI.Widget @@ -108404,6 +108407,7 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear ref: function () { self.yearPicker = this; }, + behaviors: o.behaviors, height: 30, listeners: [{ eventName: BI.YearPicker.EVENT_CHANGE, @@ -108475,7 +108479,8 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear } }); BI.StaticYearMonthCard.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard);BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { +BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard); +BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { props: { baseCls: "bi-year-month-combo bi-border", diff --git a/dist/widget.js b/dist/widget.js index febff6a0a..3136d6793 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -709,6 +709,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { var conf = BI.YearPicker.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { baseCls: "bi-year-picker bi-background", + behaviors: {}, height: 40, min: "1900-01-01", // 最小日期 max: "2099-12-31" // 最大日期 @@ -749,6 +750,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { this.year = BI.createWidget({ type: "bi.year_date_combo", min: o.min, + behaviors: o.behaviors, max: o.max }); this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () { @@ -809,7 +811,8 @@ BI.YearPicker = BI.inherit(BI.Widget, { } }); BI.YearPicker.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.year_picker", BI.YearPicker);/** +BI.shortcut("bi.year_picker", BI.YearPicker); +/** * Created by GUY on 2015/9/7. * @class BI.DateCalendarPopup * @extends BI.Widget @@ -21245,6 +21248,7 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear ref: function () { self.yearPicker = this; }, + behaviors: o.behaviors, height: 30, listeners: [{ eventName: BI.YearPicker.EVENT_CHANGE, @@ -21316,7 +21320,8 @@ BI.shortcut("bi.dynamic_year_month_card", BI.DynamicYearMonthCard);BI.StaticYear } }); BI.StaticYearMonthCard.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard);BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { +BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard); +BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { props: { baseCls: "bi-year-month-combo bi-border", diff --git a/src/widget/date/calendar/picker.year.js b/src/widget/date/calendar/picker.year.js index bfd3de39e..5fe5deef2 100644 --- a/src/widget/date/calendar/picker.year.js +++ b/src/widget/date/calendar/picker.year.js @@ -8,6 +8,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { var conf = BI.YearPicker.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { baseCls: "bi-year-picker bi-background", + behaviors: {}, height: 40, min: "1900-01-01", // 最小日期 max: "2099-12-31" // 最大日期 @@ -48,6 +49,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { this.year = BI.createWidget({ type: "bi.year_date_combo", min: o.min, + behaviors: o.behaviors, max: o.max }); this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () { @@ -108,4 +110,4 @@ BI.YearPicker = BI.inherit(BI.Widget, { } }); BI.YearPicker.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.year_picker", BI.YearPicker); \ No newline at end of file +BI.shortcut("bi.year_picker", BI.YearPicker); diff --git a/src/widget/yearmonth/card.static.yearmonth.js b/src/widget/yearmonth/card.static.yearmonth.js index d208ba6d2..b0860ad42 100644 --- a/src/widget/yearmonth/card.static.yearmonth.js +++ b/src/widget/yearmonth/card.static.yearmonth.js @@ -42,6 +42,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, { ref: function () { self.yearPicker = this; }, + behaviors: o.behaviors, height: 30, listeners: [{ eventName: BI.YearPicker.EVENT_CHANGE, @@ -113,4 +114,4 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, { } }); BI.StaticYearMonthCard.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard); \ No newline at end of file +BI.shortcut("bi.static_year_month_card", BI.StaticYearMonthCard);