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