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

Taro3,支付宝小程序,图标不显示 #43

Open
hight-lig opened this issue Nov 30, 2020 · 7 comments
Open

Taro3,支付宝小程序,图标不显示 #43

hight-lig opened this issue Nov 30, 2020 · 7 comments

Comments

@hight-lig
Copy link

按照readme书写的方式如 支付宝小程序ide提示元素不存在,

@fwh1990
Copy link
Member

fwh1990 commented Nov 30, 2020

@hight-lig
Copy link
Author

NervJS / taro#5778(评论)

意思是支付宝小程序不支持是吗?

@fwh1990
Copy link
Member

fwh1990 commented Nov 30, 2020

Taro 3.0太多人抱怨了,问题很多,现在就是因为官方本身不支持造成的。issue里作者说了,3.1会修复这个问题。

@pandajk
Copy link

pandajk commented Jan 13, 2021

现在3.2了修复了吗🙃

@Jackyzm
Copy link

Jackyzm commented Mar 17, 2021

我升级到3.1.4了 组件正常出来了 bgImage 也能在开发工具中看到 但是还是没有出现图标

@zhejilifang
Copy link

Taro 3.0太多人抱怨了,问题很多,现在就是因为官方本身不支持造成的。issue里作者说了,3.1会修复这个问题。

现在3.2了修复了吗🙃

这个问题一直到最新版的taro依旧没有修复,只能自己手动在使用iconfont组件的页面级别config.js下 添加配置 usingComponents, taro官方并没有修复这个问题

@Link-X
Copy link

Link-X commented Jun 6, 2022

在要使用的页面加入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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants