Browse Source

Merge pull request #192 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '7e0cc03271e99892205e8cfde60189c032dbfe7b':
  number-editor修改
es6
windy 7 years ago
parent
commit
7139544c3c
  1. 4
      bi/widget.js
  2. 4
      dist/bundle.js
  3. 4
      dist/bundle.min.js
  4. 4
      dist/widget.js
  5. 4
      src/widget/numbereditor/number.editor.js

4
bi/widget.js

@ -12036,9 +12036,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
this.bottomBtn = BI.createWidget({
type: "bi.icon_button",
@ -12046,9 +12048,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
BI.createWidget({
type: "bi.htape",

4
dist/bundle.js vendored

@ -90544,9 +90544,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
this.bottomBtn = BI.createWidget({
type: "bi.icon_button",
@ -90554,9 +90556,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
BI.createWidget({
type: "bi.htape",

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/widget.js vendored

@ -12036,9 +12036,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
this.bottomBtn = BI.createWidget({
type: "bi.icon_button",
@ -12046,9 +12048,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
BI.createWidget({
type: "bi.htape",

4
src/widget/numbereditor/number.editor.js

@ -41,9 +41,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
});
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
this.bottomBtn = BI.createWidget({
type: "bi.icon_button",
@ -51,9 +53,11 @@ BI.NumberEditor = BI.inherit(BI.Widget, {
cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
});
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if(this.isEnabled()){
self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
});
BI.createWidget({
type: "bi.htape",

Loading…
Cancel
Save