Skip to content

[Bug Report] ElLoading.service spinner bug #6141

@lxbnet

Description

@lxbnet

Element Plus version

2.0.2

OS/Browsers version

win10/chrome 98

Vue version

3.2.31

Reproduction Link

https://codepen.io/lkr/pen/PoOQoqP

Steps to reproduce

ElLoading.service({
fullscreen: true,
spinner: 'custom-loading-image',
text: '加载中...',
customClass: 'custom-loading',
})

What is Expected?

希望spinner能真正的做到自定义加载图标类名,不然很难自定义loading图标

希望效果:
<svg class="custom-loading-image" viewBox="25 25 50 50"></svg>

What is actually happening?

spinner作用在一个svg上,并将这个svg的innerHTML赋值为spinner的值。

实际效果:
<svg class="circular" viewBox="25 25 50 50">custom-loading-image</svg>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions