From 9fcc7cc8480d5e45d1669ce3449791adae08a710 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 19 Feb 2024 09:12:35 +0300 Subject: [PATCH] Fixed #5297 - DataTable: tableClass prop specifies String type, though Array also works --- components/lib/datatable/BaseDataTable.vue | 8 ++++---- components/lib/datatable/DataTable.d.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/lib/datatable/BaseDataTable.vue b/components/lib/datatable/BaseDataTable.vue index 8bdf786460..bc565808fc 100644 --- a/components/lib/datatable/BaseDataTable.vue +++ b/components/lib/datatable/BaseDataTable.vue @@ -211,11 +211,11 @@ export default { default: null }, rowClass: { - type: null, + type: [String, Object], default: null }, rowStyle: { - type: null, + type: Object, default: null }, scrollable: { @@ -263,11 +263,11 @@ export default { default: null }, tableClass: { - type: String, + type: [String, Object], default: null }, tableProps: { - type: null, + type: Object, default: null }, filterInputProps: { diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 6c4e36b432..f26a358330 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -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. */