我该如何解决离子性问题,应用程式中无法显示图标 [英] How can I solve the issue of ionic, icons not showing in app

查看:44
本文介绍了我该如何解决离子性问题,应用程式中无法显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遇到离子图标问题
我正在使用Ionic 4版本和Angular 8
尝试添加二维码图标但没有运气

Getting an issue with ionic icon
I am using Ionic 4 version and Angular 8
Trying to add qr code icon but no luck

我正在使用离子型文档 https://ionicons.com/

I am using ionic doc https://ionicons.com/

<ion-menu-toggle auto-hide="false">
            <ion-item (click)="scanBarcode()">
              <ion-icon name="qr-code-outline" slot="start"></ion-icon>
              <ion-label>
                Scan QR
              </ion-label>
            </ion-item>
</ion-menu-toggle>

推荐答案

您正在使用Ionic v4,但最新版本是Ionic v5.进行此重大升级后,图标也发生了变化.当您搜索有关ionic v4图标的文档时: https://ionicons.com/v4/

You are using Ionic v4, but the Latest Version is Ionic v5. With this Major Upgrade the Icons changed also. When you are searching the Documentation about the ionic v4 Icons: https://ionicons.com/v4/

这篇关于我该如何解决离子性问题,应用程式中无法显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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