Swipeout
Install

Install

import { Swipeout, SwipeoutItem, SwipeoutButton } from 'vux'

swipeout

swipeout

Slots

namedescriptionrequired version
default--
swipeout-item

swipeout-item

Props

nametypedefaultdescriptionrequired version
sensitivitynumber0滑动多少距离后开始触发菜单显示--
auto-close-on-button-clickbooleantrue点击按钮后是否收回菜单--
disabledbooleanfalse是否不可滑动--
thresholdnumber0.3滑动多少距离后自动打开菜单,否则收回。可以为小于1的比例或者宽度值--
transition-modestringreveal菜单打开方式,reveal表示菜单不动内容滑出,follow表示菜单随内容滑出--

Events

nameparamsdescriptionrequired version
@on-open------
@on-close------

Slots

namedescriptionrequired version
left-menu--
right-menu--

Functions

nameparamsdescriptionrequired version
open(direction)打开菜单,参数为方向
close关闭菜单
swipeout-button

swipeout-button

Props

nametypedefaultdescriptionrequired version
textstring按钮文字,同slot=default--
background-colorstring背景颜色--
typestring内置的颜色类型,可选primary, warn--
widthstring80按钮宽度--
disabledbooleanfalseif disabled--
Variables

Variables

namedefaultdescriptioninherited 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 --


Contributors

Contributors

Total commits quantity: 0,Total contributors quantity: 0


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