diff --git a/README.md b/README.md index b9fea4f..5a69e05 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ modal-vue accepts 3 props which are passed to it as attributes in the `` - [showModal](#showmodal) (Boolean) - [closeAction](#closeaction) (Function) - [containerClass](#containerclass) (String) +- [closeOnOverlayClick](#closeonoverlayclick) (Boolean) #### showModal If true, the modal dialog will be displayed. Pass in whatever state in your application controls this. @@ -54,6 +55,9 @@ This is the function to called when the close button of the modal dialog is clic #### containerClass This is optional and specifies a Bootstrap container class to be used for the `
` that wraps the modal dialog if required. +#### closeOnOverlayClick +If true, the `closeAction` will also be fired when the overlay is clicked. + ### slots modal-vue has 3 html slots which are defined as child elements of the `` element: diff --git a/demo/App.vue b/demo/App.vue index ee4191b..ebfc19c 100644 --- a/demo/App.vue +++ b/demo/App.vue @@ -21,14 +21,16 @@
+ + + \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 09fdba1..ea2f15d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["modal-vue"]=t():e["modal-vue"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){n(6);var r=n(4)(n(1),n(5),"data-v-5e6a9794",null);e.exports=r.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{showModal:Boolean,closeAction:Function,containerClass:String}}},function(e,t,n){t=e.exports=n(3)(),t.push([e.i,"",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tn.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],o=0;on.parts.length&&(o.parts.length=n.parts.length)}else{for(var i=[],r=0;r
-
+