Neutral Point Measurement

    clickout-vue3

    1.0.1 • Public • Published

    clickout-vue3

    Register clickout event in javascript

    Description

    A Vue3 directive is used when clicked outside of an element

    source codes are pushed on github where is https://github.com/waitInHope/clickout-vue3


    Import

    npm install clickout --save


    API

    import Clickout from 'clickout-vue3'
    
    // 全局指令
    let vue = creatApp().use(Clickout)
    
    // 组件指令
    export default {
    	directives: {
    		'clickout': Clickout
    	}
    }
    

    example

    <div v-clickout=clickoutEvent></div>

    Install

    npm i clickout-vue3

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • zhangzhendong666