-
Notifications
You must be signed in to change notification settings - Fork 50
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
Taro3,支付宝小程序,图标不显示 #43
Comments
意思是支付宝小程序不支持是吗? |
Taro 3.0太多人抱怨了,问题很多,现在就是因为官方本身不支持造成的。issue里作者说了,3.1会修复这个问题。 |
现在3.2了修复了吗🙃 |
我升级到3.1.4了 组件正常出来了 bgImage 也能在开发工具中看到 但是还是没有出现图标 |
这个问题一直到最新版的taro依旧没有修复,只能自己手动在使用iconfont组件的页面级别config.js下 添加配置 usingComponents, taro官方并没有修复这个问题 |
在要使用的页面加入usingComponents 可行 // pages/home/index.config.ts
export default {
navigationBarTitleText: '首页',
enableShareAppMessage: true,
usingComponents: { // 主要是个
iconfont: `../../components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`
}
}
我的版本是
"taro": "3.4.10"
"taro-iconfont-cli": "3.3.0", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按照readme书写的方式如 支付宝小程序ide提示元素不存在,
The text was updated successfully, but these errors were encountered: