Merge branch 'master' of https://github.com/primefaces/primevue
commit
a14af778f8
|
@ -43,10 +43,22 @@ const OverlayPanelProps = [
|
|||
}
|
||||
];
|
||||
|
||||
const OverlayPanelEvents = [
|
||||
{
|
||||
name: "show",
|
||||
description: "Callback to invoke before the overlay is shown."
|
||||
},
|
||||
{
|
||||
name: "hide",
|
||||
description: "Callback to invoke before the overlay is hidden."
|
||||
},
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
overlaypanel: {
|
||||
name: "OverlayPanel",
|
||||
description: "OverlayPanel is a container component positioned as connected to its target.",
|
||||
props: OverlayPanelProps
|
||||
props: OverlayPanelProps,
|
||||
events: OverlayPanelEvents
|
||||
}
|
||||
};
|
||||
|
|
|
@ -181,6 +181,7 @@ export default {
|
|||
'viva-dark': 'viva-dark.svg',
|
||||
'mira': 'mira.jpg',
|
||||
'nano': 'nano.jpg',
|
||||
'tailwind-light': 'tailwind-light.png',
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -652,7 +652,7 @@ export default {
|
|||
return filteredGroups
|
||||
}
|
||||
else {
|
||||
return FilterService.filter(this.options, this.searchFields, this.filterValue, 'contains', this.filterLocale);
|
||||
return FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -15,6 +15,8 @@ declare class OverlayPanel {
|
|||
toggle(event: Event): void;
|
||||
show(event: Event, target?: any): void;
|
||||
hide(): void;
|
||||
$emit(eventName: 'show'): this;
|
||||
$emit(eventName: 'hide'): this;
|
||||
$slots: {
|
||||
'': VNode[];
|
||||
}
|
||||
|
|
|
@ -133,6 +133,7 @@ export default {
|
|||
};
|
||||
|
||||
OverlayEventBus.on('overlay-click', this.overlayEventListener);
|
||||
this.$emit('show');
|
||||
},
|
||||
onLeave() {
|
||||
this.unbindOutsideClickListener();
|
||||
|
@ -140,6 +141,7 @@ export default {
|
|||
this.unbindResizeListener();
|
||||
OverlayEventBus.off('overlay-click', this.overlayEventListener);
|
||||
this.overlayEventListener = null;
|
||||
this.$emit('hide');
|
||||
},
|
||||
onAfterLeave(el) {
|
||||
if (this.autoZIndex) {
|
||||
|
|
|
@ -135,6 +135,22 @@ toggle(event) {
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<h5>Events</h5>
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<tr>
|
||||
<td>show</td>
|
||||
<td>-</td>
|
||||
<td>Callback to invoke when the overlay is shown.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>hide</td>
|
||||
<td>-</td>
|
||||
<td>Callback to invoke when the overlay is hidden.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h5>Styling</h5>
|
||||
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
||||
<div class="doc-tablewrapper">
|
||||
|
|
Loading…
Reference in New Issue