File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 33 "author" : " HC200ok" ,
44 "description" : " A customizable and easy-to-use data table component made with Vue.js 3.x." ,
55 "private" : false ,
6- "version" : " 1.5.34 " ,
6+ "version" : " 1.5.35 " ,
77 "types" : " ./types/main.d.ts" ,
88 "license" : " MIT" ,
99 "files" : [
Original file line number Diff line number Diff line change 2424 :style =" getColStyle(header)"
2525 />
2626 </colgroup >
27+ <slot
28+ v-if =" slots['customize-header']"
29+ name =" customize-header"
30+ />
2731 <thead
28- v-if =" headersForRender.length && !hideHeader"
32+ v-else- if =" headersForRender.length && !hideHeader"
2933 class =" vue3-easy-data-table__header"
3034 :class =" [headerClassName]"
3135 >
Original file line number Diff line number Diff line change 4646 @update-total-items =" updateTotalItems"
4747 show-index-symbol =" $"
4848 >
49+ <template #customize-header >
50+ <thead class =" my-static-header" >
51+ <tr >
52+ <th colspan =" 3" rowspan =" 2" ></th >
53+ <th colspan =" 4" >member info</th >
54+ <th colspan =" 4" >indicator</th >
55+ </tr >
56+ <tr >
57+ <th >name</th >
58+ <th >team</th >
59+ <th >number</th >
60+ <th >position</th >
61+ <th >height</th >
62+ <th >weight</th >
63+ <th >lastAttended</th >
64+ <th >country</th >
65+ </tr >
66+ </thead >
67+ </template >
4968 <template #expand =" item " >
5069 <div style =" padding : 15px " >
5170 {{ item.name }} won championships
@@ -343,4 +362,10 @@ const updateRowsPerPageSelect = (e: Event) => {
343362 --easy-table-loading-mask-background-color : #2d3a4f ;
344363}
345364
365+ .my-static-header th {
366+ color : white ;
367+ border-right : 1px solid #445269 ;
368+ border-bottom : 1px solid #445269 ;
369+ }
370+
346371 </style >
You can’t perform that action at this time.
0 commit comments