[Improvement] CellSwipe: add open method (#1546)

This commit is contained in:
neverland
2018-07-26 21:50:59 +08:00
committed by GitHub
parent f1a5a73124
commit 2c536b7d4a
3 changed files with 30 additions and 6 deletions
+11 -1
View File
@@ -73,7 +73,17 @@ export default {
| right | content of right scrollabe area |
### onClose Params
| Argument | Type | Description |
|-----------|-----------|-----------|
| clickPosition | `String` | Click positon (`left` `right` `cell` `outside`) |
| instance | `Object` | CellSwipe instance with a close method |
| instance | `Object` | CellSwipe instance |
### Methods
Use ref to get CellSwipe instance and call instance methods
| Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------|
| open | position: 'left' \| 'right' | - | open CellSwipe |
| close | - | - | close CellSwipe |