File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
api-generator/src/locale/en
vuetify/src/components/VDataTable Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
"sortAscIcon" : " Icon used for ascending sort button." ,
5
5
"sortDescIcon" : " Icon used for descending sort button." ,
6
6
"sticky" : " Deprecated, use `fixed-header` instead." ,
7
- "fixedHeader" : " Sticks the header to the top of the table." ,
7
+ "fixedHeader" : " Sticks the header to the top of the table. From the left" ,
8
+ "lastFixed" : " Sticks the header to the top of the table. From the right." ,
8
9
"multiSort" : " Sort on multiple columns at the same time." ,
9
10
"headerProps" : " Additional props to be be passed to the default header"
10
11
},
Original file line number Diff line number Diff line change 62
62
},
63
63
"VDataTable" : {
64
64
"props" : {
65
- "headerProps" : " 3.5.0"
65
+ "headerProps" : " 3.5.0" ,
66
+ "lastFixed" : " 3.9.0"
66
67
}
67
68
},
68
69
"VExpansionPanels" : {
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export const makeVDataTableHeadersProps = propsFactory({
61
61
color : String ,
62
62
disableSort : Boolean ,
63
63
fixedHeader : Boolean ,
64
+ lastFixed : Boolean ,
64
65
multiSort : Boolean ,
65
66
sortAscIcon : {
66
67
type : IconValue ,
@@ -94,11 +95,12 @@ export const VDataTableHeaders = genericComponent<VDataTableHeadersSlots>()({
94
95
const { loaderClasses } = useLoader ( props )
95
96
96
97
function getFixedStyles ( column : InternalDataTableHeader , y : number ) : CSSProperties | undefined {
97
- if ( ! ( props . sticky || props . fixedHeader ) && ! column . fixed ) return undefined
98
+ if ( ! ( props . sticky || props . fixedHeader ) && ! ( column . fixed || column . lastFixed ) ) return undefined
98
99
99
100
return {
100
101
position : 'sticky' ,
101
- left : column . fixed ? convertToUnit ( column . fixedOffset ) : undefined ,
102
+ left : column . fixed || column . lastFixed ? convertToUnit ( column . fixedOffset ) : undefined ,
103
+ right : column . lastFixed ? convertToUnit ( column . fixedOffset ?? 0 ) : undefined ,
102
104
top : ( props . sticky || props . fixedHeader ) ? `calc(var(--v-table-header-height) * ${ y } )` : undefined ,
103
105
}
104
106
}
You can’t perform that action at this time.
0 commit comments