I want to console.log visible items in table but @current-items emitter not working, please help me to figure out why?
I have vuetify: "1.3.11"
methods: {
currentItems(val) {
console.log(val) // the method is not called for some reason
this.test = val
console.log(this.test)
}
}
<v-data-table
@input="updateSelected"
v-bind="calculatedTableProps"
ref="dataTable"
:pagination.sync="localPagination"
:value="selected"
:headers="localHeaders"
:items="filteredItems"
:headers-length="headerCount"
:total-items="totalCount"
:loading="tableLoading"
class="big-data-table"
:class="tableFitContent ? 'table-fit-content' : ''"
:hide-actions="customActions"
v-scroll:[scrollTarget]="onScroll"
@current-items="currentItems"
>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…