ElemeFE / ElemeFE/element

[Bug Report] Loading频繁切换导致位置不准确

Open
#22,512 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.12

### OS/Browsers version
win11 Google(111.0.5563.111)

### Vue version
2.7.14

### Reproduction Link
https://codepen.io/ziyoung/pen/LKNBqB

### Steps to reproduce
通过Loading.service({ target: el,})方式调用loading服务,频繁切换会导致动态添加el-loading-parent--relative的class没有添加上,导致target元素没有相对定位,loading的绝对定位覆盖了非target元素(父级或者更高级的父级元素)

### What is Expected?
每次切换显示隐藏,loading都能在对应的元素上面显示

### What is actually happening?
多次切换,频率较快时,有几次loading覆盖了元素父级(父级有相对定位),不是target元素本身

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.