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