Browse Source

Pull request #1825: 无JIRA任务 revert日期控件的边框处理

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '643a31316823e1334bbb180ed08a932479eb86f7':
  无JIRA任务 revert日期控件的边框处理
es6
windy 4 years ago
parent
commit
d4109d52b6
  1. 14
      src/widget/dynamicdate/dynamicdate.combo.js
  2. 16
      src/widget/dynamicdatetime/dynamicdatetime.combo.js

14
src/widget/dynamicdate/dynamicdate.combo.js

@ -7,13 +7,22 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 24, height: 24,
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true, allowEdit: true,
supportDynamic: true, supportDynamic: true,
attributes: {
tabIndex: -1
}
},
_init: function () {
var o = this.options;
o.height -= 2;
BI.DynamicDateCombo.superclass._init.apply(this, arguments);
}, },
render: function () { render: function () {
@ -39,7 +48,6 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
items: [{ items: [{
el: { el: {
type: "bi.combo", type: "bi.combo",
cls: "bi-border bi-focus-shadow bi-border-radius",
container: opts.container, container: opts.container,
ref: function () { ref: function () {
self.combo = this; self.combo = this;
@ -55,7 +63,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
format: opts.format, format: opts.format,
allowEdit: opts.allowEdit, allowEdit: opts.allowEdit,
watermark: opts.watermark, watermark: opts.watermark,
height: opts.height - 2, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.trigger = this; self.trigger = this;

16
src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -7,13 +7,22 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
}, },
props: { props: {
baseCls: "bi-dynamic-date-combo", baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
height: 24, height: 24,
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true, 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 () { render: function () {
@ -39,7 +48,6 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
items: [{ items: [{
el: { el: {
type: "bi.combo", type: "bi.combo",
cls: "bi-border bi-focus-shadow bi-border-radius",
destroyWhenHide: true, destroyWhenHide: true,
container: opts.container, container: opts.container,
ref: function () { ref: function () {
@ -55,7 +63,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
allowEdit: opts.allowEdit, allowEdit: opts.allowEdit,
watermark: opts.watermark, watermark: opts.watermark,
format: opts.format, format: opts.format,
height: opts.height - 2, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {
self.trigger = this; self.trigger = this;

Loading…
Cancel
Save