l-button自定义open-type="share"的时候获取不到dataset内容
hustjiangtao opened this issue · comments
jiangtao commented
<l-button class="share" special="{{true}}" open-type="share" data-id="{{id}}">
<l-icon name="share" color="#666" size="28" />
</l-button>
然后在页面的share事件中
onShareAppMessage(res) {
console.log(res)
if (res.from === 'button') {
// console log result is undefined
console.log(res.target.dataset.id)
}
},
设备型号:
微信开发者工具预览
LinUI 版本:
"lin-ui": "^0.9.12"
微信小程序基础库版本:
=2.19.4
微信开发者工具版本:
问题描述及重现步骤:
见上述复现代码
相关截图:
Shirmy commented
l-button 组件看起来似乎没有绑定事件?
jiangtao commented
l-button 组件看起来似乎没有绑定事件?
button的open-type不需要另行绑定事件了吧,这个应该是l-button没有考虑到open-type类型的dataset情况