Commit 1d83a8aaf8a11c3a88ab5861c5b757e2fde99fd3
1 parent
5d2d2d6f
fixed #1612
Showing
2 changed files
with
16 additions
and
1 deletions
Show diff stats
examples/routers/poptip.vue
src/components/poptip/poptip.vue
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | </div> |
15 | 15 | <transition name="fade"> |
16 | 16 | <div |
17 | - :class="[prefixCls + '-popper']" | |
17 | + :class="popperClasses" | |
18 | 18 | :style="styles" |
19 | 19 | ref="popper" |
20 | 20 | v-show="visible" |
... | ... | @@ -114,6 +114,14 @@ |
114 | 114 | } |
115 | 115 | ]; |
116 | 116 | }, |
117 | + popperClasses () { | |
118 | + return [ | |
119 | + `${prefixCls}-popper`, | |
120 | + { | |
121 | + [`${prefixCls}-confirm`]: this.transfer && this.confirm | |
122 | + } | |
123 | + ]; | |
124 | + }, | |
117 | 125 | styles () { |
118 | 126 | let style = {}; |
119 | 127 | ... | ... |