<template>
  <li class="qf-dropdown-menu" @click="onClick">
    <slot></slot>
  </li>
</template>

<script>
export default {
  name: 'QfDropdownMenu',
  inject: ['dropdown'],
  methods: {
    onClick() {
      this.dropdown.hideMenu();
      this.$emit('click');
    }
  }
};
</script>
