Commit 8c82b6f27bd173f285ba8bc67a3242d44d09a398
1 parent
100a98c1
update Select
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/components/select/dropdown.vue
... | ... | @@ -79,6 +79,9 @@ |
79 | 79 | } |
80 | 80 | }, |
81 | 81 | resetTransformOrigin() { |
82 | + // 不判断,Select 会报错,不知道为什么 | |
83 | + if (!this.popper) return; | |
84 | + | |
82 | 85 | let x_placement = this.popper.popper.getAttribute('x-placement'); |
83 | 86 | let placementStart = x_placement.split('-')[0]; |
84 | 87 | let placementEnd = x_placement.split('-')[1]; | ... | ... |