Browse Source

number-editor修改

es6
windy 7 years ago
parent
commit
7e0cc03271
  1. 16
      bi/widget.js
  2. 16
      dist/bundle.js
  3. 4
      dist/bundle.min.js
  4. 16
      dist/widget.js
  5. 16
      src/widget/numbereditor/number.editor.js

16
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" cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", 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" cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

16
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" cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", 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" cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

16
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" cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", 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" cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

16
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" cls: "column-pre-page-h-font top-button bi-border-left bi-border-bottom"
}); });
this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
this.bottomBtn = BI.createWidget({ this.bottomBtn = BI.createWidget({
type: "bi.icon_button", 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" cls: "column-next-page-h-font bottom-button bi-border-left bi-border-top"
}); });
this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () { this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {
self._finetuning(-o.step); if(this.isEnabled()){
self.fireEvent(BI.NumberEditor.EVENT_CHANGE); self._finetuning(-o.step);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); self.fireEvent(BI.NumberEditor.EVENT_CHANGE);
self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);
}
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",

Loading…
Cancel
Save