Browse Source

Merge pull request #664 in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'a9c70c962b5eed589811a28e9c77dc8604d9c2e5':
  update
es6
guy 6 years ago
parent
commit
1e3045763a
  1. 33
      dist/base.js
  2. 33
      dist/bundle.js
  3. 56
      dist/bundle.min.js
  4. 33
      dist/fineui.js
  5. 56
      dist/fineui.min.js
  6. 33
      dist/fineui_without_jquery_polyfill.js
  7. 2
      dist/utils.min.js
  8. 22
      src/base/single/button/button.basic.js
  9. 11
      src/base/single/button/button.node.js

33
dist/base.js vendored

@ -660,6 +660,13 @@ BI.BasicButton = BI.inherit(BI.Single, {
_init: function () {
BI.BasicButton.superclass._init.apply(this, arguments);
var opts = this.options;
if (opts.selected === true) {
BI.nextTick(BI.bind(function () {
this.setSelected(opts.selected);
}, this));
}
BI.nextTick(BI.bind(this.bindEvent, this));
if (opts.shadow) {
this._createShadow();
}
@ -668,17 +675,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
}
},
_mount: function () {
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
var o = this.options;
if (o.selected === true) {
this.setSelected(o.selected);
}
this.bindEvent();
}
},
_createShadow: function () {
var self = this, o = this.options;
@ -835,8 +831,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
// 之后的300ms点击无效
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {
leading: true,
trailing: false
"leading": true,
"trailing": false
});
function ev (e) {
@ -1062,13 +1058,10 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
_init: function () {
BI.NodeButton.superclass._init.apply(this, arguments);
},
_mount: function () {
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
this.setOpened(this.isOpened());
}
var self = this;
BI.nextTick(function () {
self.setOpened(self.isOpened());
});
},
doClick: function () {

33
dist/bundle.js vendored

@ -36009,6 +36009,13 @@ BI.BasicButton = BI.inherit(BI.Single, {
_init: function () {
BI.BasicButton.superclass._init.apply(this, arguments);
var opts = this.options;
if (opts.selected === true) {
BI.nextTick(BI.bind(function () {
this.setSelected(opts.selected);
}, this));
}
BI.nextTick(BI.bind(this.bindEvent, this));
if (opts.shadow) {
this._createShadow();
}
@ -36017,17 +36024,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
}
},
_mount: function () {
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
var o = this.options;
if (o.selected === true) {
this.setSelected(o.selected);
}
this.bindEvent();
}
},
_createShadow: function () {
var self = this, o = this.options;
@ -36184,8 +36180,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
// 之后的300ms点击无效
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {
leading: true,
trailing: false
"leading": true,
"trailing": false
});
function ev (e) {
@ -36411,13 +36407,10 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
_init: function () {
BI.NodeButton.superclass._init.apply(this, arguments);
},
_mount: function () {
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
this.setOpened(this.isOpened());
}
var self = this;
BI.nextTick(function () {
self.setOpened(self.isOpened());
});
},
doClick: function () {

56
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/fineui.js vendored

@ -36251,6 +36251,13 @@ BI.BasicButton = BI.inherit(BI.Single, {
_init: function () {
BI.BasicButton.superclass._init.apply(this, arguments);
var opts = this.options;
if (opts.selected === true) {
BI.nextTick(BI.bind(function () {
this.setSelected(opts.selected);
}, this));
}
BI.nextTick(BI.bind(this.bindEvent, this));
if (opts.shadow) {
this._createShadow();
}
@ -36259,17 +36266,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
}
},
_mount: function () {
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
var o = this.options;
if (o.selected === true) {
this.setSelected(o.selected);
}
this.bindEvent();
}
},
_createShadow: function () {
var self = this, o = this.options;
@ -36426,8 +36422,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
// 之后的300ms点击无效
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {
leading: true,
trailing: false
"leading": true,
"trailing": false
});
function ev (e) {
@ -36653,13 +36649,10 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
_init: function () {
BI.NodeButton.superclass._init.apply(this, arguments);
},
_mount: function () {
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
this.setOpened(this.isOpened());
}
var self = this;
BI.nextTick(function () {
self.setOpened(self.isOpened());
});
},
doClick: function () {

56
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

33
dist/fineui_without_jquery_polyfill.js vendored

@ -24818,6 +24818,13 @@ BI.BasicButton = BI.inherit(BI.Single, {
_init: function () {
BI.BasicButton.superclass._init.apply(this, arguments);
var opts = this.options;
if (opts.selected === true) {
BI.nextTick(BI.bind(function () {
this.setSelected(opts.selected);
}, this));
}
BI.nextTick(BI.bind(this.bindEvent, this));
if (opts.shadow) {
this._createShadow();
}
@ -24826,17 +24833,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
}
},
_mount: function () {
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
var o = this.options;
if (o.selected === true) {
this.setSelected(o.selected);
}
this.bindEvent();
}
},
_createShadow: function () {
var self = this, o = this.options;
@ -24993,8 +24989,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
// 之后的300ms点击无效
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {
leading: true,
trailing: false
"leading": true,
"trailing": false
});
function ev (e) {
@ -25220,13 +25216,10 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
_init: function () {
BI.NodeButton.superclass._init.apply(this, arguments);
},
_mount: function () {
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
this.setOpened(this.isOpened());
}
var self = this;
BI.nextTick(function () {
self.setOpened(self.isOpened());
});
},
doClick: function () {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

22
src/base/single/button/button.basic.js

@ -30,6 +30,13 @@ BI.BasicButton = BI.inherit(BI.Single, {
_init: function () {
BI.BasicButton.superclass._init.apply(this, arguments);
var opts = this.options;
if (opts.selected === true) {
BI.nextTick(BI.bind(function () {
this.setSelected(opts.selected);
}, this));
}
BI.nextTick(BI.bind(this.bindEvent, this));
if (opts.shadow) {
this._createShadow();
}
@ -38,17 +45,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
}
},
_mount: function () {
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
var o = this.options;
if (o.selected === true) {
this.setSelected(o.selected);
}
this.bindEvent();
}
},
_createShadow: function () {
var self = this, o = this.options;
@ -205,8 +201,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
// 之后的300ms点击无效
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {
leading: true,
trailing: false
"leading": true,
"trailing": false
});
function ev (e) {

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

@ -17,13 +17,10 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
_init: function () {
BI.NodeButton.superclass._init.apply(this, arguments);
},
_mount: function () {
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments);
if(_mount === true) {
this.setOpened(this.isOpened());
}
var self = this;
BI.nextTick(function () {
self.setOpened(self.isOpened());
});
},
doClick: function () {

Loading…
Cancel
Save