2.3.9.20191104-alpha
scroll-view 组件在nvue (uniapp)模式下 touchcancel touchend 功能【安卓】失效【苹果正常】
raise
- 发布:2019-11-09 22:56
- 更新:2020-03-09 18:12
- 阅读:1665
raise (作者)
<template>
<scroll-view class="scroll-view" scroll-x @touchend="end" @touchcancel="end">
<view class="scroll-view-item">45</view>
<view class="scroll-view-item">45</view>
<view class="scroll-view-item">45</view>
</scroll-view>
</template>
<script>
export default {
methods: {
end(){
console.log('end');
}
}
}
</script>
<style>
.scroll-view{
width: 750upx;
height: 55px;
flex-direction: row;
}
.scroll-view-item{
width: 500upx;
height: 55px;
background-color: #007AFF;
margin: 0 15upx;
}
</style>
raise (作者)
代码已补充请查阅
2019-11-11 13:59