Skip to content
On this page

v-throttle

js
<template>
  <el-button el-button type="primary" v-throttle="click">点击</el-button>
</template>

<script setup>
  import { ElMessage } from 'element-plus'
  const click = () => {
    ElMessage.success('触发了')
  }
</script>

Released under the MIT License.