mirror of
https://gitee.com/layui/layui.git
synced 2025-10-26 18:59:15 +08:00
last
This commit is contained in:
@@ -55,17 +55,22 @@ layui.use(['rate'], function(){
|
||||
var rate = layui.rate;
|
||||
|
||||
//渲染
|
||||
var ins1 = rate.render({
|
||||
/*
|
||||
rate.set({
|
||||
elem: '#test1'
|
||||
,length: 7
|
||||
,value: 4
|
||||
});
|
||||
ins1.setvalue(2);
|
||||
|
||||
,value: 4.7
|
||||
,theme: '#c00'
|
||||
,half: true
|
||||
,text: true
|
||||
,reader: true
|
||||
})
|
||||
*/
|
||||
|
||||
rate.render({
|
||||
elem: '#test1'
|
||||
,length: 7
|
||||
,value: 4.2
|
||||
,length: 5
|
||||
,value: 2.2
|
||||
})
|
||||
|
||||
rate.render({
|
||||
@@ -73,21 +78,23 @@ layui.use(['rate'], function(){
|
||||
,length: 6
|
||||
,value: 2
|
||||
,half: true
|
||||
,theme: '#5FB878'
|
||||
})
|
||||
rate.render({
|
||||
elem: '#test3'
|
||||
,length: 5
|
||||
,value: 2.5
|
||||
,value: 2.8
|
||||
,text: true
|
||||
,half: true
|
||||
,theme: '#FF5722'
|
||||
})
|
||||
rate.render({
|
||||
elem: '#test4'
|
||||
,length: 8
|
||||
,value: 4.7
|
||||
,value: 4.8
|
||||
,reader: true
|
||||
,theme: '#01AAED'
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user