Browse Source

更新 yvan-ext-mobile

lizw 3 years ago
parent
commit
2e2e076759
2 changed files with 42 additions and 1 deletions
  1. 41 0
      dist/yvan-ext-mobile.js
  2. 1 1
      dist/yvan-ext-mobile.js.map

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

@@ -37752,6 +37752,11 @@ define(['exports'], function (exports) { 'use strict';
       };
       };
       Scope.prototype.onGoBack = function (params) {
       Scope.prototype.onGoBack = function (params) {
       };
       };
+      /**
+       * 模块载入动画结束之后的回调, 在onload之后
+       */
+      Scope.prototype.onLoadAnimationEnd = function () {
+      };
       Object.defineProperty(Scope.prototype, "isScope", {
       Object.defineProperty(Scope.prototype, "isScope", {
           get: function () {
           get: function () {
               return true;
               return true;
@@ -37772,6 +37777,9 @@ define(['exports'], function (exports) { 'use strict';
       Scope.prototype._onLoad = function () {
       Scope.prototype._onLoad = function () {
           this.onLoad();
           this.onLoad();
       };
       };
+      Scope.prototype._onLoadAnimationEnd = function () {
+          this.onLoadAnimationEnd();
+      };
       Scope.prototype._onGoBack = function (params) {
       Scope.prototype._onGoBack = function (params) {
           this.onGoBack(params);
           this.onGoBack(params);
       };
       };
@@ -37892,6 +37900,7 @@ define(['exports'], function (exports) { 'use strict';
               if (!actived && item === that._handle) {
               if (!actived && item === that._handle) {
                   actived = true;
                   actived = true;
                   Ext.Viewport.getLayout().setAnimation({ type: 'slide', direction: 'left', duration: 300 });
                   Ext.Viewport.getLayout().setAnimation({ type: 'slide', direction: 'left', duration: 300 });
+                  setTimeout(that._onLoadAnimationEnd.bind(that), 300);
                   Ext.Viewport.setActiveItem(idx);
                   Ext.Viewport.setActiveItem(idx);
                   that._lastShowTime = new Date().getTime();
                   that._lastShowTime = new Date().getTime();
                   Scope.SHOW_PAGE_STACK.push(that);
                   Scope.SHOW_PAGE_STACK.push(that);
@@ -38770,6 +38779,34 @@ define(['exports'], function (exports) { 'use strict';
 
 
   var SIMPLE_RE = /^(?:\{(?:(\d+)|([a-z_][\w\.]*))\})$/i;
   var SIMPLE_RE = /^(?:\{(?:(\d+)|([a-z_][\w\.]*))\})$/i;
   /**
   /**
+   * 替换内部结构中,所有 N/A
+   */
+  function replaceNA(obj) {
+      if (obj === 'N/A') {
+          return '';
+      }
+      if (lodash.isArray(obj)) {
+          lodash.forEach(obj, function (value, idx) {
+              if (value === 'N/A') {
+                  obj[idx] = '';
+              }
+              else {
+                  replaceNA(value);
+              }
+          });
+      }
+      else if (lodash.isPlainObject(obj)) {
+          lodash.forOwn(obj, function (value, key) {
+              if (value === 'N/A') {
+                  obj[key] = '';
+              }
+              else {
+                  replaceNA(value);
+              }
+          });
+      }
+  }
+  /**
    * 对某个表达式进行求值
    * 对某个表达式进行求值
    * a:{query.a},b:{query.b} -> a:aValue,b:bValue
    * a:{query.a},b:{query.b} -> a:aValue,b:bValue
    *
    *
@@ -39975,6 +40012,7 @@ define(['exports'], function (exports) { 'use strict';
   var SystemLib = /*#__PURE__*/Object.freeze({
   var SystemLib = /*#__PURE__*/Object.freeze({
     __proto__: null,
     __proto__: null,
     SIMPLE_RE: SIMPLE_RE,
     SIMPLE_RE: SIMPLE_RE,
+    replaceNA: replaceNA,
     calcExpress: calcExpress,
     calcExpress: calcExpress,
     calcObjectFlat: calcObjectFlat,
     calcObjectFlat: calcObjectFlat,
     mergeViewModel: mergeViewModel,
     mergeViewModel: mergeViewModel,
@@ -40044,6 +40082,9 @@ define(['exports'], function (exports) { 'use strict';
                       successProperty: 'success',
                       successProperty: 'success',
                       messageProperty: 'msg',
                       messageProperty: 'msg',
                       transform: function (data) {
                       transform: function (data) {
+                          if (typeof window['ajaxProcess'] === 'function') {
+                              window['ajaxProcess'](data);
+                          }
                           if (typeof grid._transform === 'function') {
                           if (typeof grid._transform === 'function') {
                               // 系统转换函数
                               // 系统转换函数
                               grid._transform(data.data);
                               grid._transform(data.data);

File diff suppressed because it is too large
+ 1 - 1
dist/yvan-ext-mobile.js.map