Skip to content

Commit

Permalink
Fix event handling in Table component.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulubya committed Jun 23, 2020
1 parent ce408db commit 5c2a668
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,29 @@ export default defineComponent({
[TableMobileSort.name]: TableMobileSort,
[TableColumn.name]: TableColumn
},
emits: [
'click',
'dblClick',
'sort',
'sorting-priority-removed',
'select',
'check',
'check-all',
'page-change',
'details-open',
'details-closed',
'contextmenu',
'dragstart',
'dragend',
'drop',
'dragover',
'dragleave',
'mouseenter',
'mouseleave',
'filters-change',
'update:selected',
'visible-data-changed'
],
props: {
data: {
type: Array,
Expand Down Expand Up @@ -708,6 +731,10 @@ export default defineComponent({
}
},
visibleData(value) {
this.$emit('visible-data-changed', value)
},
/**
* When Pagination total change, update internal total
* only if it's backend-paginated.
Expand Down

0 comments on commit 5c2a668

Please sign in to comment.