Commit da0f67703b3f1994d65e3c0018097c07938c69d8
1 parent
dec39a72
Dropdown add prop transfer-class-name
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/components/dropdown/dropdown.vue
@@ -53,7 +53,10 @@ | @@ -53,7 +53,10 @@ | ||
53 | default () { | 53 | default () { |
54 | return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; | 54 | return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; |
55 | } | 55 | } |
56 | - } | 56 | + }, |
57 | + transferClassName: { | ||
58 | + type: String | ||
59 | + }, | ||
57 | }, | 60 | }, |
58 | computed: { | 61 | computed: { |
59 | transition () { | 62 | transition () { |
@@ -61,7 +64,8 @@ | @@ -61,7 +64,8 @@ | ||
61 | }, | 64 | }, |
62 | dropdownCls () { | 65 | dropdownCls () { |
63 | return { | 66 | return { |
64 | - [prefixCls + '-transfer']: this.transfer | 67 | + [prefixCls + '-transfer']: this.transfer, |
68 | + [this.transferClassName]: this.transferClassName | ||
65 | }; | 69 | }; |
66 | }, | 70 | }, |
67 | relClasses () { | 71 | relClasses () { |