File tree Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ module.exports = {
88 "error" ,
99 4 ,
1010 ] ,
11- "vue/html-indent" : 0 ,
12- "vue/max-attributes-per-line" : 0 ,
13- "vue/html-self-closing" : 0 ,
11+ "vue/html-indent" : 'off' ,
12+ "vue/max-attributes-per-line" : 'off' ,
13+ "vue/html-self-closing" : 'off' ,
14+ "no-unused-vars" : 'off' ,
1415 }
1516}
Original file line number Diff line number Diff line change @@ -54,11 +54,9 @@ import { TVTable } from '@bitthecat/tailwind-vue-data-table'
5454
5555- Select rows (visual) ✔️
5656
57- - Provide item from api url
58-
59- - Footer
57+ - Footer ✔️
6058
61- - Refresh table
59+ - Provide item from api url
6260
6361- ...
6462
@@ -85,7 +83,8 @@ import { TVTable } from '@bitthecat/tailwind-vue-data-table'
8583| fields | data fields |
8684| #cell: FIELD_NAME | used for overwrite |
8785| #row-details | row details, you need to use row.toggleDetails(row.item) within a template that contains an icon/button to toggle it |
88- | #header-row | used for additional rows up the header |
86+ | #header-row | used for additional row up the header |
87+ | #footer-row | used for show table footer row |
8988
9089slot 'cell:' has item or data props
9190
Original file line number Diff line number Diff line change 3737 </tr >
3838 </template >
3939
40+ <template #footer-row >
41+ <tr >
42+ <td colspan =" 1" />
43+ <td colspan =" 1" class =" bg-green-300 text-center" ></td >
44+ <td colspan =" 3" class =" bg-red-300 text-center" >Footer</td >
45+ </tr >
46+ </template >
47+
4048 <template #cell :username =" row " >
4149 {{ row.item.emoji }} - {{ row.item.username }}
4250 </template >
Original file line number Diff line number Diff line change 11{
22 "name" : " @bitthecat/tailwind-vue-data-table" ,
3- "version" : " 0.1.7 " ,
3+ "version" : " 0.1.8 " ,
44 "keywords" : [
55 " tailwindcss" ,
66 " vue" ,
Original file line number Diff line number Diff line change 107107 </tr >
108108 </template >
109109 </tbody >
110+ <tfoot class =" bg-gray-300 border divide-x divide-y" >
111+ <slot v-if =" slots['footer-row']" name =" footer-row" />
112+ </tfoot >
110113 </table >
111114
112115 <TVPagination
You can’t perform that action at this time.
0 commit comments