From cd92d87821db6d3e356c72e8dac3f9ceac200807 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 7 Nov 2017 18:09:01 +0800 Subject: [PATCH] fixed #1482 --- examples/routers/tooltip.vue | 18 ++++++++++++++---- src/components/tooltip/tooltip.vue | 5 +++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/examples/routers/tooltip.vue b/examples/routers/tooltip.vue index 55e68bb..53978d5 100644 --- a/examples/routers/tooltip.vue +++ b/examples/routers/tooltip.vue @@ -1,15 +1,25 @@ diff --git a/src/components/tooltip/tooltip.vue b/src/components/tooltip/tooltip.vue index 3de25ae..65656cd 100644 --- a/src/components/tooltip/tooltip.vue +++ b/src/components/tooltip/tooltip.vue @@ -68,6 +68,11 @@ prefixCls: prefixCls }; }, + watch: { + content () { + this.updatePopper(); + } + }, methods: { handleShowPopper() { if (this.timeout) clearTimeout(this.timeout); -- libgit2 0.21.4