Browse Source

Pull request #2010: 无JIRA任务 jsx生命周期函数补全

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

* commit 'fb1b2220c7e31cb0e9dde3e758b4662a17b9eb69':
  chore: jsx生命周期函数补全
es6
Teller 3 years ago
parent
commit
0b14605693
  1. 10
      typescript/shims-tsx.ts

10
typescript/shims-tsx.ts

@ -49,6 +49,16 @@ interface ElementClassProps<T> extends UIProps {
beforeRender(callback: () => void): void; beforeRender(callback: () => void): void;
beforeInit(callback: () => void): void; beforeInit(callback: () => void): void;
render(): any; render(): any;
beforeCreate(): void;
created(): void;
beforeMount(): void;
mounted(): void;
shouldUpdate(): void;
update(): void;
beforeUpdate(): void;
updated(): void;
beforeDestroy(): void;
destroyed(): void;
} }
declare namespace JSX { declare namespace JSX {

Loading…
Cancel
Save