Tooltip: fix ssr, fixed #3173 (#3214)

pull/3389/head
cinwell.li 2017-03-09 16:18:20 +08:00 committed by baiyaaaaa
parent 3768ba2bcf
commit 4ac6fed6a5
1 changed files with 17 additions and 17 deletions

View File

@ -52,8 +52,7 @@ export default {
},
render(h) {
if (this.$isServer) return;
if (this.popperVM) {
this.popperVM.node = (
<transition
name={ this.transition }
@ -69,6 +68,7 @@ export default {
{ this.$slots.content || this.content }
</div>
</transition>);
}
if (!this.$slots.default || !this.$slots.default.length) return this.$slots.default;