会议管理 参会情况
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
|
||||
install (Vue) {
|
||||
// 防重复点击(指令实现)
|
||||
Vue.directive('preventclick', {
|
||||
inserted (el, binding) {
|
||||
el.addEventListener('click', () => {
|
||||
if (!el.disabled) {
|
||||
el.disabled = true
|
||||
setTimeout(() => {
|
||||
el.disabled = false
|
||||
}, binding.value || 1000)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user