zoukankan      html  css  js  c++  java
  • taro3.x项目中引用taro-ui以及taro-iconfont-cli

    前提是已经安装好了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()),
    }
    
  • 相关阅读:
    numpy 矩阵和数组
    python map()
    python matplotlib plot
    python mean()
    预测数值型数据:回归
    散点图
    非均衡分类问题
    AdaBoost元算法
    2.1 n元排列
    1.3 数域
  • 原文地址:https://www.cnblogs.com/tulintao/p/14035990.html
Copyright © 2011-2022 走看看