|
|
@@ -1,12 +1,12 @@
|
|
|
import Vue from "vue";
|
|
|
|
|
|
/**
|
|
|
- * Register a specific event: v-click-outside
|
|
|
+ * Register a specific event: v-click-out
|
|
|
*
|
|
|
* Example for some modale div:
|
|
|
*
|
|
|
* <template>
|
|
|
- * <div v-click-outside="onClickOutside">
|
|
|
+ * <div v-click-out="onClickOutside">
|
|
|
* <slot></slot>
|
|
|
* </div>
|
|
|
* </template>
|
|
|
@@ -18,7 +18,7 @@ import Vue from "vue";
|
|
|
* }
|
|
|
* </script>
|
|
|
*/
|
|
|
-Vue.directive("click-outside", {
|
|
|
+Vue.directive("click-out", {
|
|
|
bind: function (el, binding, vnode) {
|
|
|
el.clickOutsideEvent = (event) => {
|
|
|
if (!(el === event.target || el.contains(event.target))) {
|