Commit f180098687d7fdb2d01f4f1b7d3519518940ff33
1 parent
82151bd9
update Dropdown cls
Showing
3 changed files
with
11 additions
and
0 deletions
Show diff stats
examples/routers/select.vue
src/components/dropdown/dropdown.vue
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | <div :class="[prefixCls + '-rel']" ref="reference" @click="handleClick"><slot></slot></div> |
8 | 8 | <transition :name="transition"> |
9 | 9 | <Drop |
10 | + :class="dropdownCls" | |
10 | 11 | v-show="currentVisible" |
11 | 12 | :placement="placement" |
12 | 13 | ref="drop" |
... | ... | @@ -54,6 +55,11 @@ |
54 | 55 | computed: { |
55 | 56 | transition () { |
56 | 57 | return ['bottom-start', 'bottom', 'bottom-end'].indexOf(this.placement) > -1 ? 'slide-up' : 'fade'; |
58 | + }, | |
59 | + dropdownCls () { | |
60 | + return { | |
61 | + [prefixCls + '-transfer']: this.transfer | |
62 | + }; | |
57 | 63 | } |
58 | 64 | }, |
59 | 65 | data () { | ... | ... |
src/styles/components/dropdown.less