dcloudio/uni-app

BUG: vue2的uniapp中, 在template内部使用箭头函数后, 传参多了个$orig

Closed this issue · 1 comments

发行方式

小程序

具体平台

微信小程序

开发环境

macOS

项目创建方式

CLI命令行

依赖版本

"@dcloudio/uni-ui": "^1.5.6",

问题描述

在template中的代码是@click="(e) => select(cate, index, e)" 此时发现select函数中获取到的cate变量错误, cate被包装成了{ $orig: cate }这样的形式

重现步骤

@click="(e) => select(cate, index, e)"

期望行为

希望正确获取到所需要的变量

实际行为

No response

截图或录屏

No response

麻烦发下可复现demo