luoyifan преди 2 години
родител
ревизия
1cd962b628
променени са 2 файла, в които са добавени 33 реда и са изтрити 2 реда
  1. 32 1
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 32 - 1
dist/yvan-ext.js

@@ -62206,6 +62206,7 @@ define(['exports'], function (exports) { 'use strict';
         };
         return ScopeEngine;
     }());
+    //# sourceMappingURL=ScopeEngine.js.map
 
     function initComponent () {
         var ct = Ext.Component.prototype.constructor;
@@ -95816,6 +95817,37 @@ define(['exports'], function (exports) { 'use strict';
                         c.tdCls = 'td-percent';
                     }
                 });
+                if (newConfig._mode === 'edit') {
+                    // 强制为编辑模式
+                    newConfig.selModel = {
+                        type: 'spreadsheet',
+                        columnSelect: true,
+                        pruneRemoved: false,
+                        extensible: 'y'
+                    };
+                    newConfig.plugins = __assign(__assign({}, newConfig.plugins), { clipboard: true, selectionreplicator: true });
+                }
+                else if (newConfig._mode === 'checkbox' || newConfig._mode === 'check') {
+                    // 强制为勾选模式
+                    newConfig.selModel = {
+                        type: 'checkboxmodel',
+                        mode: 'MULTI',
+                    };
+                }
+                else if (newConfig._mode === 'checkonly') {
+                    newConfig.selModel = {
+                        type: 'checkboxmodel',
+                        mode: 'MULTI',
+                        checkOnly: true,
+                    };
+                }
+                else if (newConfig._mode === 'select') {
+                    // 强制为选择模式
+                    newConfig.selModel = {
+                        selType: 'rowmodel',
+                        mode: 'SINGLE',
+                    };
+                }
                 this.superclass.constructor.call(this, newConfig);
                 this.store.pageSize = newConfig.pageSize;
             },
@@ -96684,7 +96716,6 @@ define(['exports'], function (exports) { 'use strict';
         }
         // throw new TypeError('无法识别的调用方法')
     }
-    //# sourceMappingURL=grid.js.map
 
     /**
      * 创建一个 Ajax 客户端

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