This commit is contained in:
贤心
2020-11-26 22:12:46 +08:00
parent fba6ab7cd2
commit f0f17b50b0
43 changed files with 153 additions and 80 deletions

View File

@@ -38,6 +38,9 @@ layui.use('slider', function(){
,change: function(value){ //回调实时显示当前值
console.log(value)
}
,setTips: function(value){ //自定义提示文本
return value + '%';
}
//,setTips: function(value){ //自定义提示文本
//return '离世界末日还有 ' + value + ' 天';
//}
@@ -46,7 +49,7 @@ layui.use('slider', function(){
//,theme: '#c00' //主题色
});
sliderInst.setValue(48)
sliderInst.setValue(30);
});
</script>
</body>