Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] [Style] [message] 代码多次调用ElMessage方法,出现重叠的问题 #7217

Closed
CR-pcs opened this issue Apr 18, 2022 · 2 comments · Fixed by #8379
Closed

Comments

@CR-pcs
Copy link

CR-pcs commented Apr 18, 2022

Bug Type: Style

Environment

  • Vue Version: 3.2.33
  • Element Plus Version: 2.1.9
  • Browser / OS: e.g. Chrome 96.0.4664.45 / macOS 12.0.1
  • Build Tool: Vite

Reproduction

Related Component

  • el-message

Reproduction Link

Element Plus Playground

Steps to reproduce

<script setup lang="ts">
import { ElMessage } from 'element-plus'
const test = () => {
  [1,2,3,4,5,6,7].forEach(() => {
    ElMessage.warning('提示重复了')
  })
}
</script>
<template>
  <el-button @click="test" >点击出现多个提示</el-button>
</template>

What is Expected?

使用代码多次触发ElMessage方法,message的间隔正常

What is actually happening?

使用代码多次触发ElMessage方法,message的间隔重叠

Additional comments

(empty)

@sxzz sxzz added Project::Bug Something isn't working Component::Message labels Apr 18, 2022
@tulies

This comment was marked as off-topic.

@stylusscoped

This comment was marked as off-topic.

sxzz added a commit that referenced this issue Jun 20, 2022
sxzz added a commit that referenced this issue Jun 20, 2022
sxzz added a commit that referenced this issue Jun 20, 2022
sxzz added a commit that referenced this issue Jun 21, 2022
sxzz added a commit that referenced this issue Jun 21, 2022
sxzz added a commit that referenced this issue Jun 21, 2022
sxzz added a commit that referenced this issue Jun 22, 2022
* fix(components): [message]: offset

closes #7217, #8368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants