Commit 8c82b6f27bd173f285ba8bc67a3242d44d09a398

Authored by 梁灏
1 parent 100a98c1

update Select

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];
... ...
src/styles/components/select.less
... ... @@ -222,7 +222,7 @@
222 222 }
223 223  
224 224 &-dropdown-list {
225   - display: inline-block;
  225 + //display: inline-block;
226 226 min-width: 100%;
227 227 list-style: none;
228 228 }
... ...