Browse Source

Pull request #3149: 无jira fix: 改一下button的代码写法

Merge in VISUAL/fineui from ~TREECAT/fineui:master to master

* commit '16ec4f78d13c3692382200d27344d7e333a005af':
  无jira fix: 改一下button的代码格式
es6
treecat-罗群 2 years ago
parent
commit
dafa625e95
  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