Skip to content

Commit f33b663

Browse files
committed
Removes rowClicked prop and emit event @row-click
1 parent 0caa640 commit f33b663

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/components/table.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
},
5050
5151
props: {
52-
rowClick: {
53-
type: Function,
54-
default: null
55-
},
5652
items: {
5753
type: Array,
5854
default: () => []
@@ -142,9 +138,7 @@
142138
},
143139
methods: {
144140
rowClicked(item, index) {
145-
if (this.rowClick) {
146-
this.rowClick(item, index);
147-
}
141+
this.$emit('row-clicked', item, index);
148142
},
149143
headClick(field, key) {
150144
if (!field.sortable) {

0 commit comments

Comments
 (0)