Browse Source

Merge pull request #434 in FUI/fineui from ~WINDY/fui:master to master

* commit '04fe97a4ec37e3f8de90e85de132c130311bae4a':
  update
  BI-22465
  BI-23640
  还原
  _setVisible
es6
guy 7 years ago
parent
commit
5fe462d285
  1. 32
      dist/_fineui.min.js
  2. 1
      dist/base.js
  3. 13
      dist/bundle.css
  4. 27
      dist/bundle.js
  5. 2
      dist/bundle.min.css
  6. 28
      dist/bundle.min.js
  7. 2
      dist/case.js
  8. 13
      dist/fineui.css
  9. 27
      dist/fineui.js
  10. 2
      dist/fineui.min.css
  11. 32
      dist/fineui.min.js
  12. 13
      dist/widget.css
  13. 24
      dist/widget.js
  14. 1
      src/base/layer/layer.popover.js
  15. 2
      src/case/colorchooser/colorpicker/editor.colorpicker.js
  16. 9
      src/css/widget/singleslider/track/widget.css
  17. 12
      src/css/widget/singleslider/track/widget.track.css
  18. 1
      src/less/lib/constant.less
  19. 10
      src/less/widget/singleslider/track/widget.track.less
  20. 6
      src/widget/intervalslider/intervalslider.js
  21. 6
      src/widget/singleslider/singleslider.js
  22. 6
      src/widget/singleslider/singleslider.label.js
  23. 6
      src/widget/singleslider/singleslider.normal.js

32
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/base.js vendored

@ -15380,6 +15380,7 @@ BI.Popover = BI.inherit(BI.Widget, {
type: "bi.label",
height: 36,
text: o.header,
title: o.header,
textAlign: "left"
},
left: 10,

13
dist/bundle.css vendored

@ -5136,8 +5136,7 @@ ul.ztree.zTreeDragUL {
border-radius: 7px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
background-color: #F2F4F7;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
@ -5147,14 +5146,8 @@ ul.ztree.zTreeDragUL {
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .blue-track {
.bi-slider-track .disabled-blue-track {
background-color: #d0d4da;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;

27
dist/bundle.js vendored

@ -51146,6 +51146,7 @@ BI.Popover = BI.inherit(BI.Widget, {
type: "bi.label",
height: 36,
text: o.header,
title: o.header,
textAlign: "left"
},
left: 10,
@ -76969,7 +76970,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
cls: "color-picker-editor-input",
validationChecker: checker,
errorText: BI.i18nText("BI-Color_Picker_Error_Text"),
allowBlank: false,
allowBlank: true,
value: 255,
width: 32,
height: 20
@ -94933,7 +94934,11 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.IntervalSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -107178,7 +107183,11 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
setMinAndMax: function (v) {
@ -107463,7 +107472,11 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -107746,7 +107759,11 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

28
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/case.js vendored

@ -4480,7 +4480,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
cls: "color-picker-editor-input",
validationChecker: checker,
errorText: BI.i18nText("BI-Color_Picker_Error_Text"),
allowBlank: false,
allowBlank: true,
value: 255,
width: 32,
height: 20

13
dist/fineui.css vendored

@ -5136,8 +5136,7 @@ ul.ztree.zTreeDragUL {
border-radius: 7px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
background-color: #F2F4F7;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
@ -5147,14 +5146,8 @@ ul.ztree.zTreeDragUL {
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .blue-track {
.bi-slider-track .disabled-blue-track {
background-color: #d0d4da;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;

27
dist/fineui.js vendored

@ -51389,6 +51389,7 @@ BI.Popover = BI.inherit(BI.Widget, {
type: "bi.label",
height: 36,
text: o.header,
title: o.header,
textAlign: "left"
},
left: 10,
@ -77212,7 +77213,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
cls: "color-picker-editor-input",
validationChecker: checker,
errorText: BI.i18nText("BI-Color_Picker_Error_Text"),
allowBlank: false,
allowBlank: true,
value: 255,
width: 32,
height: 20
@ -95176,7 +95177,11 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.IntervalSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -107421,7 +107426,11 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
setMinAndMax: function (v) {
@ -107706,7 +107715,11 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -107989,7 +108002,11 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

32
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

13
dist/widget.css vendored

@ -635,8 +635,7 @@
border-radius: 7px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
background-color: #F2F4F7;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
@ -646,14 +645,8 @@
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .blue-track {
.bi-slider-track .disabled-blue-track {
background-color: #d0d4da;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;

24
dist/widget.js vendored

@ -7310,7 +7310,11 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.IntervalSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -19555,7 +19559,11 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
setMinAndMax: function (v) {
@ -19840,7 +19848,11 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {
@ -20123,7 +20135,11 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

1
src/base/layer/layer.popover.js

@ -58,6 +58,7 @@ BI.Popover = BI.inherit(BI.Widget, {
type: "bi.label",
height: 36,
text: o.header,
title: o.header,
textAlign: "left"
},
left: 10,

2
src/case/colorchooser/colorpicker/editor.colorpicker.js

@ -39,7 +39,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
cls: "color-picker-editor-input",
validationChecker: checker,
errorText: BI.i18nText("BI-Color_Picker_Error_Text"),
allowBlank: false,
allowBlank: true,
value: 255,
width: 32,
height: 20

9
src/css/widget/singleslider/track/widget.css

@ -1,6 +1,5 @@
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
background-color: #F2F4F7;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
@ -10,3 +9,9 @@
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .disabled-blue-track {
background-color: #d0d4da;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

12
src/css/widget/singleslider/track/widget.track.css

@ -1,12 +0,0 @@
.bi-slider-track .gray-track {
background-color: rgba(153, 153, 153, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d999999,endColorstr=#4d999999);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.bi-slider-track .blue-track {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

1
src/less/lib/constant.less

@ -40,6 +40,7 @@
@background-color-dark: #d4dadd;
@background-color-light-gray: #F2F4F7;
@background-color-gray: #999999;
@background-color-dark-gray: #d0d4da;
@background-color-disabled: #cccccc;
@background-color-negative: #ff4949;

10
src/less/widget/singleslider/track/widget.track.less

@ -1,11 +1,15 @@
@import "../../../index";
.bi-slider-track {
.gray-track {
.background-color(@color-bi-background-gray, 30%);
& .gray-track {
background-color: @color-bi-background-light-gray;
.border-radius(3px);
}
.blue-track {
& .blue-track {
.border-radius(3px);
}
& .disabled-blue-track {
background-color: @background-color-dark-gray;
.border-radius(3px);
}
}

6
src/widget/intervalslider/intervalslider.js

@ -445,7 +445,11 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.IntervalSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

6
src/widget/singleslider/singleslider.js

@ -291,7 +291,11 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSlider.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
setMinAndMax: function (v) {

6
src/widget/singleslider/singleslider.label.js

@ -245,7 +245,11 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

6
src/widget/singleslider/singleslider.normal.js

@ -223,7 +223,11 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
_setEnable: function (b) {
BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]);
this.blueTrack && this.blueTrack.setVisible(!!b);
if(b) {
this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track");
} else {
this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track");
}
},
getValue: function () {

Loading…
Cancel
Save