components/w-select/w-select.vue
@@ -108,11 +108,11 @@ props: { width: { type: String, default: '200px' default: '140px' }, height: { type: String, default: '30px' default: '40px' }, bgColor: { type: String, @@ -214,7 +214,6 @@ .in(this) .select('#wSelect') .boundingClientRect(data => { console.log(data.top) this.distanceTop = data.top // 当前元素距离顶部的距离 this.curHeight = data.height })