directives: {
preventReClick: {
inserted(el, binding) {
el.addEventListener('click', () => {
if (!el.disabled) {
el.disabled = true
setTimeout(() => {
el.disabled = false
}, binding.value || 3000)
}
})
}
},
},
标签:el,连击,false,自定义,binding,disabled,按钮
来源: https://www.cnblogs.com/zjz666/p/16646957.html