Skip to content

element-plus中ElNotification组件样式错位 #545

@MicahZJ

Description

@MicahZJ

Describe the bug

ElNotification组件样式错位
官网示例
Snipaste_2022-11-04_14-56-42

本地样式错位
image

引入代码如下

import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

module.exports = {
  // ...
  plugins: [
    AutoImport({
      resolvers: [ElementPlusResolver()],
    }),
    Components({
      resolvers: [ElementPlusResolver()],
    }),
  ],
}

Reproduction

none

System Info

node:14.18.2
system:win10
unplugin-auto-import@0.11.4
unplugin-vue-components@0.22.9
element-plus@2.2.19
vue@3.2.41
vite@3.1.8
chrome@106.0.5249.119

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions