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

Loading…
Cancel
Save