Refactor #6504
parent
822c4d6500
commit
0e7f552bc8
|
@ -509,11 +509,29 @@ export interface CascadeSelectSlots {
|
||||||
/**
|
/**
|
||||||
* Custom header template.
|
* Custom header template.
|
||||||
*/
|
*/
|
||||||
header(): VNode[];
|
header(scope: {
|
||||||
|
/**
|
||||||
|
* Current value
|
||||||
|
*/
|
||||||
|
value: any;
|
||||||
|
/**
|
||||||
|
* Options of the component
|
||||||
|
*/
|
||||||
|
options: any[];
|
||||||
|
}): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom footer template.
|
* Custom footer template.
|
||||||
*/
|
*/
|
||||||
footer(): VNode[];
|
footer(scope: {
|
||||||
|
/**
|
||||||
|
* Current value
|
||||||
|
*/
|
||||||
|
value: any;
|
||||||
|
/**
|
||||||
|
* Options of the component
|
||||||
|
*/
|
||||||
|
options: any[];
|
||||||
|
}): VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
@keydown="onOverlayKeyDown"
|
@keydown="onOverlayKeyDown"
|
||||||
v-bind="{ ...panelProps, ...overlayProps, ...ptm('overlay') }"
|
v-bind="{ ...panelProps, ...overlayProps, ...ptm('overlay') }"
|
||||||
>
|
>
|
||||||
<slot name="header" />
|
<slot name="header" :value="modelValue" :options="options" />
|
||||||
<div :class="cx('listContainer')" v-bind="ptm('listContainer')">
|
<div :class="cx('listContainer')" v-bind="ptm('listContainer')">
|
||||||
<CascadeSelectSub
|
<CascadeSelectSub
|
||||||
:id="id + '_tree'"
|
:id="id + '_tree'"
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<span role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
|
<span role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
|
||||||
{{ selectedMessageText }}
|
{{ selectedMessageText }}
|
||||||
</span>
|
</span>
|
||||||
<slot name="footer" />
|
<slot name="footer" :value="modelValue" :options="options" />
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</Portal>
|
</Portal>
|
||||||
|
|
Loading…
Reference in New Issue