Skip to content

Commit 098cfae

Browse files
committed
Pass close actions into actions slot on list
1 parent e745efb commit 098cfae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/SwipeList.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
@swipeout:dobuleclick="_emitDblClick($event, item)"
1313
@swipeout:contentclick="_contentClick($event, item)"
1414
>
15-
<template slot="left">
16-
<slot name="left" :item="item"></slot>
15+
<template slot="left" slot-scope="{ close }">
16+
<slot name="left" :item="item" :close="close"></slot>
1717
</template>
1818
<template slot-scope="{ close, revealRight, revealLeft }">
1919
<slot :item="item" :index="index" :close="close" :revealRight="revealRight" :revealLeft="revealLeft"></slot>
2020
</template>
21-
<template slot="right">
22-
<slot name="right" :item="item"></slot>
21+
<template slot="right" slot-scope="{ close }">
22+
<slot name="right" :item="item" :close="close"></slot>
2323
</template>
2424
</swipe-out>
2525
<template v-if="!items.length">

0 commit comments

Comments
 (0)