Skip to content

Commit dd64019

Browse files
committed
update documentation
1 parent f0a08d4 commit dd64019

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/components/SwipeList.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<template>
2-
<div class="swipeout-list card">
2+
<div class="swipeout-list"
3+
:class="{'swipeout--disabled': disabled}">
34
<swipe-out
45
v-for="(item, index) in items"
56
:key="item[transitionKey] || index"
67
:ref="`list-item-${index}`"
78
:disabled="disabled"
9+
:threshold="threshold"
810
class="swipeout-list-item"
911
@swipeout:click="_emitClick($event, item, index)"
1012
@swipeout:dobuleclick="_emitDblClick($event, item)"
@@ -40,6 +42,10 @@
4042
type: String,
4143
default: 'id',
4244
},
45+
threshold: {
46+
type: Number,
47+
default: 45,
48+
},
4349
disabled: {
4450
type: Boolean,
4551
default: false,

src/components/SwipeOut.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
type: Number,
5050
default: 45,
5151
},
52+
/**
53+
* Is the item disabled
54+
*/
5255
disabled: {
5356
type: Boolean,
5457
default: false,
@@ -275,7 +278,7 @@
275278
},
276279
};
277280
</script>
278-
<style scoped>
281+
<style>
279282
.swipeout {
280283
position: relative;
281284
overflow: hidden;

0 commit comments

Comments
 (0)