@vnejs/module.controller.preload 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare abstract class ModuleControllerPreload<TEvents extends ModuleCont
|
|
|
6
6
|
abstract EVENT_SHOW: string;
|
|
7
7
|
abstract EVENT_HIDE: string;
|
|
8
8
|
abstract EVENT_PRELOAD: string;
|
|
9
|
-
isShow: boolean;
|
|
10
9
|
PRELOAD_LABELS: string[];
|
|
11
10
|
PRELOAD_EVENTS: string[];
|
|
11
|
+
isShow: boolean;
|
|
12
12
|
subscribe: () => void;
|
|
13
13
|
onShow: () => Promise<unknown[]> | undefined;
|
|
14
14
|
onHide: () => void;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
export class ModuleControllerPreload extends ModuleCore {
|
|
3
|
-
isShow = false;
|
|
4
3
|
PRELOAD_LABELS = [];
|
|
5
4
|
PRELOAD_EVENTS = [];
|
|
5
|
+
isShow = false;
|
|
6
6
|
subscribe = () => {
|
|
7
7
|
this.on(this.EVENT_SHOW, this.onShow);
|
|
8
8
|
this.on(this.EVENT_HIDE, this.onHide);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -27,11 +27,11 @@ export abstract class ModuleControllerPreload<
|
|
|
27
27
|
abstract EVENT_HIDE: string;
|
|
28
28
|
abstract EVENT_PRELOAD: string;
|
|
29
29
|
|
|
30
|
-
isShow = false;
|
|
31
|
-
|
|
32
30
|
PRELOAD_LABELS: string[] = [];
|
|
33
31
|
PRELOAD_EVENTS: string[] = [];
|
|
34
32
|
|
|
33
|
+
isShow = false;
|
|
34
|
+
|
|
35
35
|
subscribe = () => {
|
|
36
36
|
this.on(this.EVENT_SHOW, this.onShow);
|
|
37
37
|
this.on(this.EVENT_HIDE, this.onHide);
|