前提是已经安装好了taro3.x的项目


使用taro UI

在taro3.x版本出来的时候,一直以为taro UI的文档会跟着taro一起更新,但是如果照着taro UI的文档照猫画虎,并且引入了组件,这个时候你就会发现一大堆的TS错误,差不多就是告诉你引入组件错误

taro-iconfont-cli

其实taro-iconfont-cli的正常流程都可以参考官方文档中的内容,主要就是在生成配置文件之后,由于Taro3.x的架构变更,需要在src/app.config.js下填写一次usingComponents

import { useGlobalIconFont } from './components/iconfont/helper'
export default {
      usingComponents: Object.assign(useGlobalIconFont()),
}
npx iconfont-taro

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案