Browse Source

grid groupField

luoyifan 3 years ago
parent
commit
28ecdcb9c8
2 changed files with 7 additions and 3 deletions
  1. 6 2
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 6 - 2
dist/yvan-ext.js

@@ -95211,10 +95211,14 @@ define(['exports'], function (exports) { 'use strict';
             _setDataReal: function (value) {
                 var me = this;
                 this._transform(value);
-                var store = new Ext.data.Store({
+                var storeOpt = {
                     fields: getFileds(this),
                     data: value,
-                });
+                };
+                if (this.groupField) {
+                    storeOpt.groupField = this.groupField;
+                }
+                var store = new Ext.data.Store(storeOpt);
                 me.setStore(store);
             },
             setStore: function (store) {

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