Browse Source

fix(address): 组件红线位置错乱问题 (#732)

* fix: 修改 noticebar 默认样式

* fix: 冲突修改 NoticeBar

* fix: 冲突修改 noticebar

* fix: 地址组件点击空白处触发事件问题修改

* fix: address 组件红线位置错乱问题

Co-authored-by: yangxiaolu3 <yangxiaolu3@jd.com>
yangxiaolu1993 4 years ago
parent
commit
1f613072ab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/packages/__VUE/address/index.vue

+ 2 - 1
src/packages/__VUE/address/index.vue

@@ -320,7 +320,8 @@ export default create({
       nextTick(() => {
         if (name) {
           const distance = name.offsetLeft;
-          lineDistance.value = distance;
+
+          lineDistance.value = distance ? distance : 20;
         }
       });
     };