1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var Lifecycle;
|
4 | (function (Lifecycle) {
|
5 | Lifecycle["constructor"] = "constructor";
|
6 | Lifecycle["componentWillMount"] = "componentWillMount";
|
7 | Lifecycle["componentDidMount"] = "componentDidMount";
|
8 | Lifecycle["componentWillUpdate"] = "componentWillUpdate";
|
9 | Lifecycle["componentDidUpdate"] = "componentDidUpdate";
|
10 | Lifecycle["componentWillUnmount"] = "componentWillUnmount";
|
11 | Lifecycle["componentDidCatch"] = "componentDidCatch";
|
12 | Lifecycle["componentDidShow"] = "componentDidShow";
|
13 | Lifecycle["componentDidHide"] = "componentDidHide";
|
14 | Lifecycle["componentDidAttached"] = "componentDidAttached";
|
15 | Lifecycle["componentDidMoved"] = "componentDidMoved";
|
16 | Lifecycle["shouldComponentUpdate"] = "shouldComponentUpdate";
|
17 | Lifecycle["componentWillReceiveProps"] = "componentWillReceiveProps";
|
18 | })(Lifecycle = exports.Lifecycle || (exports.Lifecycle = {}));
|
19 | exports.PageLifecycle = {
|
20 | [Lifecycle.componentDidMount]: 'onLaunch',
|
21 | [Lifecycle.componentWillMount]: 'onLoad',
|
22 | [Lifecycle.componentWillUnmount]: 'onUnload',
|
23 | [Lifecycle.componentDidShow]: 'onShow',
|
24 | [Lifecycle.componentDidHide]: 'onHide'
|
25 | };
|
26 | exports.ComponentLifeCycle = {
|
27 | [Lifecycle.componentWillMount]: 'created',
|
28 | [Lifecycle.componentDidAttached]: 'attached',
|
29 | [Lifecycle.componentDidMount]: 'ready',
|
30 | [Lifecycle.componentDidMoved]: 'moved',
|
31 | [Lifecycle.componentWillUnmount]: 'detached'
|
32 | };
|
33 |
|
\ | No newline at end of file |