---
title: SwipeCell 滑动操作
description: 用于承载列表中的更多操作,通过左右滑动来展示,按钮的宽度固定高度根据列表高度而变化。
spline: message
isComponent: true
---
## 引入
全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
```json
"usingComponents": {
"t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell"
}
```
## 代码演示
在开发者工具中预览效果
### 组件类型 左滑单操作 {{ left }} 右滑单操作 {{ right }} 左右滑操作 {{ double }} 带图标的滑动操作 {{ icon }} ## API ### SwipeCell Props 名称 | 类型 | 默认值 | 描述 | 必传 -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N disabled | Boolean | - | 是否禁用滑动 | N left | Array / Slot | - | 左侧滑动操作项。所有行为同 `right`。TS 类型:`ArrayTips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"