Browse Source

Merge pull request #142308 in DEC/fineui from master to feature/x

* commit 'a9478fdd6baa6bc71c0848d2d5dd0a88f17c8cb1':
  无JIRA node的once改由options控制
  无JIRA FDL需求 chunk方法
master
superman 2 years ago
parent
commit
e76be3a6d2
  1. 2
      lodash.md
  2. 5
      src/base/single/button/button.node.js
  3. 472
      src/core/1.lodash.js
  4. 4
      src/core/2.base.js

2
lodash.md

@ -1 +1 @@
lodash core plus="debounce,throttle,get,set,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy,before,after,unescape" lodash core plus="debounce,throttle,get,set,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy,before,after,unescape,chunk"

5
src/base/single/button/button.node.js

@ -13,6 +13,7 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
return BI.extend(conf, { return BI.extend(conf, {
_baseCls: (conf._baseCls || "") + " bi-node", _baseCls: (conf._baseCls || "") + " bi-node",
open: false, open: false,
once: false,
}); });
}, },
@ -28,10 +29,6 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
this.setOpened(!this.isOpened()); this.setOpened(!this.isOpened());
}, },
isOnce: function () {
return false;
},
isOpened: function () { isOpened: function () {
return !!this.options.open; return !!this.options.open;
}, },

472
src/core/1.lodash.js

File diff suppressed because it is too large Load Diff

4
src/core/2.base.js

@ -526,7 +526,7 @@
return obj != null && obj == obj.window; return obj != null && obj == obj.window;
}, },
isPromise: function(obj) { isPromise: function (obj) {
return !!obj && (BI.isObject(obj) || BI.isFunction(obj)) && BI.isFunction(obj.then); return !!obj && (BI.isObject(obj) || BI.isFunction(obj)) && BI.isFunction(obj.then);
} }
}); });
@ -651,7 +651,7 @@
}); });
// 通用方法 // 通用方法
BI._.each(["uniqueId", "result", "chain", "iteratee", "escape", "unescape", "before", "after"], function (name) { BI._.each(["uniqueId", "result", "chain", "iteratee", "escape", "unescape", "before", "after", "chunk"], function (name) {
BI[name] = function () { BI[name] = function () {
return BI._[name].apply(BI._, arguments); return BI._[name].apply(BI._, arguments);
}; };

Loading…
Cancel
Save