mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 11:19:13 +08:00
更新 laydate 示例
This commit is contained in:
@@ -157,8 +157,20 @@ layui.use('laydate', function(laydate){
|
|||||||
laydate.render({
|
laydate.render({
|
||||||
elem: '#test-first',
|
elem: '#test-first',
|
||||||
min: 0,
|
min: 0,
|
||||||
shade: [0.1, '#ddd']
|
shade: [0.1, '#ddd'],
|
||||||
//max: '2016-12-30'
|
//max: '2016-12-30',
|
||||||
|
done: function(){
|
||||||
|
console.log('done',arguments);
|
||||||
|
},
|
||||||
|
onConfirm: function(){
|
||||||
|
console.log('confirm',arguments);
|
||||||
|
},
|
||||||
|
onNow: function(){
|
||||||
|
console.log('now',arguments);
|
||||||
|
},
|
||||||
|
onClear: function(){
|
||||||
|
console.log('clear',arguments);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user