Refactor #6435 - Tree
parent
b8100f4c1b
commit
992b8d0018
|
@ -152,7 +152,7 @@ export interface TreePassThroughOptions<T = any> {
|
||||||
/**
|
/**
|
||||||
* Used to pass attributes to the checkbox's DOM element.
|
* Used to pass attributes to the checkbox's DOM element.
|
||||||
*/
|
*/
|
||||||
nodeCheckbox?: TreePassThroughOptionType<T>;
|
pcNodeCheckbox?: TreePassThroughOptionType<T>;
|
||||||
/**
|
/**
|
||||||
* Used to pass attributes to the node icon's DOM element.
|
* Used to pass attributes to the node icon's DOM element.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,7 +28,17 @@
|
||||||
<component v-else :is="node.collapsedIcon ? 'span' : 'ChevronRightIcon'" :class="cx('nodeToggleIcon')" v-bind="getPTOptions('nodeToggleIcon')" />
|
<component v-else :is="node.collapsedIcon ? 'span' : 'ChevronRightIcon'" :class="cx('nodeToggleIcon')" v-bind="getPTOptions('nodeToggleIcon')" />
|
||||||
</template>
|
</template>
|
||||||
</button>
|
</button>
|
||||||
<Checkbox v-if="checkboxMode" :modelValue="checked" :binary="true" :indeterminate="partialChecked" :class="cx('nodeCheckbox')" :tabindex="-1" :unstyled="unstyled" :pt="getPTOptions('nodeCheckbox')" :data-p-partialchecked="partialChecked">
|
<Checkbox
|
||||||
|
v-if="checkboxMode"
|
||||||
|
:modelValue="checked"
|
||||||
|
:binary="true"
|
||||||
|
:indeterminate="partialChecked"
|
||||||
|
:class="cx('nodeCheckbox')"
|
||||||
|
:tabindex="-1"
|
||||||
|
:unstyled="unstyled"
|
||||||
|
:pt="getPTOptions('pcNodeCheckbox')"
|
||||||
|
:data-p-partialchecked="partialChecked"
|
||||||
|
>
|
||||||
<template #icon="slotProps">
|
<template #icon="slotProps">
|
||||||
<component v-if="templates['checkboxicon']" :is="templates['checkboxicon']" :checked="slotProps.checked" :partialChecked="partialChecked" :class="slotProps.class" />
|
<component v-if="templates['checkboxicon']" :is="templates['checkboxicon']" :checked="slotProps.checked" :partialChecked="partialChecked" :class="slotProps.class" />
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue