File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ const headers = computed(() => {
3636
3737const searchableName = computed (() => {
3838 return props .components .map ((component ) => {
39- return component .name .toLowerCase ().split (" " ).join (" " );
39+ let name = component .name ;
40+ if (! component .name ) {
41+ name = component .expr ;
42+ }
43+ return name .toLowerCase ().split (" " ).join (" " );
4044 });
4145});
4246
Original file line number Diff line number Diff line change 22 <div class =" data-table" >
33 <template v-if =" show_filter " >
44 <div class =" data-table-filter" >
5- <span class =" data-table-page" >{{ offset }} - {{ offset + limit }}</span >
5+ <span class =" data-table-page" >{{ offset }} - {{ offset + limit }} of {{ data.length }} </span >
66 <icon-button src =" chevron-left" @click =" onPrev" ></icon-button >
77 <icon-button src =" chevron-right" @click =" onNext" ></icon-button >
88 <search-box v-model =" filter" ></search-box >
7474 </tbody >
7575 <tfoot >
7676 <tr >
77- <td class =" total-results" >{{ data.length }} rows </td >
77+ <td class =" total-results" >Total </td >
7878 <td v-for =" (total, i) in totals" >
7979 <template v-if =" headers [i + 1 ].totals " >
8080 {{ total }}
@@ -332,7 +332,7 @@ div.data-table-filter {
332332 justify-content : right ;
333333 gap : 8px ;
334334 position : absolute ;
335- width : 350 px ;
335+ width : 450 px ;
336336 top : 0 ;
337337 right : 16px ;
338338 z-index : 20 ;
You can’t perform that action at this time.
0 commit comments