luoyifan 3 年之前
父節點
當前提交
36f2ca7725
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 7 0
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 7 - 0
dist/yvan-ext.js

@@ -62355,6 +62355,13 @@ define(['exports'], function (exports) { 'use strict';
     function setComboStore(sender, config, getDictFn, bizKey, multiValueSeparator) {
     function setComboStore(sender, config, getDictFn, bizKey, multiValueSeparator) {
         if (multiValueSeparator === void 0) { multiValueSeparator = ""; }
         if (multiValueSeparator === void 0) { multiValueSeparator = ""; }
         // sender 和 config为空的时候获取值、
         // sender 和 config为空的时候获取值、
+        if (lodash.isArray(getDictFn)) {
+            // 如果 getDictFn 是直接给定的值,就造一个异步回调的方法
+            var realArray_1 = getDictFn;
+            getDictFn = function () {
+                return realArray_1;
+            };
+        }
         if (!sender) {
         if (!sender) {
             return new Promise(function (resolve, reject) {
             return new Promise(function (resolve, reject) {
                 getDictFn(bizKey, function (r) {
                 getDictFn(bizKey, function (r) {

文件差異過大導致無法顯示
+ 1 - 1
dist/yvan-ext.js.map