@extscreen/es-core 1.1.0 → 1.1.3
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.js +5 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2578,7 +2578,7 @@ function ESPageRootViewComponent() {
|
|
2578
2578
|
name: 'ESPageRootView',
|
2579
2579
|
processEventData(event, nativeEventName, nativeEventParams) {
|
2580
2580
|
switch (nativeEventName) {
|
2581
|
-
case '
|
2581
|
+
case 'onLifecycleChange':
|
2582
2582
|
event.lifecycle = nativeEventParams;
|
2583
2583
|
break;
|
2584
2584
|
case 'onDispatchKeyEvent':
|
@@ -2591,8 +2591,8 @@ function ESPageRootViewComponent() {
|
|
2591
2591
|
});
|
2592
2592
|
Vue.component('page', {
|
2593
2593
|
methods: {
|
2594
|
-
|
2595
|
-
this.$emit("
|
2594
|
+
onLifecycleChange(evt) {
|
2595
|
+
this.$emit("onLifecycleChange", evt);
|
2596
2596
|
},
|
2597
2597
|
onDispatchKeyEvent(evt) {
|
2598
2598
|
this.$emit("onDispatchKeyEvent", evt);
|
@@ -2600,7 +2600,7 @@ function ESPageRootViewComponent() {
|
|
2600
2600
|
},
|
2601
2601
|
render(h) {
|
2602
2602
|
const on = getEventRedirector.call(this, [
|
2603
|
-
['
|
2603
|
+
['onLifecycleChange', 'lifecycleChange'],
|
2604
2604
|
['onDispatchKeyEvent', 'dispatchKeyEvent'],
|
2605
2605
|
]);
|
2606
2606
|
return h('ESPageRootView',
|
@@ -2832,18 +2832,9 @@ var ESKeyEventMixin = {
|
|
2832
2832
|
var ESLifecycleMixin = {
|
2833
2833
|
mounted() {
|
2834
2834
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2835
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2836
|
-
ESLog.d('ESRouter', '----ESLifecycleMixin---监听Activity----->>>>');
|
2837
|
-
}
|
2838
2835
|
ESApp.$on('OnNewIntent', this.onESLifecycleNewIntent);
|
2839
2836
|
ESApp.$on('LifecycleChange', this.onESLifecycleChanged);
|
2840
2837
|
}
|
2841
|
-
//
|
2842
|
-
else {
|
2843
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2844
|
-
ESLog.d('ESRouter', '----ESLifecycleMixin---监听Fragment----->>>>');
|
2845
|
-
}
|
2846
|
-
}
|
2847
2838
|
},
|
2848
2839
|
beforeDestroy() {
|
2849
2840
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
@@ -2855,7 +2846,7 @@ var ESLifecycleMixin = {
|
|
2855
2846
|
methods: {
|
2856
2847
|
onESLifecycleChanged(event) {
|
2857
2848
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2858
|
-
ESLog.d('ESRouter', '
|
2849
|
+
ESLog.d('ESRouter', '-------页面生命周期----->>>>' + this.$options.name + ":::::::" + event);
|
2859
2850
|
}
|
2860
2851
|
if (event === 'onCreate') {
|
2861
2852
|
this.onESCreate();
|
@@ -2902,12 +2893,6 @@ var ESLifecycleMixin = {
|
|
2902
2893
|
},
|
2903
2894
|
onESResume() {
|
2904
2895
|
|
2905
|
-
},
|
2906
|
-
onESInvisibleToUser() {
|
2907
|
-
|
2908
|
-
},
|
2909
|
-
onESVisibleToUser() {
|
2910
|
-
|
2911
2896
|
},
|
2912
2897
|
onESPause() {
|
2913
2898
|
|