uniapp左滑列表删除

2023-10-13 07:28
文章标签 uniapp 删除 列表 左滑

本文主要是介绍uniapp左滑列表删除,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

目录

    • 效果
    • index.vue
    • delSlideLeft.vue
    • delRightIconfont.css
    • 参考
    • 插件
    • 最后

效果

请添加图片描述

index.vue

使用页面
引入封装的页面delSlideLeft.vue

<template><view class=""><view v-for="(item, index) in busOrderList" :key="index" :data-index="index"><delSlideLeft :item="item" :data_transit="{ index: index, item: item }" @delItem="delItem"><view class="editItem">列表展示内容</view></delSlideLeft></view></view>
</template><script>// 引入封装的页面import delSlideLeft from "@/components/delSlideLeft.vue";export default {components: {delSlideLeft}}
</script>
<style>
</style>

delSlideLeft.vue

引入delRightIconfont.css组件

<template><view><view class="box-slideLeft"><view class="touch-item touch-slideLeft" @touchstart="touchS" @touchmove="touchM" @touchend="touchE":style="item_show.txtStyle"><slot /></view><view class="touch-item del-box-touch-slideLeft cf-shuCenter" @click="delItem(item_show)"><!-- <view class="iconfont icon-shanchu"></view> -->删除</view></view></view>
</template><script>export default {components: {},props: {data_transit: {type: Object,default () {return {};}},//可不传参item: {type: Object,default () {return {};}}},computed: {},data() {return {item_show: {},delBtnWidth: 60, //删除按钮宽度单位(rpx)startX: ''};},created: function() {//专门处理检查对象中,某字段是否存在的,如果存在返回 true 不存在返回 falselet that = this;let item = that.item;if (!item.hasOwnProperty('txtStyle')) {this.$set(this.item, 'txtStyle', ''); //不需要初始化了}this.item_show = this.item;},watch: {item(e) {this.item_show = e;}},methods: {//点击删除按钮事件delItem: function(e) {let that = this;let data = {item: e,data: that.data_transit};this.$emit('delItem', data);},touchS: function(e) {let that = this;if (e.touches.length == 1) {//设置触摸起始点水平方向位置this.startX = e.touches[0].clientX;}},touchM: function(e) {let that = this;if (e.touches.length == 1) {//手指移动时水平方向位置var moveX = e.touches[0].clientX;//手指起始点位置与移动期间的差值var disX = this.startX - moveX;var delBtnWidth = this.delBtnWidth;var txtStyle = '';if (disX == 0 || disX < 0) {//如果移动距离小于等于0,说明向右滑动,文本层位置不变txtStyle = 'left:0px';} else if (disX > 0) {//移动距离大于0,文本层left值等于手指移动距离txtStyle = 'left:-' + disX + 'px';if (disX >= delBtnWidth) {//控制手指移动距离最大值为删除按钮的宽度txtStyle = 'left:-' + delBtnWidth + 'px';}}//获取手指触摸的是哪一项that.item_show.txtStyle = txtStyle;}},touchE: function(e) {let that = this;if (e.changedTouches.length == 1) {//手指移动结束后水平位置var endX = e.changedTouches[0].clientX;//触摸开始与结束,手指移动的距离var disX = this.startX - endX;var delBtnWidth = this.delBtnWidth;//如果距离小于删除按钮的1/2,不显示删除按钮var txtStyle = disX > delBtnWidth / 2 ? 'left:-' + delBtnWidth + 'px' : 'left:0px';//获取手指触摸的是哪一项that.item_show.txtStyle = txtStyle;}}}};
</script><style lang="scss">@import '/common/delRightIconfont.css'; //便于有删除图标.box-slideLeft {view {box-sizing: border-box;}position: relative;overflow: hidden;.touch-item {position: absolute;top: 4rpx;padding: 10px 10px 10px;background-color: #ffffff;// border-radius: 10px;overflow: hidden;}// 左边内容区域.touch-slideLeft {position: relative;// width: 100%;z-index: 5;transition: left 0.2s ease-in-out;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width: 714rpx;height: 265rpx;// margin: 28rpx;box-sizing: border-box;border: 1rpx solid red;margin: 28rpx auto;border-radius: 16rpx;}// 右边删除按钮.del-box-touch-slideLeft {right: 20rpx;float: left;top: 30rpx;width: 59px;height: 82%;line-height: 101px;background-color: #F02B34;border-radius: 16rpx;color: #FFFFFF;font-size: 28rpx;text-align: center;font-family: Microsoft YaHei-Regular, Microsoft YaHei;}.icon-shanchu {font-size: 44upx;}.cf-shuCenter {display: flex;flex-direction: column;justify-content: center;align-items: center;margin-top: 2rpx;}}
</style>

delRightIconfont.css

引入delRightIconfont.css组件

@font-face {font-family: "iconfont";src: url('//at.alicdn.com/t/font_1948714_o615zwc843k.eot?t=1616746789802'); /* IE9 */src: url('//at.alicdn.com/t/font_1948714_o615zwc843k.eot?t=1616746789802#iefix') format('embedded-opentype'), /* IE6-IE8 */url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAB40AAsAAAAANxgAAB3kAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCLJArSEMEZATYCJAOBcAt6AAQgBYRtB4UzG14tZQRsHAAEyfdM9v/fEqgcrkM6HA8gHK6SOaUSdMUMyyLDsujiBjvfkDGMlRJ3/BQ5Sp/ZHdJL+kgPk/C1IkdeFXL/uVfm55a9hfaV0fT+7Ix4s68BRhtKSQS/X5v3TxUTyWRapDRaI8Y9DmjOmrXIRqyEkISwSTBNQkupELSQJoiVGhZMQs0IYqUC16dA24NUjLZ3qTnVE3r39O6oI+dw2vN6iNTtsyIVViC0vJLMYLArz/97u2/7Z0wDndgMAgwjjoKAk+Z7N7Zj5h3le4QZYEVeEEYBZvOz/W6/tx2hTTorYqGX07JL/vuKPgUJEPsq+uF3PI3+yPJKWp+867bXeBgOoR3ABLDMxka92u3Oq/NNWq2WBfF3ywmXYOrrBLghHgBLq73GATww6yM4PiaD8X8rL+DAEz5vsQIpLaQE682fqZb2hukEK2YPbg8IEN+PgJ+fq7TJAXKu9MrCkJAnTI38P5Pd5CeZ7f7J0W+2vZnlzBQmi8kiqQJr1FVAyWJymDnGAoGrUa2rbY2rkbrQT1/G0TUmfvEo1K3qz9jsfbhqdLDDYoj2YfT0/z44BehSuFTm2pgODLjbaAUoG4vzgGEz4IK5BaOAxtltAXKEwGht6xvEL/n9yw93GAAVosPtkL6f2ALQk/apUsZqSe1IXXwMm92BGnCJOqgebkm5oV7kkmgk7/N5pS/gK/oQaB9A0ZFkFHz5CxEqQjQsJWuLvfZTtenR5zC7057+MPHj9C7rsz0y6fc271PjIA4eX8/mymeyblMZm+70SW/fzCLuzhvXl6UiVZMtm1qWVXe05n/NA0uenLjXIDTg5tqLXSuObemYqY9EpzPXhFA7s2HZlW237rzad+jZhxGRSpA1Pd6GPKx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nyaNAx+dw6TmjdDxAk2R7lr0b7Av2ATGZezK4PboCgjyNk2IXFOHrje27MWguAlNi0PdfgxiLyQPsynfpdaOG4OZuI1gPWaF6zYpSOt0YOI/7ZRxPXb/8BCERi9YIOT7f+AvQG+PKNucJMgt9oJNVhXtyDnWBhRMwzuHmPNYw1YiDdTWb+X3FoVgPOqBBDWK0XUzSQl9WK9ONNF9Wg8XV62/VsBI6ERmcwWb9h/z5tDpfHlxVV0w3Tsh3X84MwipM0y4uyqpu264dxmpd124/zup/3+w00RhwiKtM216doiQ76vkTLHVraCjsP5XWILEfIl4u5DmKpxCWxzfUQ4RRsmCwAhUp4oTypPgRXD6I0yyAsM5glF+Wq4R6UhYXlpbg421qULlhStro5mA1PkSnoPaDFfTViA5dHljD3iz2hfg42fyotO6F8xGixb5dyEaLgc9ZtVGPuJHJCAl/OPaaUdUhh64deHxW0wUMJuM8CTaKsmiKkWB/V+4ZPc1D0IW6BHmzVXOIB1NpnrmocxJIeIyqsEUn9wdQBJVjUCaHsrEtbVXdcN4Uo7GUvIWwUOtFVCjjzuiod8vg9bdJwY+lRehJWheW+c5wSuBHTSpd3leUjrTCJoW4SbiFPSKBexcP9KDr2xkETeVZPxPlM6RMe4ZjmV6V12+s9VzCf+CH3QhVSuIrcgEbaUCQDSuEqUVzIiTMAAA==') format('woff2'),url('//at.alicdn.com/t/font_1948714_o615zwc843k.woff?t=1616746789802') format('woff'),url('//at.alicdn.com/t/font_1948714_o615zwc843k.ttf?t=1616746789802') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */url('//at.alicdn.com/t/font_1948714_o615zwc843k.svg?t=1616746789802#iconfont') format('svg'); /* iOS 4.1- */
}.iconfont {font-family: "iconfont" !important;font-size: 16px;font-style: normal;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;
}.icon-tishi:before {content: "\e61b";
}.icon-tishi1:before {content: "\e65e";
}.icon-zhanshi:before {content: "\e6b3";
}.icon-biaoqiankuozhan_shouye-321:before {content: "\ebb2";
}.icon-guanbi3:before {content: "\e606";
}.icon-guanbi1:before {content: "\e61a";
}.icon-shezhi1:before {content: "\e617";
}.icon-gengduo2:before {content: "\e736";
}.icon-guanbi:before {content: "\e613";
}.icon-xiaoxi1:before {content: "\e616";
}.icon-sousuo1:before {content: "\e66d";
}.icon-shanchu:before {content: "\e615";
}.icon-more:before {content: "\e60a";
}.icon-shang3:before {content: "\e689";
}.icon-xia:before {content: "\e65b";
}.icon-kaiguan3:before {content: "\e6da";
}.icon-kaiguan4:before {content: "\e6db";
}.icon-xuanzhong:before {content: "\e607";
}.icon-weixuan:before {content: "\e65d";
}.icon-time:before {content: "\e619";
}.icon-you:before {content: "\e600";
}.icon-shuazi:before {content: "\e62a";
}.icon-shuazi1:before {content: "\e610";
}.icon-baocun-tianchong:before {content: "\e82b";
}.icon-chehui:before {content: "\e66b";
}.icon-bianji-cuxiantiao-fill:before {content: "\e69e";
}.icon-qingkong:before {content: "\e629";
}.icon-yanse:before {content: "\e886";
}.icon-beiwanglushili:before {content: "\e612";
}.icon-shijian:before {content: "\e631";
}.icon-icon-eye-open:before {content: "\e60c";
}.icon-icon-eye-close:before {content: "\e60f";
}.icon-icon-1:before {content: "\e6e0";
}.icon-jisuan:before {content: "\e643";
}.icon-tongji1:before {content: "\e61d";
}.icon-shezhi:before {content: "\e654";
}.icon-xiugai:before {content: "\e698";
}.icon-liebiao:before {content: "\e611";
}.icon-add:before {content: "\e604";
}.icon-shenghuofuwu:before {content: "\e681";
}.icon-jingqu:before {content: "\e61e";
}.icon-dianhua:before {content: "\e76a";
}.icon-xiaoxi:before {content: "\e79c";
}.icon-zhoumomanmanzuo:before {content: "\e7d5";
}.icon-sousuo:before {content: "\e62c";
}.icon-collection-b:before {content: "\e60d";
}.icon-daohangdizhi:before {content: "\e65f";
}.icon-like-line:before {content: "\e634";
}.icon-like-s:before {content: "\e635";
}.icon-tubiaozhizuo-:before {content: "\e605";
}.icon-shoucang:before {content: "\e6a7";
}.icon-ziyuan1:before {content: "\e618";
}.icon-back:before {content: "\e602";
}.icon-wode1:before {content: "\e658";
}.icon-fs-funding:before {content: "\e60e";
}.icon-home:before {content: "\e63f";
}.icon-gupiao:before {content: "\e614";
}.icon-xiangzuo:before {content: "\e6b0";
}.icon-xiangyou:before {content: "\e65a";
}

参考

大佬

插件

uniapp插件市场也有
地址

最后

感觉文章好的话记得点个心心和关注和收藏,有错的地方麻烦指正一下,如果需要转载,请标明出处,多谢!!!

这篇关于uniapp左滑列表删除的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/201658

相关文章

电脑桌面文件删除了怎么找回来?别急,快速恢复攻略在此

在日常使用电脑的过程中,我们经常会遇到这样的情况:一不小心,桌面上的某个重要文件被删除了。这时,大多数人可能会感到惊慌失措,不知所措。 其实,不必过于担心,因为有很多方法可以帮助我们找回被删除的桌面文件。下面,就让我们一起来了解一下这些恢复桌面文件的方法吧。 一、使用撤销操作 如果我们刚刚删除了桌面上的文件,并且还没有进行其他操作,那么可以尝试使用撤销操作来恢复文件。在键盘上同时按下“C

c++的初始化列表与const成员

初始化列表与const成员 const成员 使用const修饰的类、结构、联合的成员变量,在类对象创建完成前一定要初始化。 不能在构造函数中初始化const成员,因为执行构造函数时,类对象已经创建完成,只有类对象创建完成才能调用成员函数,构造函数虽然特殊但也是成员函数。 在定义const成员时进行初始化,该语法只有在C11语法标准下才支持。 初始化列表 在构造函数小括号后面,主要用于给

Spring+MyBatis+jeasyui 功能树列表

java代码@EnablePaging@RequestMapping(value = "/queryFunctionList.html")@ResponseBodypublic Map<String, Object> queryFunctionList() {String parentId = "";List<FunctionDisplay> tables = query(parent

uniapp设置微信小程序的交互反馈

链接:uni.showToast(OBJECT) | uni-app官网 (dcloud.net.cn) 设置操作成功的弹窗: title是我们弹窗提示的文字 showToast是我们在加载的时候进入就会弹出的提示。 2.设置失败的提示窗口和标签 icon:'error'是设置我们失败的logo 设置的文字上限是7个文字,如果需要设置的提示文字过长就需要设置icon并给

学习记录:js算法(二十八):删除排序链表中的重复元素、删除排序链表中的重复元素II

文章目录 删除排序链表中的重复元素我的思路解法一:循环解法二:递归 网上思路 删除排序链表中的重复元素 II我的思路网上思路 总结 删除排序链表中的重复元素 给定一个已排序的链表的头 head , 删除所有重复的元素,使每个元素只出现一次 。返回 已排序的链表 。 图一 图二 示例 1:(图一)输入:head = [1,1,2]输出:[1,2]示例 2:(图

基于SpringBoot的宠物服务系统+uniapp小程序+LW参考示例

系列文章目录 1.基于SSM的洗衣房管理系统+原生微信小程序+LW参考示例 2.基于SpringBoot的宠物摄影网站管理系统+LW参考示例 3.基于SpringBoot+Vue的企业人事管理系统+LW参考示例 4.基于SSM的高校实验室管理系统+LW参考示例 5.基于SpringBoot的二手数码回收系统+原生微信小程序+LW参考示例 6.基于SSM的民宿预订管理系统+LW参考示例 7.基于

如何恢复回收站中已删除/清空的文件

回收站清空后如何恢复已删除的文件?是否可以恢复永久删除的文件?或者最糟糕的是,如果文件直接被删除怎么办?本文将向您展示清空回收站后恢复已删除数据的最佳方法。 回收站清空后如何恢复已删除的文件? “回收站清空后我还能恢复已删除的文件吗?” 答案是肯定的,但是在这种情况下您将需要一个  回收站恢复工具 来从回收站中检索文件: 错误/永久删除回收站或任何数字存储设备中的文件 直接删除的文件/

Linux 删除 当前下的 mysql-8.0.31 空文件夹

在Linux中,如果你想要删除当前目录下的名为mysql-8.0.31的空文件夹(即该文件夹内没有任何文件或子文件夹),你可以使用rmdir命令。但是,如果mysql-8.0.31文件夹并非完全为空(即它包含文件或子文件夹),rmdir命令会失败。 如果你的目标是删除mysql-8.0.31文件夹及其内部的所有内容(无论是否为空),你应该使用rm命令结合-r(或-R,它们是等价的)选项来递归地删

Exchange 服务器地址列表的配置方法与注意事项

Exchange Server 是微软推出的一款企业级邮件服务器软件,广泛应用于企业内部邮件系统的搭建与管理。配置 Exchange 服务器地址列表是其中一个关键环节。本文将详细介绍 Exchange 服务器地址列表的配置方法与注意事项,帮助系统管理员顺利完成这一任务。 内容目录 1. 引言 2. 准备工作 3. 配置地址列表 3.1 创建地址列表 3.2 使用 Exchange

如何删除不小心上传到git远程仓库中的.idea .iml文件

如果在开始的时候不配置,gitignore文件或者文件配置不正确,初始化上传的时候就会有一些不必要的信息上传上去 如果已经存在了一些文件在git远程仓库中,如。idea,.iml文件等。 首先在项目中定义一个  .gitignore文件,简单的实例如下也可以用idea中的gitignore插件 .DS_Storeclasses/*.settings/target/.classpath