:: BASE_DOC ::
| name | type | default | description | required |
|---|---|---|---|---|
| className | String | - | className of component | N |
| style | Object | - | CSS(Cascading Style Sheets),Typescript:React.CSSProperties |
N |
| content | TNode | - | Typescript:string | TNode。see more ts definition |
N |
| disabled | Boolean | - | - | N |
| left | TNode | - | Typescript:Array<SwipeActionItem> | TNode。see more ts definition |
N |
| opened | Boolean / Array | false | Typescript:boolean | Array<boolean> |
N |
| right | TNode | - | Typescript:Array<SwipeActionItem> | TNode interface SwipeActionItem {text: string; className?: string; style?: Styles; sure?: Sure; onClick?: () => void; [key: string]: any } type Sure = string | TNode。see more ts definition。see more ts definition |
N |
| onChange | Function | Typescript:(value: string) => void |
N | |
| onClick | Function | Typescript:(action: SwipeActionItem, source: SwipeSource) => voidsee more ts definition。 type SwipeSource = 'left' | 'right' |
N | |
| onDragend | Function | Typescript:() => void |
N | |
| onDragstart | Function | Typescript:() => void |
N |
| name | params | return | description |
|---|---|---|---|
| className | String | - | className of component |
| style | Object | - | CSS(Cascading Style Sheets),Typescript:React.CSSProperties |
| showSure | (sure: string | TNode, onClick?: SwipeActionItem['onClick']) |
void |
Typescript:string | TNode;如果设置了 onClick,则点击二次确认内容时,会执行此onClick方法。<br />[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/swipe-cell/type.ts)。<br/>。see more ts definition |