WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/swipe-cell
yj dd589f646c 初始化 2024-11-20 17:29:49 +08:00
..
README.en-US.md 初始化 2024-11-20 17:29:49 +08:00
README.md 初始化 2024-11-20 17:29:49 +08:00
props.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
props.js 初始化 2024-11-20 17:29:49 +08:00
swipe-cell.d.ts 初始化 2024-11-20 17:29:49 +08:00
swipe-cell.js 初始化 2024-11-20 17:29:49 +08:00
swipe-cell.json 初始化 2024-11-20 17:29:49 +08:00
swipe-cell.wxml Initial Commit 2024-11-11 14:16:29 +08:00
swipe-cell.wxs 初始化 2024-11-20 17:29:49 +08:00
swipe-cell.wxss 初始化 2024-11-20 17:29:49 +08:00
type.d.ts 初始化 2024-11-20 17:29:49 +08:00
type.js Initial Commit 2024-11-11 14:16:29 +08:00

README.en-US.md

:: BASE_DOC ::

API

SwipeCell Props

name type default description required
style Object - CSS(Cascading Style Sheets) N
custom-style Object - CSS(Cascading Style Sheets)used to set style on virtual component N
disabled Boolean - - N
left Array / Slot - TypescriptArray<SwipeActionItem> N
opened Boolean / Array false Typescriptboolean | Array<boolean> N
right Array / Slot - TypescriptArray<SwipeActionItem> interface SwipeActionItem {text?: string; icon?: string | object, className?: string; style?: string; onClick?: () => void; [key: string]: any }see more ts definition N

SwipeCell Events

name params description
click (action: SwipeActionItem, source: SwipeSource) see more ts definition
type SwipeSource = 'left' | 'right'
dragend - -
dragstart - -