更新记录
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 |