vue3中引入element-plus的 @element-plus/icons-vue.(已成功)
element-plus
element-plus/element-plus: Element Plus 是一个基于 Vue 3 的组件库,提供了丰富且易于使用的 UI 组件,用于快速搭建企业级桌面和移动端的前端应用。
项目地址:https://gitcode.com/gh_mirrors/el/element-plus
免费下载资源
·
vue3中引入element-plus的 @element-plus/icons-vue
最近使用element-plus开发项目,@element-plus/icons-vue 全局安装
依据官网(官网地址)的使用方法不知道什么原因 icon 的 样式一直不显示,搞了半天,不知道什么原因又好了,贴一下代码。
安装
NPM
$ npm install @element-plus/icons-vue
全局引用
main.ts里面导入引入 icon
import * as Elicons from "@element-plus/icons-vue";
const app = createApp(App);
for (const name in Elicons) {
app.component(name, Elicons[name]);
}
GitHub 加速计划 / el / element-plus
23.88 K
15.37 K
下载
element-plus/element-plus: Element Plus 是一个基于 Vue 3 的组件库,提供了丰富且易于使用的 UI 组件,用于快速搭建企业级桌面和移动端的前端应用。
最近提交(Master分支:16 天前 )
c1863f50
2 个月前
b55163fd
2 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)