Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Commit

Permalink
fixed popover/tooltip fragmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wffranco committed Mar 23, 2017
1 parent e471463 commit 64623a1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions src/Popover.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<span v-el:trigger>
<slot></slot>
</span>
<div v-el:popover v-if="show"
:class="['popover',placement]"
:transition="effect"
>
<div class="arrow"></div>
<h3 class="popover-title" v-if="title">
<slot name="title">{{title}}</slot>
</h3>
<div class="popover-content">
<slot name="content">{{{content}}}</slot>
<div v-el:popover v-if="show"
:class="['popover',placement]"
:transition="effect"
>
<div class="arrow"></div>
<h3 class="popover-title" v-if="title">
<slot name="title">{{title}}</slot>
</h3>
<div class="popover-content">
<slot name="content">{{{content}}}</slot>
</div>
</div>
</div>
</span>
</template>

<script>
Expand Down
18 changes: 9 additions & 9 deletions src/Tooltip.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<span v-el:trigger>
<slot></slot>
<div v-el:popover v-if="show" style="display:block;"
:class="['tooltip',placement]"
:transition="effect"
>
<div class="tooltip-arrow"></div>
<div class="tooltip-inner">
<slot name="content">{{{content}}}</slot>
</div>
</div>
</span>
<div v-el:popover v-if="show" style="display:block;"
:class="['tooltip',placement]"
:transition="effect"
>
<div class="tooltip-arrow"></div>
<div class="tooltip-inner">
<slot name="content">{{{content}}}</slot>
</div>
</div>
</template>

<script>
Expand Down

0 comments on commit 64623a1

Please sign in to comment.