Browse Source

KERNEL-13489 fix: button 的缩写改成箭头函数

es6
Treecat 2 years ago
parent
commit
0572011a85
  1. 4
      src/base/single/button/buttons/button.js

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

@ -76,7 +76,7 @@
type: "bi.center_adapt",
horizontalAlign: o.textAlign,
element: this,
ref(ref) {
ref: (ref) => {
self.containerRef = ref;
},
hgap: o.hgap,
@ -167,7 +167,7 @@
tgap: o.iconPosition === "top" ? o.iconGap : 0,
bgap: o.iconPosition === "bottom" ? o.iconGap : 0,
};
var items = [this.icon, BI.extend({ el: this.text }, gapContainer)];
if (o.iconPosition === "right" || o.iconPosition === "bottom") {
items.reverse();

Loading…
Cancel
Save