salix/front/core/components/menu/menu.js

15 lines
343 B
JavaScript
Raw Permalink Normal View History

import ngModule from '../../module';
import Popover from '../popover';
import './style.scss';
export default class Menu extends Popover {
show(parent, direction) {
super.show(parent, direction);
this.windowEl.addEventListener('click', () => this.hide());
}
}
ngModule.vnComponent('vnMenu', {
controller: Menu
});