Skip to content

Commit

Permalink
refactor(drop-down-menu-item): decrease tree size
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Apr 15, 2023
1 parent 0a8c49f commit 6c66572
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/drop-down-menu-item.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<li v-if="show" class="dsq-drop-down-menu-item hover:bg-gray-300 p-4 font-medium group z-10 cursor-pointer" @click.prevent="onClick">
<div class="flex flex-row items-center">
<div class="flex items-center text-gray-500 group-hover:text-gray-900">
<slot />
</div>
<span>{{ label }}</span>
<li v-if="show"
class="dsq-drop-down-menu-item flex flex-row items-center hover:bg-gray-300 p-4 font-medium group z-10 cursor-pointer"
@click.prevent="onClick">
<div class="flex items-center text-gray-500 group-hover:text-gray-900">
<slot />
</div>
<span>{{ label }}</span>
</li>
</template>

Expand Down

0 comments on commit 6c66572

Please sign in to comment.