|
|
|
@ -13,16 +13,13 @@ $(function () {
|
|
|
|
|
* Created by Urthur on 2017/9/4. |
|
|
|
|
*/ |
|
|
|
|
Demo.Slider = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(Demo.Slider.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "demo-slider", |
|
|
|
|
min: 10, |
|
|
|
|
max: 50 |
|
|
|
|
}) |
|
|
|
|
_props: { |
|
|
|
|
baseCls: "demo-slider", |
|
|
|
|
min: 10, |
|
|
|
|
max: 50 |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
Demo.Slider.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var singleSlider = BI.createWidget({ |
|
|
|
|
type: "bi.single_slider", |
|
|
|
|
digit: 0, |
|
|
|
@ -103,7 +100,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
|
|
|
|
|
intervalSliderLabel.populate(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
@ -133,7 +130,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
vgap: 20 |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.shortcut("demo.slider", Demo.Slider);Demo.Button = BI.inherit(BI.Widget, { |
|
|
|
|