From 643a31316823e1334bbb180ed08a932479eb86f7 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 9 Mar 2021 20:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20revert?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=8E=A7=E4=BB=B6=E7=9A=84=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/dynamicdate/dynamicdate.combo.js | 14 +++++++++++--- .../dynamicdatetime/dynamicdatetime.combo.js | 16 ++++++++++++---- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/src/widget/dynamicdate/dynamicdate.combo.js b/src/widget/dynamicdate/dynamicdate.combo.js index 774e41712..05f48e61e 100644 --- a/src/widget/dynamicdate/dynamicdate.combo.js +++ b/src/widget/dynamicdate/dynamicdate.combo.js @@ -7,13 +7,22 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { }, props: { - baseCls: "bi-dynamic-date-combo", + baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", height: 24, minDate: "1900-01-01", maxDate: "2099-12-31", format: "", allowEdit: true, supportDynamic: true, + attributes: { + tabIndex: -1 + } + }, + + _init: function () { + var o = this.options; + o.height -= 2; + BI.DynamicDateCombo.superclass._init.apply(this, arguments); }, render: function () { @@ -39,7 +48,6 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { items: [{ el: { type: "bi.combo", - cls: "bi-border bi-focus-shadow bi-border-radius", container: opts.container, ref: function () { self.combo = this; @@ -55,7 +63,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { format: opts.format, allowEdit: opts.allowEdit, watermark: opts.watermark, - height: opts.height - 2, + height: opts.height, value: opts.value, ref: function () { self.trigger = this; diff --git a/src/widget/dynamicdatetime/dynamicdatetime.combo.js b/src/widget/dynamicdatetime/dynamicdatetime.combo.js index 7764b2b96..05f63156b 100644 --- a/src/widget/dynamicdatetime/dynamicdatetime.combo.js +++ b/src/widget/dynamicdatetime/dynamicdatetime.combo.js @@ -7,13 +7,22 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { }, props: { - baseCls: "bi-dynamic-date-combo", + baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius", height: 24, minDate: "1900-01-01", maxDate: "2099-12-31", format: "", allowEdit: true, - supportDynamic: true + supportDynamic: true, + attributes: { + tabIndex: -1 + } + }, + + _init: function () { + var o = this.options; + o.height -= 2; + BI.DynamicDateTimeCombo.superclass._init.apply(this, arguments); }, render: function () { @@ -39,7 +48,6 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { items: [{ el: { type: "bi.combo", - cls: "bi-border bi-focus-shadow bi-border-radius", destroyWhenHide: true, container: opts.container, ref: function () { @@ -55,7 +63,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { allowEdit: opts.allowEdit, watermark: opts.watermark, format: opts.format, - height: opts.height - 2, + height: opts.height, value: opts.value, ref: function () { self.trigger = this;