优化 laydate 时间选择器移动端滑动

pull/1446/head
sight 2023-12-10 19:38:17 +08:00
parent 1b5c0b4fcc
commit bc6da28612
1 changed files with 8 additions and 1 deletions

View File

@ -1514,7 +1514,8 @@
if(haveSpan[0]) haveSpan.remove();
elemHeader[2].appendChild(span);
lay(ul).find('ol').each(function(i){
var olElem = lay(ul).find('ol');
olElem.each(function(i){
var ol = this;
//选择时分秒
lay(ol).find('li').on('click', function(){
@ -1537,6 +1538,12 @@
that.setBtnStatus();
});
});
if(lay.touchEventsSupported()){
olElem.on('touchstart', function(){
this.style['overflow-y'] = 'auto';
})
}
}
return that;