Browse Source

Merge pull request #2876 in VISUAL/fineui from DEC/fineui:feature/x to master

* commit '33be84856c3b39a6af6d473e84aa153048016e0c':
  REPORT-74080 fix: 删除 iconGap 默认的水平间距
es6
Aeolus.Zhang 2 years ago
parent
commit
65a23a8694
  1. 4
      src/base/single/button/buttons/button.js

4
src/base/single/button/buttons/button.js

@ -24,7 +24,7 @@
if (isVertical(props.iconPosition)) {
// 图标高度和文字高度默认相等
adaptiveHeight += (props.textHeight || 16) * 2;
adaptiveHeight += props.iconGap || 4;
adaptiveHeight += props.iconGap || 0;
var tGap = props.tgap || props.vgap || 2;
var bGap = props.bgap || props.vgap || 2;
adaptiveHeight += (tGap + bGap);
@ -58,7 +58,7 @@
bgap: 0,
lgap: 0,
rgap: 0,
iconGap: 4,
iconGap: 0,
iconPosition: "left"
});
},

Loading…
Cancel
Save