All Projects → wkl007 → mpvue-vant-weapp

wkl007 / mpvue-vant-weapp

Licence: MIT license
使用mpvue导入vant-weapp

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to mpvue-vant-weapp

Meedu Wxapp
📜meEdu微信小程序。(wxapp for meedu)
Stars: ✭ 199 (+895%)
Mutual labels:  mpvue
mpvue-cnode
mpvue实现的微信小程序版的cnode论坛
Stars: ✭ 84 (+320%)
Mutual labels:  mpvue
image
mpvue-Unsplash
Stars: ✭ 31 (+55%)
Mutual labels:  mpvue
mpvue-wechat-zhihu
一个入门级别的资讯类微信小程序
Stars: ✭ 25 (+25%)
Mutual labels:  mpvue
mtapp
💫 💫 Vue全家桶(配Nuxt)+ssr服务器渲染+koa2 打造美团App项目(还在更新...)📦
Stars: ✭ 30 (+50%)
Mutual labels:  mpvue
uParse
📰适用于 uni-app/mpvue 的富文本解析自定义组件
Stars: ✭ 45 (+125%)
Mutual labels:  mpvue
Mp Weui
mp-weui 是基于 mpvue 和 weui-wxss 的微信小程序 UI 库。
Stars: ✭ 167 (+735%)
Mutual labels:  mpvue
spa-custom-hooks
💯 Custom hook of business layer (asynchronous task notification solution), supporting various applets and Vue architectures (uni app, wepy, mpvue, etc.)
Stars: ✭ 307 (+1435%)
Mutual labels:  mpvue
mpvue-one
使用mpvue构建的ONE·一个小程序,仅供学习使用
Stars: ✭ 19 (-5%)
Mutual labels:  mpvue
mpvue-apps
使用 Vue.js 开发小程序的前端框架
Stars: ✭ 21 (+5%)
Mutual labels:  mpvue
showModal
适用于uni-app 的跨端显示弹层,使用接口参数与uni-app 中的showModal参数一致
Stars: ✭ 67 (+235%)
Mutual labels:  mpvue
Dailyfresh-B2C
这是一个 ☛全栈/全端/全平台☚ 的B2C模式的电商项目, web后台基于Django2.0 + Python3.6, 前后端分离,前端使用Vue框架开发。移动端基于Flutter开发,一套代码支持Android&IOS平台。微信小程序基于mpvue框架开发。
Stars: ✭ 74 (+270%)
Mutual labels:  mpvue
webpack-mpvue-startup
A template with webpack 3 + mpvue 1 setup for projects startup
Stars: ✭ 13 (-35%)
Mutual labels:  mpvue
Didi
🚗 mpvue框架仿滴滴出行微信小程序
Stars: ✭ 222 (+1010%)
Mutual labels:  mpvue
mpvue-gesture-lock
微信小程序手势解锁(Dom实现,避免小程序Canvas卡顿问题),基于 Mpvue
Stars: ✭ 34 (+70%)
Mutual labels:  mpvue
Mpvue Picker
基于 mpvue 框架的小程序选择控件,支持单列,多列,联动。
Stars: ✭ 173 (+765%)
Mutual labels:  mpvue
mp-framework-benchmark
mp-framework-benchmark
Stars: ✭ 49 (+145%)
Mutual labels:  mpvue
generator-mpvue-project
Yeoman generator of mpvue project
Stars: ✭ 25 (+25%)
Mutual labels:  mpvue
common-mpvue
使用mpvue开发小程序通用能力封装
Stars: ✭ 31 (+55%)
Mutual labels:  mpvue
mpvue-netBar
use mpvue for find network
Stars: ✭ 16 (-20%)
Mutual labels:  mpvue

mpvue-vant-weapp

使用mpvue通过usingComponents导入vant-weapp

预览

1. git clone
git clone https://github.com/wkl007/mpvue-vant-weapp.git

2. 安装依赖
cd mpvue-vant-weapp && npm install

3. 启动程序
npm run dev

4. 预览
打开微信开发者工具,新建项目,将目录指向 /dist 即可

问题

  • 小程序中this.$emit(event,data)中: event有些使用中划线命名法,在mpvue中不支持,需要修改
  • 小程序中this.trigger('click', index)中: mpvue无法从event.mp中读取到正确的detail,原因是因为mpvueclick事件编译为tap导致this.trigger('click', index)无法找到click句柄

解决方案

this.$emit('click-left'); => this.$emit('clickLeft'); this.trigger('click', index);=>this.trigger('iclick', index);

注:本次示例中修改了nav-bartabsfieldtree-select组件

受影响组件(仅传值情况受影响)

  1. nav-bar
  2. tabs
  3. field
  4. tree-select
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].