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>
|
</div>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div
|
<div
|
||||||
:class="[prefixCls + '-popper', prefixCls + '-' + theme]"
|
:class="dropdownCls"
|
||||||
:style="dropStyles"
|
:style="dropStyles"
|
||||||
ref="popper"
|
ref="popper"
|
||||||
v-show="!disabled && (visible || always)"
|
v-show="!disabled && (visible || always)"
|
||||||
|
@ -74,6 +74,9 @@
|
||||||
},
|
},
|
||||||
maxWidth: {
|
maxWidth: {
|
||||||
type: [String, Number]
|
type: [String, Number]
|
||||||
|
},
|
||||||
|
transferClassName: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
@ -101,6 +104,16 @@
|
||||||
if (this.transfer) styles['z-index'] = 1060 + this.tIndex;
|
if (this.transfer) styles['z-index'] = 1060 + this.tIndex;
|
||||||
|
|
||||||
return styles;
|
return styles;
|
||||||
|
},
|
||||||
|
dropdownCls () {
|
||||||
|
return [
|
||||||
|
`${prefixCls}-popper`,
|
||||||
|
`${prefixCls}-${this.theme}`,
|
||||||
|
{
|
||||||
|
[prefixCls + '-transfer']: this.transfer,
|
||||||
|
[this.transferClassName]: this.transferClassName
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue