update Dropdown cls
This commit is contained in:
parent
82151bd93a
commit
f180098687
3 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
<div :class="[prefixCls + '-rel']" ref="reference" @click="handleClick"><slot></slot></div>
|
||||
<transition :name="transition">
|
||||
<Drop
|
||||
:class="dropdownCls"
|
||||
v-show="currentVisible"
|
||||
:placement="placement"
|
||||
ref="drop"
|
||||
|
@ -54,6 +55,11 @@
|
|||
computed: {
|
||||
transition () {
|
||||
return ['bottom-start', 'bottom', 'bottom-end'].indexOf(this.placement) > -1 ? 'slide-up' : 'fade';
|
||||
},
|
||||
dropdownCls () {
|
||||
return {
|
||||
[prefixCls + '-transfer']: this.transfer
|
||||
};
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue