diff --git a/packages/tooltip/src/main.js b/packages/tooltip/src/main.js index 62fcb40ad..9ed867185 100644 --- a/packages/tooltip/src/main.js +++ b/packages/tooltip/src/main.js @@ -52,23 +52,23 @@ export default { }, render(h) { - if (this.$isServer) return; - - this.popperVM.node = ( - -
{ this.debounceClose(); this.togglePreventClose(); } } - onMouseenter= { this.togglePreventClose } - ref="popper" - v-show={!this.disabled && this.showPopper} - class={ - ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] - }> - { this.$slots.content || this.content } -
-
); + if (this.popperVM) { + this.popperVM.node = ( + +
{ this.debounceClose(); this.togglePreventClose(); } } + onMouseenter= { this.togglePreventClose } + ref="popper" + v-show={!this.disabled && this.showPopper} + class={ + ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] + }> + { this.$slots.content || this.content } +
+
); + } if (!this.$slots.default || !this.$slots.default.length) return this.$slots.default;