@extscreen/es-core 2.2.18 → 2.2.20

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.
Files changed (2) hide show
  1. package/dist/index.js +19 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2722,6 +2722,10 @@ var ESPageLifecycle = {
2722
2722
  this.onESStart();
2723
2723
  }
2724
2724
  //
2725
+ else if (event === 'onRestoreInstanceSate') {
2726
+ this.onESRestoreInstanceState(params);
2727
+ }
2728
+ //
2725
2729
  else if (event === 'onResume') {
2726
2730
  this.onESResume();
2727
2731
  }
@@ -2730,6 +2734,10 @@ var ESPageLifecycle = {
2730
2734
  this.onESPause();
2731
2735
  }
2732
2736
  //
2737
+ else if (event === 'onSaveInstanceSate') {
2738
+ this.onESSaveInstanceState(params);
2739
+ }
2740
+ //
2733
2741
  else if (event === 'onStop') {
2734
2742
  this.onESStop();
2735
2743
  }
@@ -3983,6 +3991,7 @@ var ESApplication = {
3983
3991
  return {
3984
3992
  appInitProps: {},
3985
3993
  appInitUrl: '',
3994
+ appInitFrom: '',
3986
3995
  appInitParams: {},
3987
3996
  };
3988
3997
  },
@@ -4010,6 +4019,7 @@ var ESApplication = {
4010
4019
  //
4011
4020
  this.appInitUrl = ESApp.$options.$superProps.url;
4012
4021
  this.appInitParams = ESApp.$options.$superProps.params;
4022
+ this.appInitFrom = ESApp.$options.$superProps.from;
4013
4023
 
4014
4024
  if (!this.appInitUrl) {
4015
4025
  this.appInitUrl = this.$router.options.main;
@@ -4058,6 +4068,7 @@ var ESApplication = {
4058
4068
  let route = {
4059
4069
  name: this.appInitUrl,
4060
4070
  params: this.appInitParams,
4071
+ from: this.appInitFrom,
4061
4072
  };
4062
4073
  if (ESLog.isLoggable(ESLog.DEBUG)) {
4063
4074
  console.log('ESApplication', '---------onESCreate---_initPage--push--->>>>', route);
@@ -4282,6 +4293,10 @@ var ESLifecycleMixin = {
4282
4293
  this.onESStart();
4283
4294
  }
4284
4295
  //
4296
+ else if (event === 'onRestoreInstanceSate') {
4297
+ this.onESRestoreInstanceState(params);
4298
+ }
4299
+ //
4285
4300
  else if (event === 'onResume') {
4286
4301
  this.onESResume();
4287
4302
  }
@@ -4290,6 +4305,10 @@ var ESLifecycleMixin = {
4290
4305
  this.onESPause();
4291
4306
  }
4292
4307
  //
4308
+ else if (event === 'onSaveInstanceSate') {
4309
+ this.onESSaveInstanceState(params);
4310
+ }
4311
+ //
4293
4312
  else if (event === 'onStop') {
4294
4313
  this.onESStop();
4295
4314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extscreen/es-core",
3
- "version": "2.2.18",
3
+ "version": "2.2.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {