带有VuetifyJs 1.0.0的Fontawesome 5 [英] Fontawesome 5 with VuetifyJs 1.0.0

查看:106
本文介绍了带有VuetifyJs 1.0.0的Fontawesome 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Fontawesome 5 Icons与VuetifyJs一起使用.那可能吗?我应该使用哪个用于fontawesome的npm软件包?因为没有人为我工作. 作为一名经验不足的VuetifyJs开发人员,使用VuetifyJs令我感到困惑,而在VuetifyJs的文档中却没有任何明确的步骤.

I want to use Fontawesome 5 Icons with VuetifyJs. Is that possible? which npm package for fontawesome should I use? because no one worked for me. It is really confusing for me as an inexperienced VuetifyJs developer to use it, with the lack of any clear steps in the documentation of VuetifyJs.

推荐答案

来自文档:

Font Awesome也受支持.只需使用带前缀的图标名称即可. 请注意,您仍然需要在其中添加真棒字体"图标 您的项目.

Font Awesome is also supported. Simply use the fa- prefixed icon name. Please note that you still need to include the Font Awesome icons in your project.

发布说明:

我们添加的内容

Things we added

v-icon现在支持FontAwesome 5

v-icon now supports FontAwesome 5

您可能只需要将其包含在<head>内的index.html

You probably just need to include it in your index.html inside <head> or so

<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">

然后像<v-icon>fa-search</v-icon>

这篇关于带有VuetifyJs 1.0.0的Fontawesome 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆