/**
 * create 2019/1/23  haojianliang
 * 切记是button按钮  <button v-repeat-click type="primary" @click="handlerSelectionConfirm">确定</button>
*/

export default {
  inserted(el, binding) {
    el.addEventListener('click', () => {
      if (!el.disabled) {
        el.disabled = true
        setTimeout(() => {
          el.disabled = false
        }, binding.value || 2400)
      }
    })
  }
}
