elementui禁用全选按钮 使用原生去禁止

document.getElementsByClassName('el-checkbox__input')[0].classList.add('is-disabled')
          document.getElementsByClassName('el-checkbox__original')[0].disabled = true
          document.getElementsByClassName('common-table-header')[0].addEventListener('click', function () {
            event.stopImmediatePropagation()
          }, true)

 

posted @ 2020-08-25 09:15  front-gl  阅读(2100)  评论(0编辑  收藏  举报