15 lines
321 B
JavaScript
Executable File
15 lines
321 B
JavaScript
Executable File
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
|
|
});
|