ecomfe / okam

Mini program development framework
https://ecomfe.github.io/okam
MIT License
416 stars 65 forks source link

引用钉钉扩展组件,绑定的事件的参数并不是event.currentTarget.dataset导致报错 #7

Closed yinLiangDream closed 5 years ago

yinLiangDream commented 5 years ago
<template>
  <list-item @Click="clickItem" />
  <!-- 这种写法也无效 -->
  <!--<list-item @Click="clickItem(index)"> -->
</template>
<script>
export default {
  methods: {
    clickItem(){}
  }
}
</script>

image.png

编译过后使用事件代理:

image.png

wuhy commented 5 years ago

嗯,支付宝原生组件需要适配下,感谢反馈

wuhy commented 5 years ago

@yinLiangDream 已修复,可以使用 0.3.1 版本再看看,这个 issue 我先关了