Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 7x 7x 7x | <template>
<nav :class="$style.root" :readonly="readonly" :disabled="disabled" @click="onClick">
<slot></slot>
</nav>
</template>
<script>
import MSinglex from '../m-singlex.vue';
export default {
name: 'u-menu',
groupName: 'u-menu-group',
childName: 'u-menu-item',
extends: MSinglex,
props: { router: { type: Boolean, default: true } },
data() {
return { parentVM: undefined };
},
methods: {
onClick(e) {
if (this.$parent && this.$parent.$options.isPopper)
this.$parent.close();
this.$emit('click', e, this);
},
},
};
</script>
<style module src="./index.css"></style>
|