el-table获取表头


            this.columnTitle  = []
            this.$refs.multipleTable.$children.forEach(obj => {
              if (obj.label != undefined && obj.prop != undefined){
                // 每个列我们自己设置3个属性,label:显示的文本,prop:英文编码,checked:选中状态
                let columnChild = {'label':obj.label,'checked':false,'prop':obj.prop}
                // 存到columnTitle数组中
                this.columnTitle.push(columnChild)
              }

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM