From bb12c9e724b83f213f3c5bbe8b6a6f2f2361074a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 24 Aug 2023 13:29:52 +0300 Subject: [PATCH] Fixed #4306 - DataTable: PT Options missing for Expansion Row Cell --- components/lib/basecomponent/BaseComponent.vue | 2 +- components/lib/datatable/TableBody.vue | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index f12494f68..68195e2df 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -470,7 +470,7 @@ export default { self, globalPT, key !== 'transition' && { - ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), + ...(key === 'root' && this.$.type.name === this.$options.hostName && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key) } ); diff --git a/components/lib/datatable/TableBody.vue b/components/lib/datatable/TableBody.vue index cfe400ad2..94e6bd99b 100755 --- a/components/lib/datatable/TableBody.vue +++ b/components/lib/datatable/TableBody.vue @@ -10,7 +10,7 @@ role="row" v-bind="ptm('rowGroupHeader')" > - +