Commit 645b30f1 authored by 杨奕's avatar 杨奕 Committed by GitHub

Table: stop expansion click from bubbling (#9654)

parent d8c93127
......@@ -396,7 +396,8 @@ export default {
table.$emit(`row-${name}`, row, event, column);
},
handleExpandClick(row) {
handleExpandClick(row, e) {
e.stopPropagation();
this.store.toggleRowExpansion(row);
}
}
......
......@@ -74,7 +74,7 @@ const forced = {
renderCell: function(h, { row, store }, proxy) {
const expanded = store.states.expandRows.indexOf(row) > -1;
return <div class={ 'el-table__expand-icon ' + (expanded ? 'el-table__expand-icon--expanded' : '') }
on-click={ () => proxy.handleExpandClick(row) }>
on-click={ e => proxy.handleExpandClick(row, e) }>
<i class='el-icon el-icon-arrow-right'></i>
</div>;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment