update Dropdown cls

This commit is contained in:
梁灏 2017-10-16 11:08:43 +08:00
parent 82151bd93a
commit f180098687
3 changed files with 11 additions and 0 deletions

View file

@ -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>

View file

@ -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 () {

View file

@ -21,6 +21,10 @@
&-menu{
min-width: 100px;
}
&-transfer{
width: auto;
}
}
.select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);