3434 @click-row =" showItem"
3535 @update-sort =" updateSort"
3636 hide-footer
37+ body-text-direction =" left"
38+ header-text-direction =" left"
3739 >
38- <template #body .prepend =" body " >
39- <tr >
40- <td
41- v-for =" (header, index) in body.headers"
42- :key =" index"
43- >
44- <span v-if =" isDataHeader(header)" >Coloumn {{ header.text }}</span >
45- </td >
46- </tr >
47- </template >
48-
4940 <template #expand =" item " >
5041 <div style =" padding : 15px " >
5142 {{ item.name }} won championships
@@ -132,11 +123,11 @@ import {
132123// import type { UseRowsPerPageReturn } from 'use-vue3-easy-data-table';
133124import type {
134125 Header , Item , FilterOption , ClickRowArgument , UpdateSortArgument , HeaderItemClassNameFunction , BodyItemClassNameFunction , BodyRowClassNameFunction ,
126+ TextDirection ,
135127} from ' ../types/main' ;
136128import DataTable from ' ../components/DataTable.vue' ;
137129import { mockClientNestedItems , mockClientItems , mockDuplicateClientNestedItems } from ' ../mock' ;
138130
139-
140131const searchField = ref (' name' );
141132const searchValue = ref (' ' );
142133
@@ -153,15 +144,15 @@ const switchToNested = () => {
153144const headers: Header [] = [
154145 { text: ' Name' , value: ' name' },
155146 {
156- text: ' Address' , value: ' address' , width: 200 , fixed: true ,
147+ text: ' Address' , value: ' address' , fixed: true ,
157148 },
158149 { text: ' Height' , value: ' info.out.height' , sortable: true },
159150 { text: ' Weight' , value: ' info.out.weight' , sortable: true },
160151 {
161- text: ' Age' , value: ' age' , sortable: true , width: 200 ,
152+ text: ' Age' , value: ' age' , sortable: true
162153 },
163- { text: ' Favourite sport' , value: ' favouriteSport' , width: 200 },
164- { text: ' Favourite fruits' , value: ' favouriteFruits' , width: 200 },
154+ { text: ' Favourite sport' , value: ' favouriteSport' },
155+ { text: ' Favourite fruits' , value: ' favouriteFruits' },
165156];
166157
167158// const headers: Header[] = [
@@ -313,7 +304,7 @@ const updateRowsPerPageSelect = (e: Event) => {
313304 --easy-table-header-font-color : #c1cad4 ;
314305 --easy-table-header-background-color : #2d3a4f ;
315306
316- --easy-table-header-item-padding : 10px 15px ;
307+ /* --easy-table-header-item-padding: 10px 15px; */
317308
318309 --easy-table-body-even-row-font-color : #fff ;
319310 --easy-table-body-even-row-background-color : #4c5d7a ;
@@ -326,7 +317,7 @@ const updateRowsPerPageSelect = (e: Event) => {
326317 --easy-table-body-row-hover-font-color : #2d3a4f ;
327318 --easy-table-body-row-hover-background-color : #eee ;
328319
329- --easy-table-body-item-padding : 10px 15px ;
320+ /* --easy-table-body-item-padding: 10px 15px; */
330321
331322 --easy-table-footer-background-color : #2d3a4f ;
332323 --easy-table-footer-font-color : #c0c7d2 ;
0 commit comments