Browse Source

无JIRA任务 border设在combo上的宽度也减一下

es6
windy 4 years ago
parent
commit
8cdd9cf818
  1. 3
      src/case/colorchooser/colorchooser.js
  2. 3
      src/case/combo/icontextvaluecombo/combo.icontextvalue.js
  3. 3
      src/case/combo/textvaluecheckcombo/combo.textvaluecheck.js
  4. 3
      src/case/combo/textvaluecombo/combo.textvalue.js
  5. 13
      src/widget/multilayerselecttree/multilayerselecttree.combo.js
  6. 13
      src/widget/multilayersingletree/multilayersingletree.combo.js
  7. 1
      src/widget/multiselect/multiselect.combo.js
  8. 1
      src/widget/multiselect/multiselect.combo.nobar.js
  9. 1
      src/widget/multiselect/multiselect.insert.combo.js
  10. 1
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  11. 1
      src/widget/multitree/multi.tree.combo.js
  12. 1
      src/widget/multitree/multi.tree.insert.combo.js
  13. 1
      src/widget/multitree/multi.tree.list.combo.js
  14. 1
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js
  15. 3
      src/widget/selecttree/selecttree.combo.js
  16. 1
      src/widget/singleselect/singleselect.combo.js
  17. 1
      src/widget/singleselect/singleselect.insert.combo.js
  18. 3
      src/widget/singletree/singletree.combo.js
  19. 3
      src/widget/textvaluedownlistcombo/combo.textvaluedownlist.js
  20. 5
      src/widget/time/time.combo.js
  21. 1
      src/widget/year/combo.year.js
  22. 1
      src/widget/yearmonth/combo.yearmonth.js
  23. 1
      src/widget/yearquarter/combo.yearquarter.js

3
src/case/colorchooser/colorchooser.js

@ -9,7 +9,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-color-chooser bi-border bi-focus-shadow",
baseCls: "bi-color-chooser bi-border",
value: "",
height: 24,
el: {},
@ -19,6 +19,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.ColorChooser.superclass._init.apply(this, arguments);
o.value = o.value || "";
this.combo = BI.createWidget({

3
src/case/combo/icontextvaluecombo/combo.icontextvalue.js

@ -5,7 +5,7 @@
BI.IconTextValueCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.IconTextValueCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-icon-text-value-combo bi-border bi-focus-shadow bi-border-radius",
baseCls: "bi-icon-text-value-combo bi-border bi-border-radius",
height: 24,
iconHeight: null,
iconWidth: null,
@ -16,6 +16,7 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.IconTextValueCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget({
type: "bi.select_icon_text_trigger",

3
src/case/combo/textvaluecheckcombo/combo.textvaluecheck.js

@ -6,7 +6,7 @@
BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.TextValueCheckCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-text-value-check-combo bi-border bi-focus-shadow",
baseCls: "bi-text-value-check-combo bi-border",
width: 100,
height: 24,
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,
@ -17,6 +17,7 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.TextValueCheckCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget({
type: "bi.select_text_trigger",

3
src/case/combo/textvaluecombo/combo.textvalue.js

@ -7,7 +7,7 @@
BI.TextValueCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.TextValueCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-text-value-combo bi-border bi-focus-shadow",
baseCls: "bi-text-value-combo bi-border",
height: 24,
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,
text: "",
@ -18,6 +18,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.TextValueCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget({
type: "bi.select_text_trigger",

13
src/widget/multilayerselecttree/multilayerselecttree.combo.js

@ -21,7 +21,11 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
},
_init: function () {
this.options.height -= 2;
var o = this.options;
if (this._shouldWrapper()) {
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
}
BI.MultiLayerSelectTreeCombo.superclass._init.apply(this, arguments);
},
@ -30,7 +34,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
var combo = (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig();
return (!o.allowEdit && o.itemsCreator === BI.emptyFn) ? combo : {
return this._shouldWrapper() ? combo : {
type: "bi.absolute",
items: [{
el: combo,
@ -62,6 +66,11 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
};
},
_shouldWrapper: function () {
var o = this.options;
return !o.allowEdit && o.itemsCreator === BI.emptyFn;
},
_getBaseConfig: function () {
var self = this, o = this.options;
return {

13
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -24,7 +24,11 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
},
_init: function () {
this.options.height -= 2;
var o = this.options;
if (this._shouldWrapper()) {
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
}
BI.MultiLayerSingleTreeCombo.superclass._init.apply(this, arguments);
},
@ -33,7 +37,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
var combo = (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig();
return (!o.allowEdit && o.itemsCreator === BI.emptyFn) ? combo : {
return this._shouldWrapper() ? combo : {
type: "bi.absolute",
height: o.height - 2,
items: [{
@ -66,6 +70,11 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
};
},
_shouldWrapper: function () {
var o = this.options;
return !o.allowEdit && o.itemsCreator === BI.emptyFn;
},
_getBaseConfig: function () {
var self = this, o = this.options;
return {

1
src/widget/multiselect/multiselect.combo.js

@ -18,7 +18,6 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiSelectCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
if (BI.isKey(self._startValue)) {

1
src/widget/multiselect/multiselect.combo.nobar.js

@ -17,7 +17,6 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiSelectNoBarCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
if (BI.isKey(self._startValue)) {

1
src/widget/multiselect/multiselect.insert.combo.js

@ -18,7 +18,6 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiSelectInsertCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
if (BI.isKey(self._startValue)) {

1
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -17,7 +17,6 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiSelectInsertNoBarCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
if (BI.isKey(self._startValue)) {

1
src/widget/multitree/multi.tree.combo.js

@ -28,7 +28,6 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiTreeCombo.superclass._init.apply(this, arguments);
var isInit = false;
var want2showCounter = false;

1
src/widget/multitree/multi.tree.insert.combo.js

@ -28,7 +28,6 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiTreeInsertCombo.superclass._init.apply(this, arguments);
var isInit = false;
var want2showCounter = false;

1
src/widget/multitree/multi.tree.list.combo.js

@ -29,7 +29,6 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.MultiTreeListCombo.superclass._init.apply(this, arguments);
var isInit = false;
var want2showCounter = false;

1
src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

@ -15,7 +15,6 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.SearchMultiTextValueCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));

3
src/widget/selecttree/selecttree.combo.js

@ -6,7 +6,7 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-tree-combo bi-border bi-focus-shadow bi-border-radius",
baseCls: "bi-select-tree-combo bi-border bi-border-radius",
height: 24,
text: "",
items: [],
@ -17,6 +17,7 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.SelectTreeCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget({

1
src/widget/singleselect/singleselect.combo.js

@ -18,7 +18,6 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.SingleSelectCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {

1
src/widget/singleselect/singleselect.insert.combo.js

@ -18,7 +18,6 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.SingleSelectInsertCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
BI.isKey(self._startValue) && (self.storeValue = self._startValue);

3
src/widget/singletree/singletree.combo.js

@ -6,7 +6,7 @@ BI.SingleTreeCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.SingleTreeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-tree-combo bi-border bi-focus-shadow bi-border-radius",
baseCls: "bi-single-tree-combo bi-border bi-border-radius",
trigger: {},
height: 24,
text: "",
@ -18,6 +18,7 @@ BI.SingleTreeCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.SingleTreeCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget(BI.extend({

3
src/widget/textvaluedownlistcombo/combo.textvaluedownlist.js

@ -5,7 +5,7 @@
BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.TextValueDownListCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-text-value-down-list-combo bi-border bi-focus-shadow",
baseCls: "bi-text-value-down-list-combo bi-border",
height: 24,
});
},
@ -13,6 +13,7 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.TextValueDownListCombo.superclass._init.apply(this, arguments);
this._createValueMap();

5
src/widget/time/time.combo.js

@ -21,7 +21,6 @@
_init: function () {
var o = this.options;
o.height -= 2;
BI.TimeCombo.superclass._init.apply(this, arguments);
},
@ -176,8 +175,8 @@
el: {
type: "bi.icon_button",
cls: "bi-trigger-icon-button time-font icon-size-16",
width: 22,
height: 22,
width: opts.height,
height: opts.height,
listeners: [{
eventName: BI.IconButton.EVENT_CHANGE,
action: function () {

1
src/widget/year/combo.year.js

@ -12,6 +12,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.DynamicYearCombo.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.trigger = BI.createWidget({

1
src/widget/yearmonth/combo.yearmonth.js

@ -12,6 +12,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.DynamicYearMonthCombo.superclass._init.apply(this, arguments);
this.storeValue = o.value;
this.storeTriggerValue = "";

1
src/widget/yearquarter/combo.yearquarter.js

@ -12,6 +12,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
o.height -= 2;
BI.isNumeric(o.width) && (o.width -= 2);
BI.DynamicYearQuarterCombo.superclass._init.apply(this, arguments);
this.storeValue = o.value;
self.storeTriggerValue = "";

Loading…
Cancel
Save