From 8c82b6f27bd173f285ba8bc67a3242d44d09a398 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Fri, 4 May 2018 11:00:15 +0800 Subject: [PATCH] update Select --- src/components/select/dropdown.vue | 3 +++ src/styles/components/select.less | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/select/dropdown.vue b/src/components/select/dropdown.vue index cb9b18d..9439abb 100644 --- a/src/components/select/dropdown.vue +++ b/src/components/select/dropdown.vue @@ -79,6 +79,9 @@ } }, resetTransformOrigin() { + // 不判断,Select 会报错,不知道为什么 + if (!this.popper) return; + let x_placement = this.popper.popper.getAttribute('x-placement'); let placementStart = x_placement.split('-')[0]; let placementEnd = x_placement.split('-')[1]; diff --git a/src/styles/components/select.less b/src/styles/components/select.less index 046501f..1355c8b 100644 --- a/src/styles/components/select.less +++ b/src/styles/components/select.less @@ -222,7 +222,7 @@ } &-dropdown-list { - display: inline-block; + //display: inline-block; min-width: 100%; list-style: none; } -- libgit2 0.21.4