跳至主要內容
点击组件外部

如何使用

<button
  @click="add"
  v-click-outside:[capture]="reset"
  v-click-outside:[capture].mousedown="reset"
  v-click-outside:[capture].touchstart="reset"
>测试按钮</button>

石怜安大约 2 分钟VUEDirective