Browse Source

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

* commit 'cfa399b7005911fd42c9a31cf6a22ccc41c49b91':
  update
  增加步长
es6
windy 7 years ago
parent
commit
b61e36ebc6
  1. 7
      bi/widget.js
  2. 7
      dist/bundle.js
  3. 4
      dist/bundle.min.js
  4. 7
      dist/widget.js
  5. 7
      src/widget/finetuningnumbereditor/finetuning.number.editor.js

7
bi/widget.js

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

7
dist/bundle.js vendored

@ -82580,7 +82580,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -82607,7 +82608,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -82617,7 +82618,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/widget.js vendored

@ -5496,7 +5496,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -5523,7 +5524,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -5533,7 +5534,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

7
src/widget/finetuningnumbereditor/finetuning.number.editor.js

@ -9,7 +9,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -36,7 +37,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(1);
self._finetuning(o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});
@ -46,7 +47,7 @@ BI.FineTuningNumberEditor = 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(){
self._finetuning(-1);
self._finetuning(-o.step);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CHANGE);
self.fireEvent(BI.FineTuningNumberEditor.EVENT_CONFIRM);
});

Loading…
Cancel
Save