更新记录

1.0.0(2026-01-08) 下载此版本

master


平台兼容性

uni-app(4.13)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
-
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - -

其他

多语言 暗黑模式 宽屏模式
× ×

安装

在市场导入xf-swipe-celluni_modules版本的即可,无需import

组件关联说明

代码演示

基本用法

  • 使用组件代码如下:
<template>
    <view>
        <xf-swipe-cell v-model:show="show" :actions="actions">
            <view class="demo-swipe-cell__content">
                <text>单元格</text>
                <text style="color: #909399;">内容文案</text>
            </view>
        </xf-swipe-cell>
    </view>
</template>

<script setup lang="ts">
    import { ref } from 'vue';

    const show = ref(false);

    const actions = [{
        id: "delete",
        text: "删除",
        handler() {
            console.log(1111)
        }
    }]
</script>

<style lang="scss" scoped>
    .demo-swipe-cell__content {
        background-color: #ffffff;
        height: 54px;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        margin-left: 8px;
        margin-right: 8px;
    }
</style>

API

Props

属性名 说明 类型 默认值
index 标识符 string -
actions 单元格列表包含操作事件 array -
disabled 是否禁用 boolean false

隐私、权限声明

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

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

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

许可协议

MIT协议

暂无用户评论。