Release 1.0.21

This commit is contained in:
euvl
2017-05-05 15:06:56 +01:00
parent 1f6658bb62
commit 2428effd8b
2 changed files with 6 additions and 4 deletions

8
dist/index.js vendored
View File

@@ -538,6 +538,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
@@ -636,7 +637,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
if (value) {
this.visibility.overlay = true;
this.adaptWidth();
this.adaptSize();
setTimeout(function () {
_this.visibility.modal = true;
@@ -711,7 +712,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
onWindowResize: function onWindowResize() {
this.window.width = window.innerWidth;
this.window.height = window.innerHeight;
this.adaptWidth();
this.adaptSize();
},
genEventObject: function genEventObject(params) {
//todo: clean this up (change to ...)
@@ -721,7 +722,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
timestamp: Date.now()
}, params || {});
},
adaptWidth: function adaptWidth() {
adaptSize: function adaptSize() {
if (this.adaptive) {
this.modal.width = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__util__["a" /* inRange */])(0, this.window.width, this.modal.width);
this.modal.height = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__util__["a" /* inRange */])(0, this.window.height, this.modal.height);
@@ -965,6 +966,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
ref: "overlay",
staticClass: "v--modal-overlay",
attrs: {
"aria-expanded": _vm.visible.toString(),
"data-modal": _vm.name
},
on: {

View File

@@ -1,7 +1,7 @@
{
"name": "vue-js-modal",
"description": "Modal Component for Vue.js",
"version": "1.0.20",
"version": "1.0.21",
"author": "euvl <yev.vlasenko@gmail.com>",
"main": "dist/index.js",
"repository": {