feat(ios): enable swipe to delete in UITableView (#935)

* feat(ios): enable swipe to delete in UITableView

* docs(hippy-react): fix conflicts

* feat(vue): support swipe to delete

* docs(vue): typo fix

* docs(vue): markdownlint fint

* docs(listview): add min support ver

* feat(listview): add demo case

* feat(reactdemo): add a line

* revert(vuedemo): del yarn.lock

* revert(reactdemo): del yarn.lock

* feat(reactdemo): eslint fix

* docs(react): change function type

* feat(reactdemo): trigger build
This commit is contained in:
Box Tsang
2021-09-10 18:30:17 +08:00
committed by zoomchan-cxj
parent 036de77144
commit ebcf138c71
8 changed files with 56 additions and 0 deletions
+4
View File
@@ -117,6 +117,10 @@ import icon from './qb_icon_new.png';
| renderPullHeader | 设置列表下拉头部(刷新条),配合`onHeaderReleased`、`onHeaderPulling` 和 `collapsePullHeader`使用, 参考 [DEMO](//github.com/Tencent/Hippy/tree/master/examples/hippy-react-demo/src/components/PullHeader/index.jsx)。 | `() => View` | `ALL` |
| onHeaderPulling | 下拉过程中触发, 事件会通过 contentOffset 参数返回拖拽高度,可以根据下拉偏移量做相应的逻辑。 | `(obj: { contentOffset: number }) => any` | `ALL` |
| onHeaderReleased | 下拉超过内容高度,松手后触发。 | `() => any` | `ALL` |
| editable | 是否可编辑,开启侧滑删除时需要设置为 `true`。`最低支持版本2.9.0` | `boolean` | `iOS` |
| delText | 侧滑删除文本。`最低支持版本2.9.0` | `string` | `iOS` |
| onDelete | 在列表项侧滑删除时调起。`最低支持版本2.9.0` | `( nativeEvent: { index: number} ) => void` | `iOS` |
## 方法