Home > WeChat Applet > Mini Program Development > How to use iView Weapp in the WeChat applet mpvue framework?

How to use iView Weapp in the WeChat applet mpvue framework?

php是最好的语言
Release: 2018-08-04 10:09:00
Original
8374 people have browsed it

Download IView Weapp

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

Import file

After downloading, import all files in the dist folder (you can also select only the required components) into the static folder of the mpvue project.
How to use iView Weapp in the WeChat applet mpvue framework?

Use components

Configure in the page where you need to use the component.
How to use iView Weapp in the WeChat applet mpvue framework?

main.js

import Vue from 'vue'import App from './index'const app = new Vue(App)
app.$mount()export default {  config: {    usingComponents: {      'i-card': '../../../static/iview/card/index'
    }
  }
}
Copy after login

Then use tags in the page to successfully call

 <i-card full title="卡片标题" extra="额外内容" thumb="https://i.loli.net/2017/08/21/599a521472424.jpg">
      <view slot="content">内容不错</view>
      <view slot="footer">尾部内容</view>
    </i-card>
Copy after login

How to use iView Weapp in the WeChat applet mpvue framework?

##Related articles :

WeChat applet New project hello WeApp Detailed introduction

How to use the template of WeChat applet

The above is the detailed content of How to use iView Weapp in the WeChat applet mpvue framework?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template