2018-03-13 11:07:28 +00:00
|
|
|
import ngModule from '../../module';
|
2019-10-28 16:31:33 +00:00
|
|
|
import Popover from '../popover';
|
2020-03-09 08:00:03 +00:00
|
|
|
import './style.scss';
|
2018-03-13 11:07:28 +00:00
|
|
|
|
|
|
|
export default class Menu extends Popover {
|
2021-10-01 10:41:31 +00:00
|
|
|
show(parent, direction) {
|
|
|
|
super.show(parent, direction);
|
2019-10-28 16:31:33 +00:00
|
|
|
this.windowEl.addEventListener('click', () => this.hide());
|
2018-03-13 11:07:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-28 16:31:33 +00:00
|
|
|
ngModule.vnComponent('vnMenu', {
|
|
|
|
controller: Menu
|
2018-03-13 11:07:28 +00:00
|
|
|
});
|