-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
[Component] [icon] cdn方式引入图标,有的图标不显示 #16749
Comments
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script src="https://unpkg.com/vue@3"></script>
<script src="//unpkg.com/@element-plus/icons-vue"></script>
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
<!-- import JavaScript -->
<script src="https://unpkg.com/element-plus"></script>
<title>Element Plus demo</title>
</head>
<body>
<div id="app">
<el-icon><view-icon></view-icon></el-icon>
<el-icon><chat-dot-square></chat-dot-square></el-icon>
<el-icon><loading></loading></el-icon>
{{ message }}
</div>
<script>
const App = {
data() {
return {
message: "Loading前面两个显示不出来, 不止一个图标,还有更多图标显示不出来",
};
},
};
const app = Vue.createApp(App);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
if(key==='View'){
app.component('viewIcon', component)
}
}
app.mount("#app");
</script>
</body>
</html>
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. 此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Type:
Component
Environment
3.4.22
2.7.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
CDN
Reproduction
Related Component
el-icon
Reproduction Link
CodePen
Steps to reproduce
编写某个图标如:
What is Expected?
显示图标
What is actually happening?
没有显示图标,有的图标显示,有的图标不显示如View
Additional comments
(empty)
The text was updated successfully, but these errors were encountered: