Cascader add new prop transfer-class-name

This commit is contained in:
梁灏 2020-09-02 10:25:06 +08:00
parent d7625e4770
commit 970505fe65

View file

@ -23,7 +23,7 @@
<transition name="transition-drop"> <transition name="transition-drop">
<Drop <Drop
v-show="visible" v-show="visible"
:class="{ [prefixCls + '-transfer']: transfer }" :class="dropdownCls"
ref="drop" ref="drop"
:data-transfer="transfer" :data-transfer="transfer"
:transfer="transfer" :transfer="transfer"
@ -149,6 +149,9 @@
default () { default () {
return !this.$IVIEW ? true : this.$IVIEW.capture; return !this.$IVIEW ? true : this.$IVIEW.capture;
} }
},
transferClassName: {
type: String
} }
}, },
data () { data () {
@ -275,6 +278,12 @@
} }
} }
return size; return size;
},
dropdownCls () {
return {
[prefixCls + '-transfer']: this.transfer,
[this.transferClassName]: this.transferClassName
};
} }
}, },
methods: { methods: {