layui time selectors do not second option

By modifying the CSS to hide the second option ++ style

    .laydate- Time - List {padding-bottom: 0; overflow: hidden}
     .laydate- Time - List > {Li! width: 50% Important;}
     .laydate- Time - List > Li: Last Child {-the display: none ;} 


Also, if the aesthetics bother to control the presence of second option, the format can be done time limit:

the JS part:
layui.use ( 'laydate', function () { 
var laydate = layui.laydate;
// time
laydate.render ({
elem: '# Test_0'
, type: 'Time'
, Range: to true
, the format: 'HH: mm ' Show only the division timing # limiting herein, for example, 08:05
});
});
 

Guess you like

Origin www.cnblogs.com/pyspang/p/11099341.html