企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ let window_width = 0; window.onresize = ()=>{ window_width = window.innerWidth paginate_style() dialog_style() } window.onload = ()=>{ window_width = window.innerWidth paginate_style() dialog_style() } function paginate_style(){ let obj = document.querySelector('.pagination') if (obj){ if (window_width < 1200){ obj.style.overflowX = 'scroll'; }else { obj.style.overflowX = 'hidden'; } } } function dialog_style(){ let obj_list = document.querySelectorAll('.el-dialog__wrapper') obj_list.forEach((item)=>{ if (item){ if (window_width < 1000){ item.querySelector('.el-dialog').style.width = '98%' } } }) } ~~~