Browse Source

Pull request #83089: REPORT-74080 fix: 删除 iconGap 默认的水平间距

Merge in DEC/fineui from ~TREECAT/dec-fineui:release/11.0 to release/11.0

* commit 'a28f41ce7ee46aa6b8921091308525fe9d9d649e':
  REPORT-74080 fix: 删除 iconGap 默认的水平间距
research/test
treecat 3 years ago
parent
commit
bd9d671eb7
  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)) { if (isVertical(props.iconPosition)) {
// 图标高度和文字高度默认相等 // 图标高度和文字高度默认相等
adaptiveHeight += (props.textHeight || 16) * 2; adaptiveHeight += (props.textHeight || 16) * 2;
adaptiveHeight += props.iconGap || 4; adaptiveHeight += props.iconGap || 0;
var tGap = props.tgap || props.vgap || 2; var tGap = props.tgap || props.vgap || 2;
var bGap = props.bgap || props.vgap || 2; var bGap = props.bgap || props.vgap || 2;
adaptiveHeight += (tGap + bGap); adaptiveHeight += (tGap + bGap);
@ -58,7 +58,7 @@
bgap: 0, bgap: 0,
lgap: 0, lgap: 0,
rgap: 0, rgap: 0,
iconGap: 4, iconGap: 0,
iconPosition: "left" iconPosition: "left"
}); });
}, },

Loading…
Cancel
Save