vue-slider-action
simple swipe action for vue
vue 移动端滑动操作组件,支持左右滑动
Installation
npm install --save vue-slider-action
Basic Usage
;//or ;Vue;
API
Prop | Data Type | Required | Default | Description |
---|---|---|---|---|
text | String | false | text of button | |
showArrow | Boolean | false | true | whether to show arrow |
threshold | Number | false | 0.5 | With that property you can fine tune when actions are considered open. Based on action with. |
handleClick | Function | false | Emitted on click item | |
autoClose | Function, Boolean | false | false | Whether to close automatically |
example
{{item.title}}{{i}} info replay remove cancel more fasfasf remove cancel more
<script>name: 'App'{returnlist:title: 'title-320' key: 'title-1'title: 'title-22' key: 'title-2'title: 'title-3f' key: 'title-3'}methods:{consoleifwindow return true;return false}</script>