首页 > 移动平台 > 详细

mpvue使用vant-weapp

时间:2020-05-12 22:42:00      阅读:100      评论:0      收藏:0      [点我收藏+]
1.npm install vant-weapp
 
2.在webpack.base.conf.js加参数
new CopyWebpackPlugin([
      {
        from: resolve(‘node_modules/vant-weapp/dist‘),
        to: resolve(‘dist/wx/vant-weapp/dist‘),
        ignore: [‘.*‘]
      }
    ])

3.在页面json引入控件

"usingComponents": {
    "van-button": "../../vant-weapp/dist/button/index",
    "van-cell-group": "../../vant-weapp/dist/cell-group/index",
    "van-cell": "../../vant-weapp/dist/cell/index",
    "van-icon": "../../vant-weapp/dist/icon/index",
    "van-swipe-cell": "../../vant-weapp/dist/swipe-cell/index"
  }

 

 

mpvue使用vant-weapp

原文:https://www.cnblogs.com/fm060/p/12879183.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!