浏览代码

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

* fix: 修改 noticebar 默认样式

* fix: 冲突修改 NoticeBar

* fix: 冲突修改 noticebar

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

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

Co-authored-by: yangxiaolu3 <yangxiaolu3@jd.com>
yangxiaolu1993 4 年之前
父节点
当前提交
1f613072ab
共有 1 个文件被更改,包括 2 次插入1 次删除
  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(() => {
       nextTick(() => {
         if (name) {
         if (name) {
           const distance = name.offsetLeft;
           const distance = name.offsetLeft;
-          lineDistance.value = distance;
+
+          lineDistance.value = distance ? distance : 20;
         }
         }
       });
       });
     };
     };