Tooltip add prop transfer-class-name
This commit is contained in:
parent
5ed3ab10af
commit
d239b5a43f
1 changed files with 14 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
<transition name="fade">
|
||||
<div
|
||||
:class="[prefixCls + '-popper', prefixCls + '-' + theme]"
|
||||
:class="dropdownCls"
|
||||
:style="dropStyles"
|
||||
ref="popper"
|
||||
v-show="!disabled && (visible || always)"
|
||||
|
@ -74,6 +74,9 @@
|
|||
},
|
||||
maxWidth: {
|
||||
type: [String, Number]
|
||||
},
|
||||
transferClassName: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -101,6 +104,16 @@
|
|||
if (this.transfer) styles['z-index'] = 1060 + this.tIndex;
|
||||
|
||||
return styles;
|
||||
},
|
||||
dropdownCls () {
|
||||
return [
|
||||
`${prefixCls}-popper`,
|
||||
`${prefixCls}-${this.theme}`,
|
||||
{
|
||||
[prefixCls + '-transfer']: this.transfer,
|
||||
[this.transferClassName]: this.transferClassName
|
||||
}
|
||||
];
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Reference in a new issue