mpvue 使用npm

  1. 在mpvue 按文檔使用
    1.1 安裝
    1.2
    
      "usingComponents": {
        "van-button": "@vant/weapp/button/index",
        "van-toast": "@vant/weapp/toast/index",
        "van-row": "@vant/weapp/row/index",
        "van-col": "@vant/weapp/col/index",
        "van-image": "@vant/weapp/image/index"
      }
    

2 在微信小程序構建npm
安裝npm
npm init 全部默認
安裝 npm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章