pull/1792/head
Cagatay Civici 2021-11-17 17:06:07 +03:00
commit 5e8e1e799d
3 changed files with 41 additions and 1 deletions

View File

@ -37,6 +37,17 @@ const MenuProps = [
}
];
const MenuEvents = [
{
name: "show",
description: "Callback to invoke when the overlay is shown."
},
{
name: "hide",
description: "Callback to invoke when the overlay is hidden."
}
];
const MenuSlots = [
{
name: "item",
@ -49,6 +60,7 @@ module.exports = {
name: "Menu",
description: "Menu is a navigation / command component that supports dynamic and static positioning.",
props: MenuProps,
events: MenuEvents,
slots: MenuSlots
}
};

View File

@ -327,7 +327,10 @@ export default {
if (!this.$attrs.disabled) {
this.initFocusableCell();
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
if (this.numberOfMonths === 1) {
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
}
}
}
},

View File

@ -168,6 +168,31 @@ toggle(event) {
</table>
</div>
<h5>Events</h5>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<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>
</tbody>
</table>
</div>
<h5>Methods</h5>
<div class="doc-tablewrapper">
<table class="doc-table">