From f180098687d7fdb2d01f4f1b7d3519518940ff33 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 16 Oct 2017 11:08:43 +0800 Subject: [PATCH] update Dropdown cls --- examples/routers/select.vue | 1 + src/components/dropdown/dropdown.vue | 6 ++++++ src/styles/components/dropdown.less | 4 ++++ 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/examples/routers/select.vue b/examples/routers/select.vue index e8daa87..904636e 100644 --- a/examples/routers/select.vue +++ b/examples/routers/select.vue @@ -95,6 +95,7 @@ v-model="model13" filterable remote + transfer :remote-method="remoteMethod1" :loading="loading1"> diff --git a/src/components/dropdown/dropdown.vue b/src/components/dropdown/dropdown.vue index 3a0e051..b4e4628 100644 --- a/src/components/dropdown/dropdown.vue +++ b/src/components/dropdown/dropdown.vue @@ -7,6 +7,7 @@
-1 ? 'slide-up' : 'fade'; + }, + dropdownCls () { + return { + [prefixCls + '-transfer']: this.transfer + }; } }, data () { diff --git a/src/styles/components/dropdown.less b/src/styles/components/dropdown.less index 3bc2715..56c2ab8 100644 --- a/src/styles/components/dropdown.less +++ b/src/styles/components/dropdown.less @@ -21,6 +21,10 @@ &-menu{ min-width: 100px; } + + &-transfer{ + width: auto; + } } .select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls); \ No newline at end of file -- libgit2 0.21.4