How to use iview in mpvue

the configuration of config, in the main.js of each noodle does not take effect

Apr.30,2021

initialize the project using the mpvue/mpvue-quickstart template, and introduce the required component path in the src/pages.js file accordingly, like this:

module.exports = [
  {
    path: 'pages/index', //  vue  src 
    config: {
      usingComponents: {
        'i-button': '../../iview/button/index'
      }
    }
  }
]

then use it as described in the official document

Menu