import { Swipeout, SwipeoutItem, SwipeoutButton } from 'vux'
swipeout-item
swipeout-item
Props
| name | type | default | description | required version |
| sensitivity | number | 0 | -- | |
| auto-close-on-button-click | boolean | true | -- | |
| disabled | boolean | false | -- | |
| threshold | number | 0.3 | -- | |
| transition-mode | string | reveal | -- |
Events
| name | params | description | required version |
| @on-open | -- | -- | -- |
| @on-close | -- | -- | -- |
Slots
| name | description | required version |
| left-menu | -- | |
| right-menu | -- |
Functions
| name | params | description | required version |
| open | (direction) | ||
| close |
swipeout-button
Variables
swipeout-button
Props
| name | type | default | description | required version |
| text | string | -- | ||
| background-color | string | -- | ||
| type | string | -- | ||
| width | string | 80 | -- | |
| disabled | boolean | false | if disabled | -- |
Variables
| name | default | description | inherited name |
| @swipeout-button-primary-bg-color | #1AAD19 | -- | @button-primary-bg-color |
| @swipeout-button-warn-bg-color | #E64340 | -- | @button-warn-bg-color |
| @swipeout-button-default-bg-color | #c8c7cd | -- | |
| @swipeout-content-bg-color | #FFF | -- | |
| @swipeout-button-font-color | #FFF | -- |
Changelog
Releases
- next [feature] Add prop:disabled
- v2.5.5 [enhance] swipeout-item add render method #1688
- v2.1.1-rc.9 [fix] Fix left-menu is shown when swiping right quickly
- v2.1.1-rc.7 [fix] Fix button click on Android. #1044 @tangtaoit
- v2.1.1-rc.14 [fix] Fix left-menu is shown when sliding back and forth #1139
- v2.2.0 [fix] Fix cannot scroll when disabled
- v2.2.0 [fix] Fix unable to trigger click event when disabled on android