refactor: 控制台简化

Former-commit-id: bb17a4f93723eedcfce015b14d2d0c9fe5c48662
This commit is contained in:
haoxr
2023-01-21 16:50:25 +08:00
parent e0dfddeac3
commit c55eccf189
10 changed files with 100 additions and 597 deletions

View File

@@ -1,15 +0,0 @@
import { Directive } from 'vue';
/**
* 按钮防抖
*/
export const deBounce: Directive = {
mounted(el: HTMLElement) {
el.addEventListener('click', () => {
el.classList.add('is-disabled');
setTimeout(() => {
el.classList.remove('is-disabled');
}, 2000);
});
}
};