Select add prop transfer-class-name

This commit is contained in:
梁灏 2019-02-26 16:48:05 +08:00
parent d893ebdc1d
commit 202c2cf396

View file

@ -231,7 +231,10 @@
}, },
elementId: { elementId: {
type: String type: String
} },
transferClassName: {
type: String
},
}, },
mounted(){ mounted(){
this.$on('on-select-selected', this.onOptionClick); this.$on('on-select-selected', this.onOptionClick);
@ -286,6 +289,7 @@
[prefixCls + '-dropdown-transfer']: this.transfer, [prefixCls + '-dropdown-transfer']: this.transfer,
[prefixCls + '-multiple']: this.multiple && this.transfer, [prefixCls + '-multiple']: this.multiple && this.transfer,
['ivu-auto-complete']: this.autoComplete, ['ivu-auto-complete']: this.autoComplete,
[this.transferClassName]: this.transferClassName
}; };
}, },
selectionCls () { selectionCls () {