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 激活 +
+ 关闭提示框 +
+