mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4156 - DataTable & TreeTable: new size property
This commit is contained in:
parent
c69c373b12
commit
467ac78118
5 changed files with 30 additions and 2 deletions
|
@ -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
|
||||
|
|
4
components/lib/treetable/TreeTable.d.ts
vendored
4
components/lib/treetable/TreeTable.d.ts
vendored
|
@ -547,6 +547,10 @@ export interface TreeTableProps {
|
|||
* @defaultValue stack
|
||||
*/
|
||||
responsiveLayout?: 'stack' | 'scroll' | undefined;
|
||||
/**
|
||||
* Defines the size of the table.
|
||||
*/
|
||||
size?: 'small' | 'large' | undefined;
|
||||
/**
|
||||
* Props to pass to the table element.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue