pull/1527/head
mertsincan 2021-09-06 12:23:28 +03:00
commit a14af778f8
6 changed files with 35 additions and 2 deletions

View File

@ -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
}
};

View File

@ -181,6 +181,7 @@ export default {
'viva-dark': 'viva-dark.svg',
'mira': 'mira.jpg',
'nano': 'nano.jpg',
'tailwind-light': 'tailwind-light.png',
}
}
},

View File

@ -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 {

View File

@ -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[];
}

View File

@ -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) {

View File

@ -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">