Refactor #3832 Refactor #3833 - For TreeSelect: Tree icon support

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-17 10:59:20 +03:00
parent 7b9255c5e8
commit c0a4677f90
3 changed files with 66 additions and 1 deletions

View file

@ -62,7 +62,20 @@
@node-select="onNodeSelect"
@node-unselect="onNodeUnselect"
:level="0"
/>
>
<template v-if="$slots.itemtogglericon" #togglericon="iconProps">
<slot name="itemtogglericon" :node="iconProps.node" :expanded="iconProps.expanded" :class="iconProps.class" />
</template>
<template v-if="$slots.itemcheckboxicon" #checkboxicon="iconProps">
<slot name="itemcheckboxicon" :checked="iconProps.checked" :partialChecked="iconProps.partialChecked" :class="iconProps.class" />
</template>
<template v-if="$slots.loadingicon" #loadingicon>
<slot name="loadingicon" />
</template>
<template v-if="$slots.searchicon" #searchicon>
<slot name="searchicon" />
</template>
</TSTree>
<div v-if="emptyOptions" class="p-treeselect-empty-message">
<slot name="empty">{{ emptyMessageText }}</slot>
</div>