Browse Source

Merge pull request #180462 in DEC/fineui from master to feature/x

* commit '0f9fcda2e7e4db2f208480da8b9b867d52b74c23':
  无JIRA  类型补充
  KERNEL-12866 feat: BI.Switch 对外发事件的时候带上selected参数
master
superman 2 years ago
parent
commit
83d1ac2f3c
  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