Skip to content

Export as IIFE for UNPKG #28

@VanishMax

Description

@VanishMax

For now, the directive can be installed just as a directive. But it would be better to export as a Vue plugin with install function that would register a directive globally. Just like this:

export default {
  install (Vue, options) {
    Vue.directive('vue-click-outside', {
      bind () { ... all the logic here ... }
    }
  }
}

And later on, bundle for different formats. It would any person use the directive in any format they want. But for now... Looks like I have to migrate for another click-outside.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions