Fixed #4156 - DataTable & TreeTable: new size property

This commit is contained in:
Tuğçe Küçükoğlu 2023-07-19 15:01:49 +03:00
parent c69c373b12
commit 467ac78118
5 changed files with 30 additions and 2 deletions

View file

@ -187,7 +187,9 @@ const classes = {
'p-treetable-scrollable-horizontal': props.scrollable && props.scrollDirection === 'horizontal',
'p-treetable-scrollable-both': props.scrollable && props.scrollDirection === 'both',
'p-treetable-flex-scrollable': props.scrollable && props.scrollHeight === 'flex',
'p-treetable-responsive-scroll': props.responsiveLayout === 'scroll'
'p-treetable-responsive-scroll': props.responsiveLayout === 'scroll',
'p-treetable-sm': props.size === 'small',
'p-treetable-lg': props.size === 'large'
}
],
loadingWrapper: 'p-treetable-loading',
@ -416,6 +418,10 @@ export default {
type: String,
default: null
},
size: {
type: String,
default: null
},
tableProps: {
type: Object,
default: null