wkl007 / Mpvue Iview Weapp
Licence: mit
使用mpvue导入iview-weapp
Stars: ✭ 61
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Mpvue Iview Weapp
Weapp.socket.io
A WebSocket client for building WeChat Mini Program implement by socket.io
Stars: ✭ 517 (+747.54%)
Mutual labels: mpvue
Mpvue Animated Number
微信小程序 mpvue 数字更新滚动动画组件 / An animated number component for mpvue
Stars: ✭ 33 (-45.9%)
Mutual labels: mpvue
Awesome Uni App
Awesome for uni-app! 基于Vue.js的跨平台多端应用前端框架uni-app一站式开发资源汇总
Stars: ✭ 689 (+1029.51%)
Mutual labels: mpvue
Mpvue Calendar
📅 A calendar component for vue3.0. Support gesture sliding, range selection, according to the week switch...
Stars: ✭ 373 (+511.48%)
Mutual labels: mpvue
Alaweb
一套 Vue 代码,多端可用(H5、小程序、苹果App、安卓App、头条等)。系统含150+页面,200+组件(5端通用),30+元件(每个终端独立完成)
Stars: ✭ 837 (+1272.13%)
Mutual labels: mpvue
Vue Mpvue Chatrobot
㊙A chat robot for web & Wechat producted by vue+mpvue+nodejs.
Stars: ✭ 269 (+340.98%)
Mutual labels: mpvue
Awesome Mpvue
A curated list of awesome things related to mpvue
Stars: ✭ 1,030 (+1588.52%)
Mutual labels: mpvue
mpvue-iview-weapp
使用mpvue通过usingComponents导入iview-weapp
预览
1. git clone
git clone https://github.com/wkl007/mpvue-iview-weapp.git
2. 安装依赖
cd mpvue-iview-weapp && npm install
3. 启动程序
npm run dev
4. 预览
打开微信开发者工具,新建项目,将目录指向 /dist/wx 即可
问题
若原生组件通过click
事件,即this.triggerEvent('click', { index })
来进行父子组件通信,mpvue
无法从event.mp
中读取到正确的detail
,原因是因为mpvue
将click
事件编译为tap
导致this.triggerEvent('click', { index })
无法找到click
句柄
暂时解决方案
修改组件库click
事件名称,例如:
this.triggerEvent('click', { index })
=> this.triggerEvent('iclick', { index })
对应的模板中:
@click
=> @iclick
注:本次示例中修改了
action-sheet
、modal
组件
受影响组件(仅传值情况受影响)
- action-sheet
- modal
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].