<template>
  <ElButton>
    <span>bo </span><slot />
  </ElButton>
</template>
<script>
import { ElButton } from "element-plus";
// import { ref } from "vue";
export default {
  name: "BoButton",
  components: { ElButton },
  // emits: ["click"],
  setup() {
    // const pervious = ref(0);
    // const throttle = (fn, wait) => {
    //   const now = Date.now();
    //   if (now - pervious.value > wait) {
    //     fn();
    //     pervious.value = now;
    //   }
    // };
    // const handleClick = () => {
    //   throttle(() => emit("click"), 1000);
    // };
    return {
      // handleClick,
    };
  },
};
</script>
