Browse Source

Pull request #3089: KERNEL-12866 feat: BI.Switch 对外发事件的时候带上selected参数

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

* commit '1998eaf50642d0393dcf141f9687e7c3470a94b0':
  无JIRA  类型补充
  KERNEL-12866 feat: BI.Switch 对外发事件的时候带上selected参数
es6
Dailer-刘荣歆 2 years ago
parent
commit
0f9fcda2e7
  1. 2
      src/case/button/switch.js
  2. 2
      typescript/base/single/label/abstract.label.ts

2
src/case/button/switch.js

@ -77,7 +77,7 @@ BI.Switch = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.Switch.superclass.doClick.apply(this, arguments);
this.fireEvent(BI.Switch.EVENT_CHANGE);
this.fireEvent(BI.Switch.EVENT_CHANGE, this.isSelected());
}
});
BI.Switch.EVENT_CHANGE = "EVENT_CHANGE";

2
typescript/base/single/label/abstract.label.ts

@ -10,7 +10,7 @@ export declare class AbstractLabel extends Single {
textHeight?: number | null;
highLight?: boolean;
handler?: Function | null;
text?: string;
text?: string | ((context: any) => string);
} & Single['props']
doRedMark(...args: any[]): void;

Loading…
Cancel
Save