Browse Source

REPORT-74080 fix: 删除 iconGap 默认的水平间距

master
treecat 3 years ago
parent
commit
a28f41ce7e
  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