1.使用npm安装 awesome

2.在main.js 中引入
import 'font-awesome/css/font-awesome.css'
3.在VUE中使用
<el-button type="primary" @click="sendCMD"><i class="fa fa-user"></i>Send</el-button>
4.效果图
文章介绍了如何通过npm安装FontAwesome库,然后在main.js中引入其CSS文件,接着在Vue组件中利用<i>标签结合类名来使用这些图标,展示了在Vue应用中使用FontAwesome图标的一个具体例子。
1.使用npm安装 awesome

2.在main.js 中引入
import 'font-awesome/css/font-awesome.css'
3.在VUE中使用
<el-button type="primary" @click="sendCMD"><i class="fa fa-user"></i>Send</el-button>
4.效果图
2654

被折叠的 条评论
为什么被折叠?