Browse Source

BI-31372 slider_label没有改

master
windy 6 years ago
parent
commit
165f660d8f
  1. 2
      demo/js/case/combo/demo.text_value_down_list_combo.js
  2. 2
      demo/js/widget/slider/demo.slider.js
  3. 7
      dist/bundle.js
  4. 6
      dist/bundle.min.js
  5. 4
      dist/demo.js
  6. 7
      dist/fineui.js
  7. 6
      dist/fineui.min.js
  8. 7
      dist/fineui_without_jquery_polyfill.js
  9. 2
      dist/utils.min.js
  10. 7
      dist/widget.js
  11. 7
      src/widget/singleslider/singleslider.label.js

2
demo/js/case/combo/demo.text_value_down_list_combo.js

@ -39,7 +39,7 @@ Demo.TextValueDownListCombo = BI.inherit(BI.Widget, {
cls: "dot-e-font" cls: "dot-e-font"
}, { }, {
text: BI.i18nText("BI-Basic_Average_Value"), text: BI.i18nText("BI-Basic_Average_Value"),
value: 4, value: 5,
cls: "dot-e-font" cls: "dot-e-font"
}] }]
}]] }]]

2
demo/js/widget/slider/demo.slider.js

@ -45,7 +45,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
normalSingleSlider.populate(); normalSingleSlider.populate();
var singleSliderLabel = BI.createWidget({ var singleSliderLabel = BI.createWidget({
type: "bi.single_slider", type: "bi.single_slider_label",
width: o.width, width: o.width,
height: o.height, height: o.height,
digit: 0, digit: 0,

7
dist/bundle.js vendored

@ -76546,10 +76546,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -76576,7 +76575,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -76648,7 +76647,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/demo.js vendored

@ -1583,7 +1583,7 @@ Demo.TextValueDownListCombo = BI.inherit(BI.Widget, {
cls: "dot-e-font" cls: "dot-e-font"
}, { }, {
text: BI.i18nText("BI-Basic_Average_Value"), text: BI.i18nText("BI-Basic_Average_Value"),
value: 4, value: 5,
cls: "dot-e-font" cls: "dot-e-font"
}] }]
}]] }]]
@ -11400,7 +11400,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
normalSingleSlider.populate(); normalSingleSlider.populate();
var singleSliderLabel = BI.createWidget({ var singleSliderLabel = BI.createWidget({
type: "bi.single_slider", type: "bi.single_slider_label",
width: o.width, width: o.width,
height: o.height, height: o.height,
digit: 0, digit: 0,

7
dist/fineui.js vendored

@ -76788,10 +76788,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -76818,7 +76817,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -76890,7 +76889,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

6
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/fineui_without_jquery_polyfill.js vendored

@ -59674,10 +59674,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -59704,7 +59703,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -59776,7 +59775,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/widget.js vendored

@ -18102,10 +18102,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -18132,7 +18131,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -18204,7 +18203,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

7
src/widget/singleslider/singleslider.label.js

@ -110,10 +110,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -140,7 +139,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -212,7 +211,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

Loading…
Cancel
Save