From da0f67703b3f1994d65e3c0018097c07938c69d8 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 19 Feb 2019 11:45:11 +0800 Subject: [PATCH] Dropdown add prop transfer-class-name --- src/components/dropdown/dropdown.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/dropdown/dropdown.vue b/src/components/dropdown/dropdown.vue index 0f3509a..feed5cc 100644 --- a/src/components/dropdown/dropdown.vue +++ b/src/components/dropdown/dropdown.vue @@ -53,7 +53,10 @@ default () { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } - } + }, + transferClassName: { + type: String + }, }, computed: { transition () { @@ -61,7 +64,8 @@ }, dropdownCls () { return { - [prefixCls + '-transfer']: this.transfer + [prefixCls + '-transfer']: this.transfer, + [this.transferClassName]: this.transferClassName }; }, relClasses () { -- libgit2 0.21.4