import Vue from 'vue' import { debounce } from '@/util/operateControlRule.js' const thinclick = Vue.directive('thinclick', { bind(el, binding, vnode) { const that = vnode.context const callFun = debounce(binding.value, 500, that) el.onclick = (e) => { callFun() } } }) export { thinclick }