Browse Source

无jira fix: 改一下button的代码格式

es6
Treecat 2 years ago
parent
commit
16ec4f78d1
  1. 6
      src/base/single/button/buttons/button.js

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

@ -76,12 +76,10 @@
var hasBorder = false var hasBorder = false
if (BI.isNumber(o.height)) { if (BI.isNumber(o.height)) {
if (!isVertical(o.iconPosition)) { if (!isVertical(o.iconPosition)) {
if (o.clear || o.block || o.light) { if (!(o.clear && o.block && o.light)) {
lineHeight = o.height;
} else {
hasBorder = true; hasBorder = true;
lineHeight = o.height;
} }
lineHeight = o.height;
} else { } else {
lineHeight = textHeight; lineHeight = textHeight;
} }

Loading…
Cancel
Save