9696 </template >
9797
9898
99- <!-- ================================================== Loader Slot -->
99+ <!-- ================================================== Loading Slot -->
100100 <template
101101 v-if =" slots .loading "
102102 #loading
@@ -349,13 +349,11 @@ const emit = defineEmits([
349349 ' click:row:checkbox' ,
350350 ' update:expanded' ,
351351 ' update:drilldown' ,
352- ' update:drilldown:sortby' ,
353352 ' update:options' ,
354353 ' update:itemsPerPage' ,
355354 ' update:page' ,
356355 ' update:search' ,
357356 ' update:sortBy' ,
358- ' update:sortByCustom' ,
359357]);
360358
361359
@@ -498,6 +496,7 @@ function emitClickRow(event: MouseEvent): void {
498496}
499497
500498function emitClickRowCheckbox(item : DataTableItem ): void {
499+ console .log (' emitClickRowCheckbox' );
501500 emit (' click:row:checkbox' , item );
502501}
503502
@@ -560,6 +559,7 @@ function updateItemsPerPage(val: Props['itemsPerPage']) {
560559 const data = { drilldown , itemsPerPage: val , name: ' update:itemsPerPage' };
561560
562561 optionsBus .emit (data );
562+ emit (' update:itemsPerPage' , val );
563563}
564564
565565// ------------ Paging //
@@ -571,6 +571,7 @@ function updatePage(val: Props['page']) {
571571 const data = { drilldown , name: ' update:page' , page: val };
572572
573573 optionsBus .emit (data );
574+ emit (' update:page' , val );
574575}
575576
576577// ------------ Search //
@@ -581,9 +582,10 @@ watchDebounced(
581582
582583 const options = updatedOptions (loadedDrilldown );
583584 const drilldown = { ... props , ... options , ... { search: levelSearch .value } };
584- const data = { drilldown , name: ' update:search ' , search: levelSearch .value };
585+ const data = { drilldown , search: levelSearch .value };
585586
586587 optionsBus .emit (data );
588+ emit (' update:search' , data );
587589 },
588590 {
589591 debounce: loadedDrilldown .searchDebounce as number ,
0 commit comments