|
|
|
@ -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" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|