Browse Source

增加步长

master
windy 7 years ago
parent
commit
077d04219d
  1. 7
      bi/widget.js
  2. 7
      dist/bundle.js
  3. 2
      dist/bundle.min.css
  4. 18
      dist/bundle.min.js
  5. 3
      dist/demo.js
  6. 7
      dist/widget.js
  7. 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

@ -82572,7 +82572,8 @@ BI.FineTuningNumberEditor = BI.inherit(BI.Widget, {
validationChecker: function () {return true;},
valueFormatter: function (v) {return v;},
value: 0,
errorText: ""
errorText: "",
step: 1
})
},
@ -82599,7 +82600,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);
});
@ -82609,7 +82610,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);
});

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

18
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

3
dist/demo.js vendored

@ -7691,7 +7691,8 @@ Demo.FileManager = BI.inherit(BI.Widget, {
},
height: 24,
width: 150,
errorText: "hahah"
errorText: "hahah",
step: 0.5
});
filemanager.on(BI.FineTuningNumberEditor.EVENT_CHANGE, function () {
if(BI.parseFloat(this.getValue()) < 1){

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