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"
|
v-model="model13"
|
||||||
filterable
|
filterable
|
||||||
remote
|
remote
|
||||||
|
transfer
|
||||||
:remote-method="remoteMethod1"
|
:remote-method="remoteMethod1"
|
||||||
:loading="loading1">
|
:loading="loading1">
|
||||||
<Option v-for="(option, index) in options1" :value="option.value" :key="index">{{option.label}}</Option>
|
<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>
|
<div :class="[prefixCls + '-rel']" ref="reference" @click="handleClick"><slot></slot></div>
|
||||||
<transition :name="transition">
|
<transition :name="transition">
|
||||||
<Drop
|
<Drop
|
||||||
|
:class="dropdownCls"
|
||||||
v-show="currentVisible"
|
v-show="currentVisible"
|
||||||
:placement="placement"
|
:placement="placement"
|
||||||
ref="drop"
|
ref="drop"
|
||||||
|
@ -54,6 +55,11 @@
|
||||||
computed: {
|
computed: {
|
||||||
transition () {
|
transition () {
|
||||||
return ['bottom-start', 'bottom', 'bottom-end'].indexOf(this.placement) > -1 ? 'slide-up' : 'fade';
|
return ['bottom-start', 'bottom', 'bottom-end'].indexOf(this.placement) > -1 ? 'slide-up' : 'fade';
|
||||||
|
},
|
||||||
|
dropdownCls () {
|
||||||
|
return {
|
||||||
|
[prefixCls + '-transfer']: this.transfer
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
&-menu{
|
&-menu{
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-transfer{
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);
|
.select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);
|
Loading…
Add table
Reference in a new issue