Browse Source

Pull request #2992: 无JIRA FDL需求 chunk方法

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '98800e9a2ce3f2fde074326a681a124ce5e025f5':
  无JIRA node的once改由options控制
  无JIRA FDL需求 chunk方法
es6
Dailer 2 years ago
parent
commit
a9478fdd6b
  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, {
_baseCls: (conf._baseCls || "") + " bi-node",
open: false,
once: false,
});
},
@ -28,10 +29,6 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
this.setOpened(!this.isOpened());
},
isOnce: function () {
return false;
},
isOpened: function () {
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;
},
isPromise: function(obj) {
isPromise: function (obj) {
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 () {
return BI._[name].apply(BI._, arguments);
};

Loading…
Cancel
Save