vue el-table实现自定义表头

2020-06-12 20:46:06易采站长站整理

handleAdd() {
},
// 编辑
handleEdit(index, row) {
},
// 删除
handleDelete(index, row) {
},
cancel() {
this.$emit("cancel")
},
confirm() {
this.$emit("confirm", this.tableData)
}
}
};
</script>

<style lang="scss" scoped>
.dialogDiv {
height: 300px;
overflow: auto;
}
</style>

页面效果如下: