uni-swipe-action 滑动操作 使用插槽多操作时IOS上操作错位

使用@touchend.stop="handleBtnClick"可以解决这个问题,但不会自动收回去,在navigateTo的success方法中调用this.$refs.swipeAction.closeAll()就可以了。

<uni-swipe-action ref="swipeAction" >
	<uni-swipe-action-item
		style="margin-bottom: 24rpx;"
	        v-for="(item, index) in dataList"
			:key="index">
			<view class="item_wrapper"
                //页面
			</view>
			<template v-slot:right>
			    <view class="slot_btn">
					<view class="slot-section edit-btn" @touchend.stop.prevent="goEdit(item,index)">
						编辑
					</view>
                    <view class="slot-section delete-btn" @touchend.stop.prevent="deleteCruise(item,index)">
						删除
					</view>
				</view>
			</template>
	</uni-swipe-action-item>
</uni-swipe-action>

猜你喜欢

转载自blog.csdn.net/m0_54239438/article/details/130314824
今日推荐