luoyifan 2 years ago
parent
commit
a20cc7c377
2 changed files with 19 additions and 4 deletions
  1. 18 3
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 18 - 3
dist/yvan-ext.js

@@ -61426,10 +61426,12 @@ define(['exports', 'sql-formatter'], function (exports, sqlFormatter) { 'use str
             return extHandle.column.lookupReferenceHolder().yvanScope;
         }
         if (lodash.get(extHandle, 'alias[0]') === 'widget.button') ;
-        var vm = extHandle.lookupViewModel();
-        return vm.yvanScope;
+        if (typeof extHandle.lookupViewModel === 'function') {
+            var vm = extHandle.lookupViewModel();
+            return vm.yvanScope;
+        }
+        return;
     }
-    //# sourceMappingURL=lib.js.map
 
     /**
      * 全局 ajax 方法
@@ -95943,6 +95945,18 @@ define(['exports', 'sql-formatter'], function (exports, sqlFormatter) { 'use str
                             }
                         }
                     }
+                    if (c.dict) {
+                        c.fix = ['system.getDict("' + c.dict + '")'];
+                        if (c.editor && c.editor.xtype === 'combo') {
+                            c.editor.fix = ['system.getDict("' + c.dict + '")'];
+                            c.editor.typeAhead = true;
+                            c.editor.triggerAction = 'all';
+                            c.editor.selectOnFocus = false;
+                            c.editor.listConfig = {
+                                minWidth: 200
+                            };
+                        }
+                    }
                     if (formatter === 'button') {
                         c.tdCls = 'td-btn';
                         if (!c.listeners) {
@@ -96874,6 +96888,7 @@ define(['exports', 'sql-formatter'], function (exports, sqlFormatter) { 'use str
         }
         // throw new TypeError('无法识别的调用方法')
     }
+    //# sourceMappingURL=grid.js.map
 
     /**
      * 创建一个 Ajax 客户端

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