Fixed #5297 - DataTable: tableClass prop specifies String type, though Array also works

pull/5307/head
tugcekucukoglu 2024-02-19 09:12:35 +03:00
parent 843a342024
commit 9fcc7cc848
2 changed files with 6 additions and 6 deletions

View File

@ -211,11 +211,11 @@ export default {
default: null default: null
}, },
rowClass: { rowClass: {
type: null, type: [String, Object],
default: null default: null
}, },
rowStyle: { rowStyle: {
type: null, type: Object,
default: null default: null
}, },
scrollable: { scrollable: {
@ -263,11 +263,11 @@ export default {
default: null default: null
}, },
tableClass: { tableClass: {
type: String, type: [String, Object],
default: null default: null
}, },
tableProps: { tableProps: {
type: null, type: Object,
default: null default: null
}, },
filterInputProps: { filterInputProps: {

View File

@ -1117,11 +1117,11 @@ export interface DataTableProps {
/** /**
* Inline style of the table element. * Inline style of the table element.
*/ */
tableStyle?: any; tableStyle?: object | undefined;
/** /**
* Style class of the table element. * Style class of the table element.
*/ */
tableClass?: any; tableClass?: string | object | undefined;
/** /**
* Used to pass all properties of the TableHTMLAttributes to table element inside the component. * Used to pass all properties of the TableHTMLAttributes to table element inside the component.
*/ */