From 88bb7c923df896817853d63223aed465f8c2f918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 27 Oct 2016 11:24:13 +0800 Subject: [PATCH] fix bug of Poptip fix bug of Poptip --- components/poptip/poptip.vue | 10 ++++++++-- local/routers/notice.vue | 22 ++++++++++++++-------- package.json | 2 +- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/components/poptip/poptip.vue b/components/poptip/poptip.vue index 48ec8097..95a38c4d 100644 --- a/components/poptip/poptip.vue +++ b/components/poptip/poptip.vue @@ -26,7 +26,7 @@
-
{{ title }}
+
{{ title }}
{{ content }}
@@ -83,7 +83,8 @@ }, data () { return { - prefixCls: prefixCls + prefixCls: prefixCls, + showTitle: true } }, computed: { @@ -157,6 +158,11 @@ this.visible = false; this.$emit('on-ok'); } + }, + ready () { + if (!this.confirm) { + this.showTitle = this.$els.title.innerHTML != ''; + } } } \ No newline at end of file diff --git a/local/routers/notice.vue b/local/routers/notice.vue index adf95906..03433b92 100644 --- a/local/routers/notice.vue +++ b/local/routers/notice.vue @@ -15,18 +15,24 @@ - - Delete - - - + + Delete + + + - - 当鼠标经过这段文字时,会显示一个气泡框 - + + + + + click 激活 +
+ 关闭提示框 +
+