eCollect / vue-swipe-actions

iOS style swipe actions
https://ecollect.github.io/vue-swipe-actions/
MIT License
231 stars 48 forks source link

Feature Request: Add `disabled` to the SwipeOut slot scope #40

Closed drewrawitz closed 4 years ago

drewrawitz commented 4 years ago

It would be great if we could access the disabled state in the slot scope:

<swipe-out class="swipe-row" :disabled="isDisabled(exercise)">
  <template v-slot="{ revealed, revealLeft, revealRight, disabled, close }">
    Disabled status: {{ disabled }}
  </template>
</swipe-out>

I think it's a simple one line fix in the SwipeOut.js component. Happy to open up a PR if that's easier!