@baiguangteng/vue3-click-outside
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

Introduction

Vue3 click outside directive. Development with TS.

Installation

 npm i @baiguangteng/vue3-click-outside
 // or
 pnpm add @baiguangteng/vue3-click-outside

Example

<script lang="ts" setup>
import vClickOutside from '@baiguangteng/vue3-click-outside'

function clickOutside() {
  console.log('点击外面了')
}
</script>

<template>
  <div class="about">
    <h1 v-click-outside="clickOutside">This is an about page</h1>
  </div>
</template>

or

import vClickOutside from '@baiguangteng/vue3-click-outside'
app.use(vClickOutside)

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i @baiguangteng/vue3-click-outside

    Weekly Downloads

    5

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    1.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • baiguangteng