mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
refactor(hooks): introduce vueuse, delete duplicate hooks
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, computed, ref, unref, reactive, onMounted, watch, nextTick } from 'vue';
|
||||
import { useEvent } from '/@/hooks/event/useEvent';
|
||||
import { useEventListener } from '/@/hooks/event/useEventListener';
|
||||
|
||||
import { convertToUnit } from '/@/components/util';
|
||||
import { props as basicProps } from './props';
|
||||
@@ -109,7 +109,7 @@ export default defineComponent({
|
||||
if (!wrapEl) {
|
||||
return;
|
||||
}
|
||||
useEvent({
|
||||
useEventListener({
|
||||
el: wrapEl,
|
||||
name: 'scroll',
|
||||
listener: onScroll,
|
||||
|
Reference in New Issue
Block a user