Skip to content
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

项目上线后成公众号后,icon图标在ios手机上显示不出来 #2593

Closed
lw20001210 opened this issue Sep 13, 2024 · 5 comments
Closed

Comments

@lw20001210
Copy link

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.6.1

平台

h5, weapp

重现链接

https://shop.hswl007.com/onehub/clip-main#/pages/login/LoginPage

重现步骤

96826c056bf2e885dfe89b4b16ec5c2

期望的结果是什么?

字体图标可以正确显示

实际的结果是什么?

字体图标显示不出来

环境信息

No response

其他补充信息

No response

@oasis-cloud
Copy link
Collaborator

oasis-cloud commented Sep 13, 2024

你的页面展示的图标是 base64的图片。并不是 iconfont。
image

@lw20001210
Copy link
Author

您的页面展示的图标是base64的图片。不是iconfont。 图像

那是因为我更新了代码,因为icon在ios显示不出来,我就换成图片了

@lw20001210
Copy link
Author

image
这是我更改的代码记录

@oasis-cloud
Copy link
Collaborator

可以看下手机的操作系统,低版本测系统不支持的话,我们提供了兼容的方法。可以参考:全局回退方案

import { configure, Add } from "@nutui/icons-react-taro";

configure({
	useSvg: false,
})

@hooliy
Copy link

hooliy commented Nov 5, 2024

<IconFont fontClassName="iconfont" classPrefix='icon' className='flex' size={34} name="school" color='#007fec' ></IconFont>

这样显示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants