diff --git a/api-generator/components/menu.js b/api-generator/components/menu.js index 9116b4e47..eb53f3637 100644 --- a/api-generator/components/menu.js +++ b/api-generator/components/menu.js @@ -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 } }; diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 49961f0f7..a9a964a8c 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -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'; + } } } }, diff --git a/src/views/menu/MenuDoc.vue b/src/views/menu/MenuDoc.vue index 7c40b2f13..837a6a65a 100755 --- a/src/views/menu/MenuDoc.vue +++ b/src/views/menu/MenuDoc.vue @@ -168,6 +168,31 @@ toggle(event) { +
Name | +Parameters | +Description | +
---|---|---|
show | +- | +Callback to invoke when the overlay is shown. | +
hide | +- | +Callback to invoke when the overlay is hidden. | +