Bläddra i källkod

grid theid theid2 theid3

luoyifan 2 år sedan
förälder
incheckning
3bbf4d284f
2 ändrade filer med 22 tillägg och 1 borttagningar
  1. 21 0
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 21 - 0
dist/yvan-ext.js

@@ -131507,6 +131507,8 @@ define(['exports'], function (exports) { 'use strict';
                     var scope = lookupScope(this);
                     scope.viewModel.set(reference + '.ischanged', false);
                     scope.viewModel.set(reference + '.theid', null);
+                    scope.viewModel.set(reference + '.theid2', null);
+                    scope.viewModel.set(reference + '.theid3', null);
                 }
                 if (store) {
                     store.on({
@@ -131891,6 +131893,24 @@ define(['exports'], function (exports) { 'use strict';
                             scope.viewModel.set(reference + '.theid', record.get(theid));
                         }
                     }
+                    var theid2 = lodash.get(config, 'behavior.theid2');
+                    if (theid2 && reference) {
+                        if (!record) {
+                            scope.viewModel.set(reference + '.theid2', null);
+                        }
+                        else {
+                            scope.viewModel.set(reference + '.theid2', record.get(theid2));
+                        }
+                    }
+                    var theid3 = lodash.get(config, 'behavior.theid3');
+                    if (theid3 && reference) {
+                        if (!record) {
+                            scope.viewModel.set(reference + '.theid3', null);
+                        }
+                        else {
+                            scope.viewModel.set(reference + '.theid3', record.get(theid3));
+                        }
+                    }
                     me.fireEvent('itemselect', sender, record);
                 }, 50);
                 if ((_a = this.store) === null || _a === void 0 ? void 0 : _a.proxy) {
@@ -134564,6 +134584,7 @@ define(['exports'], function (exports) { 'use strict';
             }
         });
     }
+    //# sourceMappingURL=combogrid.js.map
 
     function initRows () {
         Ext.define('Yvan.Rows', {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
dist/yvan-ext.js.map