Browse Source

Merge pull request #171 in ~GUY/fineui from ~IMP/fineui_guy:master to master

* commit 'dd0409f82904709317adf7bb6637ac055afc20d7':
  update
es6
guy 7 years ago
parent
commit
53fa45584c
  1. 17
      demo/js/addons/slider/demo.slider.js
  2. 17
      dist/demo.js

17
demo/js/addons/slider/demo.slider.js

@ -2,16 +2,13 @@
* 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,
@ -92,7 +89,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: [{
@ -122,7 +119,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
}] }]
}], }],
vgap: 20 vgap: 20
}); };
} }
}); });
BI.shortcut("demo.slider", Demo.Slider); BI.shortcut("demo.slider", Demo.Slider);

17
dist/demo.js vendored

@ -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, {

Loading…
Cancel
Save