Table: fix header scoped slot not accessing data (#13263)

This commit is contained in:
hetech
2018-11-01 15:23:55 +08:00
committed by GitHub
parent f33a6562ca
commit 9c32f55892
4 changed files with 25 additions and 13 deletions

View File

@@ -1686,11 +1686,11 @@
</el-table-column>
<el-table-column
align="right">
<template slot="header" slot-scope="slot">
<template slot="header" slot-scope="scope">
<el-input
v-model="search"
size="mini"
placeholder="Type to search"/>
placeholder="输入关键字搜索"/>
</template>
<template slot-scope="scope">
<el-button
@@ -1730,8 +1730,12 @@
}
},
methods: {
handleEdit(){},
handleDelete(){}
handleEdit(index, row) {
console.log(index, row);
},
handleDelete(index, row) {
console.log(index, row);
}
},
}
</script>