yuliang 3 年之前
父節點
當前提交
cf466fdd8e
共有 2 個文件被更改,包括 23 次插入1 次删除
  1. 22 0
      dist/yvan-ext-mobile.js
  2. 1 1
      dist/yvan-ext-mobile.js.map

+ 22 - 0
dist/yvan-ext-mobile.js

@@ -37753,6 +37753,7 @@ define(['exports'], function (exports) { 'use strict';
       function Scope(_a) {
           var model = _a.model, vjson = _a.vjson;
           this.scopeTag = '';
+          this.allowBack = true;
           /**
            * 业务模块的唯一编号
            */
@@ -37766,6 +37767,17 @@ define(['exports'], function (exports) { 'use strict';
           this.vjson = this.originalVjson; // this.buildVjson()
       }
       /**
+       * 活动回调
+       */
+      Scope.prototype.activate = function () {
+          var _a;
+          // @ts-ignore
+          if ((_a = window === null || window === void 0 ? void 0 : window.JSInterface) === null || _a === void 0 ? void 0 : _a.setWebViewCanBack) {
+              // @ts-ignore
+              window.JSInterface.setWebViewCanBack(this.allowBack);
+          }
+      };
+      /**
        * 模块载入完成之后的回调
        */
       Scope.prototype.onLoad = function () {
@@ -37845,6 +37857,12 @@ define(['exports'], function (exports) { 'use strict';
                   dataOption: {}
               });
               var allowBack = option.allowBack, vjsonOption = option.vjsonOption, dataOption = option.dataOption;
+              lodash.defaults(vjsonOption, {
+                  listeners: {}
+              });
+              lodash.defaults(vjsonOption['listeners'], {
+                  activate: "scope.activate"
+              });
               this._vjsonOption = vjsonOption;
               this._dataOption = dataOption;
               var vmodel = lodash.defaultsDeep({
@@ -37860,6 +37878,7 @@ define(['exports'], function (exports) { 'use strict';
               }, vjsonOption, that.vjson, {
                   xtype: 'panel',
               });
+              that.allowBack = allowBack;
               if (allowBack) {
                   var configNew = lodash.defaultsDeep({
                       iconCls: 'x-fa fa-angle-left',
@@ -37924,6 +37943,9 @@ define(['exports'], function (exports) { 'use strict';
                   console.error('errorAt onLoad', e);
               }
           }
+          Ext.Viewport.activeItem = function () {
+              debugger;
+          };
           Ext.Viewport.add(that._handle);
           // if ((window as any).mainWindow === that || (window as any).loginWindow === that) {
           //     Scope.SHOW_PAGE_STACK.length = 0

文件差異過大導致無法顯示
+ 1 - 1
dist/yvan-ext-mobile.js.map