|
安卓手机
IOS没测
- var uislider = api.require('UISlider');
- uislider.open({
- animation : true,
- orientation : 'vertical',
- rect : {
- x : $api.dom('#container').offsetWidth - 35,
- y : $api.dom('#container').offsetHeight - 270 - 100,
- size : 100
- },
- handler : {
- w : 10,
- h : 10,
- bg : 'widget://image/slider_handler.png'
- },
- bar : {
- h : 4,
- bg : 'widget://res/slider/background.png',
- active : 'widget://res/slider/bar-active.png'
- },
- value : {
- min : 16,
- max : 32,
- step : 0.5,
- init : 26
- },
- fixedOn : api.frameName,
- fixed : true
- }, function(ret, err) {
- });
复制代码
滑动就闪退
同样代码改成水平就没问题
|
|