3434 @click-row =" showItem"
3535 @update-sort =" updateSort"
3636 hide-footer
37+ body-text-direction =" left"
38+ header-text-direction =" left"
3739 >
38-
3940 <template #expand =" item " >
4041 <div style =" padding : 15px " >
4142 {{ item.name }} won championships
@@ -118,11 +119,11 @@ import {
118119// import type { UseRowsPerPageReturn } from 'use-vue3-easy-data-table';
119120import type {
120121 Header , Item , FilterOption , ClickRowArgument , UpdateSortArgument , HeaderItemClassNameFunction , BodyItemClassNameFunction , BodyRowClassNameFunction ,
122+ TextDirection ,
121123} from ' ../types/main' ;
122124import DataTable from ' ../components/DataTable.vue' ;
123125import { mockClientNestedItems , mockClientItems , mockDuplicateClientNestedItems } from ' ../mock' ;
124126
125-
126127const searchField = ref (' name' );
127128const searchValue = ref (' ' );
128129
@@ -139,15 +140,15 @@ const switchToNested = () => {
139140const headers: Header [] = [
140141 { text: ' Name' , value: ' name' },
141142 {
142- text: ' Address' , value: ' address' , width: 200 , fixed: true ,
143+ text: ' Address' , value: ' address' , fixed: true ,
143144 },
144145 { text: ' Height' , value: ' info.out.height' , sortable: true },
145146 { text: ' Weight' , value: ' info.out.weight' , sortable: true },
146147 {
147- text: ' Age' , value: ' age' , sortable: true , width: 200 ,
148+ text: ' Age' , value: ' age' , sortable: true
148149 },
149- { text: ' Favourite sport' , value: ' favouriteSport' , width: 200 },
150- { text: ' Favourite fruits' , value: ' favouriteFruits' , width: 200 },
150+ { text: ' Favourite sport' , value: ' favouriteSport' },
151+ { text: ' Favourite fruits' , value: ' favouriteFruits' },
151152];
152153
153154// const headers: Header[] = [
@@ -296,7 +297,7 @@ const updateRowsPerPageSelect = (e: Event) => {
296297 --easy-table-header-font-color : #c1cad4 ;
297298 --easy-table-header-background-color : #2d3a4f ;
298299
299- --easy-table-header-item-padding : 10px 15px ;
300+ /* --easy-table-header-item-padding: 10px 15px; */
300301
301302 --easy-table-body-even-row-font-color : #fff ;
302303 --easy-table-body-even-row-background-color : #4c5d7a ;
@@ -309,7 +310,7 @@ const updateRowsPerPageSelect = (e: Event) => {
309310 --easy-table-body-row-hover-font-color : #2d3a4f ;
310311 --easy-table-body-row-hover-background-color : #eee ;
311312
312- --easy-table-body-item-padding : 10px 15px ;
313+ /* --easy-table-body-item-padding: 10px 15px; */
313314
314315 --easy-table-footer-background-color : #2d3a4f ;
315316 --easy-table-footer-font-color : #c0c7d2 ;
0 commit comments