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