From 58839a6105d48e0c45bd987cd40d0086db68e1e3 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 15 Jun 2017 11:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.code.js | 4 ++++ src/widget/date/combo.date.js | 2 +- src/widget/date/trigger.date.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base/single/editor/editor.code.js b/src/base/single/editor/editor.code.js index ab2dc122b..2852399c0 100644 --- a/src/base/single/editor/editor.code.js +++ b/src/base/single/editor/editor.code.js @@ -138,6 +138,10 @@ BI.CodeEditor = BI.inherit(BI.Single, { }) }, + focus: function () { + this.editor.focus(); + }, + setStyle: function (style) { this.style = style; this.element.css(style); diff --git a/src/widget/date/combo.date.js b/src/widget/date/combo.date.js index d52739790..e70e30138 100644 --- a/src/widget/date/combo.date.js +++ b/src/widget/date/combo.date.js @@ -8,7 +8,7 @@ BI.DateCombo = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.DateCombo.superclass._defaultConfig.apply(this, arguments), { - baseCls: "bi-date-combo", + baseCls: "bi-date-combo bi-border", height: 30 }); }, diff --git a/src/widget/date/trigger.date.js b/src/widget/date/trigger.date.js index 8d746bbd1..8a87465a8 100644 --- a/src/widget/date/trigger.date.js +++ b/src/widget/date/trigger.date.js @@ -9,7 +9,7 @@ BI.DateTrigger = BI.inherit(BI.Trigger, { _defaultConfig: function () { return BI.extend(BI.DateTrigger.superclass._defaultConfig.apply(this, arguments), { - extraCls: "bi-date-trigger bi-border", + extraCls: "bi-date-trigger", min: '1900-01-01', //最小日期 max: '2099-12-31', //最大日期 height: 25