update Dropdown cls
This commit is contained in:
parent
82151bd93a
commit
f180098687
3 changed files with 11 additions and 0 deletions
|
@ -95,6 +95,7 @@
|
|||
v-model="model13"
|
||||
filterable
|
||||
remote
|
||||
transfer
|
||||
:remote-method="remoteMethod1"
|
||||
:loading="loading1">
|
||||
<Option v-for="(option, index) in options1" :value="option.value" :key="index">{{option.label}}</Option>
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
&-menu{
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
&-transfer{
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);
|
Loading…
Add table
Reference in a new issue