当前位置:首页 > 数据库 > 正文

【mpvue】iview weapp的引入和调用

2020-02-12 数据库

文档:https://weapp.iviewui.com/docs/guide/start

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

到github下载 iView Weapp 的代码,将 dist 目录拷贝到项目中。

 

 

 在要使用的页面的main.json文件中引入

{
    "navigationBarTitleText": "个人信息",
    "usingComponents": {
        "i-cell-group": "/static/iView/cell-group/index",
        "i-cell": "/static/iView/cell/index"   
    }
}

在vue中使用

<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>

  

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/14777.html