<template>
<list style="margin-top: 0;margin-left: 15;flex: 1; background-color: white;" show-scrollbar="false">
<cell v-for="(item) in rows">
<uni-swipe-action>
<uni-swipe-action-item :autoClose="false" :right-options="actions">
<view style="height: 50;padding: 10">
<text style="color: gray;font-size: 14;opacity: 0.6;">{{item}} 哈哈哈,你好呀呀呀呀</text>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</cell>
</list>
</template>
<script>
export default {
data() {
return {
rows: [],
actions: [{
text: '删除',
style: {
backgroundColor: 'red'
}
}]
}
},
created() {
for (let i = 0; i < 100; i++) {
this.rows.push('row ' + i)
}
}
}
</script>
<style scoped>
</style>
注意:上面的正常,滚动到下面的,就不正常了
1***@qq.com (作者)
看我下面的回复
2024-09-18 12:56
提交bug
他这个是Uni-app nvue下面的
2024-12-05 18:15