chore: clean components

This commit is contained in:
Benjamin Canac
2021-11-19 12:25:06 +01:00
parent 025c55d5e4
commit 19664adb3a
7 changed files with 30 additions and 28 deletions

View File

@@ -1,7 +1,6 @@
<template>
<div
ref="container"
v-on-clickaway="onClickaway"
class="inline whitespace-normal"
@mouseover="mode === 'hover' ? mouseover() : () => {}"
@mouseleave="mode === 'hover' ? mouseleave() : () => {}"
@@ -18,7 +17,7 @@
leave-to-class="opacity-0"
>
<div
v-if="show && ready && $scopedSlots.content"
v-if="show && ready && $slots.content"
ref="popover"
class="z-30 flex bg-white rounded-md shadow ring-1 ring-gray-200 dark:ring-gray-700"
:class="[
@@ -38,12 +37,12 @@
<script>
import { createPopper } from '@popperjs/core'
import { directive as onClickaway } from 'vue-clickaway'
// import { directive as onClickaway } from 'vue-clickaway'
export default {
directives: {
onClickaway
},
// directives: {
// onClickaway
// },
props: {
darken: {
type: Boolean,