From 69136e94f28756fbc0456d9ab9c7dac8c2472421 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 3 May 2024 09:34:54 +0300 Subject: [PATCH] Refactor #5661 - For TreeTable --- components/lib/column/Column.d.ts | 24 ++++++++++++++++++++++++ components/lib/treetable/BodyCell.vue | 10 +++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index fa386dc03..ba61bde26 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -865,6 +865,7 @@ export interface ColumnSlots { loadingOptions: ColumnLoadingOptions; }): VNode[]; /** + * @deprecated since v4.0. Use 'rowtoggleicon' slot instead. * Custom row toggler icon template. * @param {Object} scope - row toggler icon slot's params. */ @@ -878,6 +879,20 @@ export interface ColumnSlots { */ rowExpanded: boolean; }): VNode[]; + /** + * Custom row toggler icon template. + * @param {Object} scope - row toggler icon slot's params. + */ + rowtoggleicon(scope: { + /** + * Style class of the row toggler icon. + */ + class: string; + /** + * Current row expanded state. + */ + rowExpanded: boolean; + }): VNode[]; /** * Custom row checkbox icon template. * @param {Object} scope - header row icon slot's params. @@ -948,6 +963,15 @@ export interface ColumnSlots { * Custom row reorder icon template. */ rowreordericon(): VNode[]; + /** + * @deprecated since v4.0. Use 'nodetoggleicon' slot instead. + * Custom node toggler icon template. + */ + nodetogglericon(): VNode[]; + /** + * Custom node toggler icon template. + */ + nodetoggleicon(): VNode[]; } export interface ColumnEmits {} diff --git a/components/lib/treetable/BodyCell.vue b/components/lib/treetable/BodyCell.vue index ab6492215..0c3642b20 100644 --- a/components/lib/treetable/BodyCell.vue +++ b/components/lib/treetable/BodyCell.vue @@ -2,11 +2,15 @@