Skip to content

Commit

Permalink
Fixed #5297 - DataTable: tableClass prop specifies String type, thoug…
Browse files Browse the repository at this point in the history
…h Array also works
  • Loading branch information
tugcekucukoglu committed Feb 19, 2024
1 parent 843a342 commit 9fcc7cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/lib/datatable/BaseDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ export default {
default: null
},
rowClass: {
type: null,
type: [String, Object],
default: null
},
rowStyle: {
type: null,
type: Object,
default: null
},
scrollable: {
Expand Down Expand Up @@ -263,11 +263,11 @@ export default {
default: null
},
tableClass: {
type: String,
type: [String, Object],
default: null
},
tableProps: {
type: null,
type: Object,
default: null
},
filterInputProps: {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1117,11 +1117,11 @@ export interface DataTableProps {
/**
* Inline style of the table element.
*/
tableStyle?: any;
tableStyle?: object | undefined;
/**
* 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.
*/
Expand Down

0 comments on commit 9fcc7cc

Please sign in to comment.