[Mpvue] iview weapp introduction and call

Documentation: https://weapp.iviewui.com/docs/guide/start

github:https://github.com/TalkingData/iview-weapp

Github to download iView Weapp code, the  dist catalog copy to the project.

 

 

 Introduced in main.json file you want to use the page

{
    "NavigationBarTitleText": "Personal Information"
    "usingComponents": {
        "i-cell-group": "/static/iView/cell-group/index",
        "i-cell": "/static/iView/cell/index"   
    }
}

Vue in use in

<i-cell-group>
            <i-cell title="修改信息" is-link @click="toOtherPage('me_infoFix')"></i-cell>
            <i-cell title="修改密码" is-link @click="toOtherPage('me_changePassword')"></i-cell>
            <i-cell title="退出账号" @click="signOut"></i-cell>
</i-cell-group>

  

Guess you like

Origin www.cnblogs.com/Mijiujs/p/12125646.html