Refactor #3832 Refactor #3833 - deprecate indicator slot

pull/3976/head
Tuğçe Küçükoğlu 2023-04-18 15:12:53 +03:00
parent 05ef39c97b
commit 936f5169a0
3 changed files with 8 additions and 2 deletions

View File

@ -196,7 +196,7 @@ const TreeSelectSlots = [
description: 'Custom content when there is no data to display'
},
{
name: 'indicator',
name: 'triggericon',
description: 'Custom content for the dropdown indicator'
},
{

View File

@ -148,8 +148,14 @@ export interface TreeSelectSlots {
empty(): VNode[];
/**
* Custom indicator template.
* @deprecated since v3.27.0. Use 'checkboxicon' slot.
*/
indicator(): VNode[];
/**
* Custom indicator template.
* @deprecated since v3.27.0. Use 'checkboxicon' slot.
*/
triggericon(): VNode[];
/**
* Custom item toggler icon template.
* @param {Object} scope - item toggler icon slot's params.

View File

@ -38,7 +38,7 @@
</div>
</div>
<div class="p-treeselect-trigger" role="button" aria-haspopup="tree" :aria-expanded="overlayVisible">
<slot name="indicator">
<slot name="triggericon">
<component :is="'ChevronDownIcon'" class="p-treeselect-trigger-icon" />
</slot>
</div>