更新记录

1.0.0(2022-07-01)

列表可以进行长按拖拽排序,可以进行动态删除,只支持微信小程序,h5和app试了不行@longpress这个方法使用的优点不一样。


平台兼容性

Vue2 Vue3
×
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
× × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × × × × × × ×
  1. 只需要接受一个propList 必传
  2. 返回用@change
<template>
    <view class="caseDragPage">
        <lbw-drag-lists :propList="showList" @change='changeList' />
    </view>
</template>
<script>
export default {
    data() {
        return {
            showList: []
        };
    },
    onLoad() {
        this.updateShowList();
    },
    methods: {
        updateShowList() {
            this.showList = [
                {
                    text: 1,
                    id: 333,
                },
                { text: 3 },
                { text: 2 },
                { text: 4 },
                { text: 5 },
                { text: 6 },
                { text: 7 },
                { text: 8 },
                { text: 9 }
            ];
        },
        changeList (arr) {
            console.log('arr', arr)
        }
    }
};
</script>
<style lang="scss" scoped>
.caseDragPage {
    padding: 1rpx 30rpx 100rpx;
    .title_box {
        margin-top: 30rpx;
        .title {
            font-size: 36rpx;
            color: #222222;
            font-weight: bold;
        }
        .subtitle {
            font-size: 28rpx;
            color: #999999;
            margin-top: 30rpx;
        }
    }
}
</style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问