<script setup lang="ts">
import type { ObjectDirective } from 'vue';
import useMouse from './hooks/useMouse';
import useRefPlus from './hooks/useRefPlus';
import useRequest from './hooks/useRequest';
import useTime from './hooks/useTime';

const vClick: ObjectDirective = {
  mounted(el, binding) {
    el.addEventListener('click', () => {
      alert(el.innerText, binding);
    });
  }
};

</script>

<template>
  <div v-click="'myClick'">我的是div的内容</div>
</template>

<style scoped>

</style>
