luoyifan преди 3 години
родител
ревизия
e2c69b1745
променени са 2 файла, в които са добавени 7 реда и са изтрити 20 реда
  1. 6 19
      dist/yvan-ext-mobile.js
  2. 1 1
      dist/yvan-ext-mobile.js.map

+ 6 - 19
dist/yvan-ext-mobile.js

@@ -37747,7 +37747,6 @@ define(['exports'], function (exports) { 'use strict';
           }
       });
   }
-  //# sourceMappingURL=lib.js.map
 
   var Scope = /** @class */ (function () {
       function Scope(_a) {
@@ -38111,7 +38110,6 @@ define(['exports'], function (exports) { 'use strict';
       Scope.SHOW_PAGE_STACK = [];
       return Scope;
   }());
-  //# sourceMappingURL=Scope.js.map
 
   var column = {
       menuDisabled: true
@@ -38167,7 +38165,6 @@ define(['exports'], function (exports) { 'use strict';
           flex: 1
       },
   };
-  //# sourceMappingURL=Defaults.js.map
 
   /**
    * 构建所有组件的公共属性
@@ -38214,7 +38211,6 @@ define(['exports'], function (exports) { 'use strict';
       }
       return config;
   }
-  //# sourceMappingURL=base.js.map
 
   function initCols () {
       Ext.define('Yvan.Cols', {
@@ -38231,7 +38227,6 @@ define(['exports'], function (exports) { 'use strict';
           },
       });
   }
-  //# sourceMappingURL=cols.js.map
 
   var PropertyDescription = /** @class */ (function () {
       function PropertyDescription() {
@@ -38273,7 +38268,6 @@ define(['exports'], function (exports) { 'use strict';
       };
       return PropertyDescription;
   }());
-  //# sourceMappingURL=PropertyDescription.js.map
 
   var PropertyDescriptionTable = new Map();
   PropertyDescriptionTable.set('tabCell', new PropertyDescription({
@@ -38605,7 +38599,6 @@ define(['exports'], function (exports) { 'use strict';
           width, height
       ]
   }));
-  //# sourceMappingURL=PropertyDescriptionTable.js.map
 
   /**
    * 全局 ajax 方法
@@ -38703,7 +38696,6 @@ define(['exports'], function (exports) { 'use strict';
       });
       return found >= ws.length;
   }
-  //# sourceMappingURL=config.js.map
 
   function prompt(message, multiLine, value) {
       if (multiLine === void 0) { multiLine = false; }
@@ -38809,7 +38801,6 @@ define(['exports'], function (exports) { 'use strict';
           $w.remove();
       }, 3000);
   }
-  //# sourceMappingURL=message.js.map
 
   var SIMPLE_RE = /^(?:\{(?:(\d+)|([a-z_][\w\.]*))\})$/i;
   /**
@@ -40042,7 +40033,6 @@ define(['exports'], function (exports) { 'use strict';
           err: err
       };
   }
-  //# sourceMappingURL=systemLib.js.map
 
   var SystemLib = /*#__PURE__*/Object.freeze({
     __proto__: null,
@@ -40133,10 +40123,12 @@ define(['exports'], function (exports) { 'use strict';
                           var pagination = lodash.get(data, 'pagination');
                           if (pagination) {
                               var current = pagination.current, firstRowNum = pagination.firstRowNum, lastRowNum = pagination.lastRowNum, size = pagination.size, total = pagination.total;
+                              console.log('pagination', pagination);
                               grid.store.pageCount = Math.ceil(total / size);
                               grid.store.firstRowNum = firstRowNum;
                               grid.store.lastRowNum = lastRowNum;
                               grid.store.total = total;
+                              console.log('set store.xx', grid.store.total, grid.store.firstRowNum, grid.store.lastRowNum, grid.store.pageCount);
                           }
                           return data;
                       }
@@ -40213,7 +40205,6 @@ define(['exports'], function (exports) { 'use strict';
           }
       });
   }
-  //# sourceMappingURL=stores.js.map
 
   function initGrid () {
       Ext.define('Yvan.Grid', {
@@ -40453,19 +40444,20 @@ define(['exports'], function (exports) { 'use strict';
                   lblPage.setHtml('无效数据源');
                   return;
               }
-              if (this.store.currentPage > 1) {
+              var _a = this.store, pageCount = _a.pageCount, firstRowNum = _a.firstRowNum, lastRowNum = _a.lastRowNum, total = _a.total, currentPage = _a.currentPage;
+              console.log('get store.xx', pageCount, firstRowNum, lastRowNum, total, currentPage);
+              if (currentPage > 1) {
                   btnPre.enable();
               }
               else {
                   btnPre.disable();
               }
-              if (this.store.currentPage < this.store.pageCount) {
+              if (currentPage < pageCount) {
                   btnNext.enable();
               }
               else {
                   btnNext.disable();
               }
-              var _a = this.store, firstRowNum = _a.firstRowNum, lastRowNum = _a.lastRowNum, total = _a.total;
               lblPage.setHtml("\u7B2C" + toString$1(firstRowNum) + "-" + toString$1(lastRowNum) + "/" + toString$1(total) + "\u884C");
           },
           /**
@@ -40728,7 +40720,6 @@ define(['exports'], function (exports) { 'use strict';
       //     }
       // });
   }
-  //# sourceMappingURL=gridcolumn.js.map
 
   function initLocale() {
       Ext.define('Ext.locale.zh_CN.Panel', {
@@ -40772,7 +40763,6 @@ define(['exports'], function (exports) { 'use strict';
       //     }
       // });
   }
-  //# sourceMappingURL=locale-zh_CN.js.map
 
   var FixClass = /** @class */ (function () {
       function FixClass() {
@@ -40815,7 +40805,6 @@ define(['exports'], function (exports) { 'use strict';
       ], FixClass.prototype, "fix", null);
       return FixClass;
   }());
-  //# sourceMappingURL=fix.js.map
 
   function init() {
       /**
@@ -40890,7 +40879,6 @@ define(['exports'], function (exports) { 'use strict';
       initGrid();
       initStores();
   }
-  //# sourceMappingURL=init.js.map
 
   /**
    * 创建一个 Ajax 客户端
@@ -41063,7 +41051,6 @@ define(['exports'], function (exports) { 'use strict';
       };
       xhr.send(formData);
   }
-  //# sourceMappingURL=ajax.js.map
 
   exports.Lib = Lib;
   exports.LibParam = LibParam;

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/yvan-ext-mobile.js.map