diff --git a/examples/routers/tooltip.vue b/examples/routers/tooltip.vue index 791ff635..70fba7f2 100644 --- a/examples/routers/tooltip.vue +++ b/examples/routers/tooltip.vue @@ -7,7 +7,7 @@ - + diff --git a/src/components/poptip/poptip.vue b/src/components/poptip/poptip.vue index 22b3bfb1..687de8d2 100644 --- a/src/components/poptip/poptip.vue +++ b/src/components/poptip/poptip.vue @@ -36,8 +36,8 @@
-
{{ title }}
-
+
{{ title }}
+
{{ content }}
@@ -104,6 +104,10 @@ wordWrap: { type: Boolean, default: false + }, + // default by css: 8px 16px + padding: { + type: String } }, data () { @@ -161,6 +165,11 @@ [`${prefixCls}-body-content-word-wrap`]: this.wordWrap } ]; + }, + contentPaddingStyle () { + const styles = {}; + if (!!this.padding) styles['padding'] = this.padding; + return styles; } }, methods: {