Browse Source

Merge pull request #37892 in DEC/fineui from master to feature/x

* commit 'f288b0518a8c4be4ad3fab32d074e0f0bb7bbde4':
  BI-104841 fix: ie11的在fill布局中解决不出现滚动条问题中, 只识别overflow:hidden或者不为零的min-height
  无jira SearchTextValueCombo 的布局修正
  无JIRA item存在el的情况下,也同时支持_lgap和lgap
es6
superman 3 years ago
parent
commit
1f3784ace7
  1. 7
      src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js
  2. 12
      src/core/wrapper/layout.js
  3. 6
      src/less/base/trigger/trigger.searchtextvalue.less
  4. 8
      src/less/base/trigger/trigger.text.less
  5. 3
      src/less/core/wrapper/flex.horizontal.less
  6. 3
      src/less/core/wrapper/flex.vertical.less
  7. 3
      src/less/core/wrapper/flex.wrapper.horizontal.less
  8. 3
      src/less/core/wrapper/flex.wrapper.vertical.less

7
src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js

@ -23,11 +23,16 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
self.populate(newValue);
}) : o.items;
var height = BI.isNumeric(o.height) ? (o.height - (o.simple ? 1 : 2)) : o.height;
var width = BI.isNumeric(o.width) ? (o.width - 2) : o.width;
return {
type: "bi.combo",
cls: (o.simple ? "bi-border-bottom" : "bi-border") + " bi-focus-shadow",
container: o.container,
adjustLength: 2,
height: height,
width: width,
toggle: false,
ref: function () {
self.combo = this;
@ -40,7 +45,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
self.trigger = this;
},
items: o.items,
height: o.height - (o.simple ? 1 : 2),
height: height,
text: o.text,
defaultText: o.defaultText,
value: o.value,

12
src/core/wrapper/layout.js

@ -294,37 +294,37 @@ BI.Layout = BI.inherit(BI.Widget, {
_optimiseItemLgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.lgap : item._lgap) || 0;
return ((!item.type && item.el) ? ((item._lgap || 0) + (item.lgap || 0)) : item._lgap) || 0;
}
return (item._lgap || 0) + (item.lgap || 0);
},
_optimiseItemRgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.rgap : item._rgap) || 0;
return ((!item.type && item.el) ? ((item._rgap || 0) + (item.rgap || 0)) : item._rgap) || 0;
}
return (item._rgap || 0) + (item.rgap || 0);
},
_optimiseItemTgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.tgap : item._tgap) || 0;
return ((!item.type && item.el) ? ((item._tgap || 0) + (item.tgap || 0)) : item._tgap) || 0;
}
return (item._tgap || 0) + (item.tgap || 0);
},
_optimiseItemBgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.bgap : item._bgap) || 0;
return ((!item.type && item.el) ? ((item._bgap || 0) + (item.bgap || 0)) : item._bgap) || 0;
}
return (item._bgap || 0) + (item.bgap || 0);
},
_optimiseItemHgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.hgap : item._hgap) || 0;
return ((!item.type && item.el) ? ((item._hgap || 0) + (item.hgap || 0)) : item._hgap) || 0;
}
return (item._hgap || 0) + (item.hgap || 0);
},
_optimiseItemVgap: function (item) {
if (BI.Providers.getProvider("bi.provider.system").getLayoutOptimize()) {
return ((!item.type && item.el) ? item.vgap : item._vgap) || 0;
return ((!item.type && item.el) ? ((item._vgap || 0) + (item.vgap || 0)) : item._vgap) || 0;
}
return (item._vgap || 0) + (item.vgap || 0);
},

6
src/less/base/trigger/trigger.searchtextvalue.less

@ -5,7 +5,11 @@
color: @color-bi-text-error-text-trigger;
}
&:where(:not(&:hover)) .clear-button {
.clear-button {
display: none;
}
&:hover .clear-button {
display: block;
}
}

8
src/less/base/trigger/trigger.text.less

@ -4,8 +4,12 @@
&.error .select-text-label {
color: @color-bi-text-error-text-trigger;
}
&:where(:not(&:hover)) .clear-button {
.clear-button {
display: none;
}
&:hover .clear-button {
display: block;
}
}

3
src/less/core/wrapper/flex.horizontal.less

@ -170,8 +170,9 @@
> .f-f {
&:not(.f-s-n) {
min-width: 0;
min-width: 1px;
}
-webkit-flex-grow: 1;
-moz-flex-grow: 1;
-ms-flex-grow: 1;

3
src/less/core/wrapper/flex.vertical.less

@ -169,8 +169,9 @@
> .f-f {
&:not(.f-s-n) {
min-height: 0;
min-height: 1px;
}
-webkit-flex-grow: 1;
-moz-flex-grow: 1;
-ms-flex-grow: 1;

3
src/less/core/wrapper/flex.wrapper.horizontal.less

@ -266,8 +266,9 @@
> .f-f {
&:not(.f-s-n) {
min-width: 0;
min-width: 1px;
}
-webkit-flex-grow: 1;
-moz-flex-grow: 1;
-ms-flex-grow: 1;

3
src/less/core/wrapper/flex.wrapper.vertical.less

@ -260,8 +260,9 @@
> .f-f {
&:not(.f-s-n) {
min-height: 0;
min-height: 1px;
}
-webkit-flex-grow: 1;
-moz-flex-grow: 1;
-ms-flex-grow: 1;

Loading…
Cancel
Save