Browse Source

Pull request #3512: BI-125490 fix:basicbutton

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

* commit '3522c8dae9d05913d810f712be71c95629c06d5b':
  BI-125490 fix:basicbutton
es6
treecat-罗群 2 years ago
parent
commit
761a81a6ba
  1. 5
      packages/fineui/src/base/single/button/button.basic.js

5
packages/fineui/src/base/single/button/button.basic.js

@ -168,7 +168,8 @@ export class BasicButton extends Single {
return bubble;
};
const clk = async e => {
const clk = async (...args) => {
const [e] = args;
ev(e);
if (!this.isEnabled() || !this.isValid()) {
return;
@ -243,7 +244,7 @@ export class BasicButton extends Single {
return;
}
onClick.apply(this, arguments);
onClick.apply(this, args);
};
const triggerArr = (o.trigger || "").split(",");

Loading…
Cancel
Save