From cd92d87821db6d3e356c72e8dac3f9ceac200807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= 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 55e68bbd..53978d51 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 3de25ae1..65656cda 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);