From e34a320913d29292bce991466c8fb0646a523646 Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 26 May 2020 14:42:09 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-31989=20refactor:=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/calendar/picker.year.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/widget/date/calendar/picker.year.js b/src/widget/date/calendar/picker.year.js index fafbe40dc..fef2ba069 100644 --- a/src/widget/date/calendar/picker.year.js +++ b/src/widget/date/calendar/picker.year.js @@ -50,7 +50,8 @@ BI.YearPicker = BI.inherit(BI.Widget, { type: "bi.year_date_combo", min: o.min, behaviors: o.behaviors, - max: o.max + max: o.max, + width: 50 }); this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () { self.setValue(self.year.getValue()); @@ -69,13 +70,7 @@ BI.YearPicker = BI.inherit(BI.Widget, { }, { type: "bi.center_adapt", items: [{ - el: { - type: "bi.horizontal_float", - width: 50, - items: [{ - el: this.year - }] - } + el: this.year }] }, { el: {