Skip to content

Commit 1eaa649

Browse files
committed
fix: no component fade-in, closes #500
1 parent 4df7934 commit 1eaa649

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

docs-src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ label input {
258258
visibility: hidden;
259259
opacity: 0;
260260
&:not(.no-transition) {
261-
transition: opacity .15s, visibility .15s;
261+
transition: opacity .5s, visibility .5s;
262262
}
263263
}
264264
265265
&[aria-hidden='false'] {
266266
visibility: visible;
267267
opacity: 1;
268268
&:not(.no-transition) {
269-
transition: opacity .15s;
269+
transition: opacity .5s;
270270
}
271271
}
272272

docs-src/PopoverHover.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<v-popover
3+
trigger="hover"
4+
offset="16"
5+
:auto-hide="false"
6+
>
7+
<button class="tooltip-target b1 popover-btn">Target</button>
8+
9+
<template slot="popover">
10+
Hello
11+
</template>
12+
</v-popover>
13+
</template>

docs-src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import VTooltip, { createTooltip, destroyTooltip } from '../'
44
import App from './App.vue'
55
import PageHome from './PageHome.vue'
66
import PageInstall from './PageInstall.vue'
7-
const PageTable = () => import('./PageTable.vue')
87

98
Vue.use(VTooltip, {
109
disposeTimeout: 5000,
@@ -30,7 +29,8 @@ const router = new VueRouter({
3029
routes: [
3130
{ path: '/', name: 'home', component: PageHome },
3231
{ path: '/install', name: 'install', component: PageInstall },
33-
{ path: '/table', name: 'table', component: PageTable },
32+
{ path: '/table', name: 'table', component: () => import('./PageTable.vue') },
33+
{ path: '/popover-hover', name: 'popover-hover', component: () => import('./PopoverHover.vue') },
3434
{ path: '*', redirect: '/' },
3535
],
3636
})

src/components/Popover.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,14 @@ export default {
347347
}
348348
container.appendChild(popoverNode)
349349
this.$_mounted = true
350+
this.isOpen = false
351+
if (this.popperInstance) {
352+
requestAnimationFrame(() => {
353+
if (!this.hidden) {
354+
this.isOpen = true
355+
}
356+
})
357+
}
350358
}
351359
352360
if (!this.popperInstance) {

0 commit comments

Comments
 (0)