perf(button): delete the button component useless code

This commit is contained in:
vben
2020-10-30 00:56:11 +08:00
parent fb0c7763ed
commit bdce84537a
6 changed files with 97 additions and 54 deletions

View File

@@ -12,9 +12,11 @@
setup(_, { emit }) {
const wrapRef = ref<Nullable<HTMLDivElement | null>>(null);
useClickOutside(wrapRef as Ref<HTMLDivElement>, () => {
emit('clickOutside');
});
return { wrapRef };
},
});