1.0.1 • Published 7 years ago

vue-auto-disable v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

A vue directive help you auto disable your buttons before a Promise resolved or rejected when an event is triggerred.

Get Start

npm install vue-auto-disable

Useage

components

import autoDisable from 'vue-auto-disable'
Vue.directive('auto-disable', autoDisable)

<button
  v-auto-disable="confirm"
  @click="confirm">
  confirm
</button>

inform

confirm() must return a Promise

not only support button, but also for any html labels

tips

vue-auto-disable@0.0.1 supports vue1

chaonan.wang