跳到主要内容

SwipeCell 滑动单元格

介绍​

滑动单元格

用法​

基础用法​

<OsSwipeCell
right='删除'
>
<OsList title='我是标题'></OsList>
</OsSwipeCell>

禁用​

<OsSwipeCell
right={<View className='right'>删除</View>}
disabled
>
<OsList title='我是标题'></OsList>
</OsSwipeCell>

API​

属性​

参数说明类型默认值
right右侧滑动区域的内容,可选React.ReactNode|string-
disabled禁止滑动,可选booleanfalse