mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-12-08 20:48:46 +00:00
Release 1.0.21
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -538,6 +538,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -636,7 +637,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
this.visibility.overlay = true;
|
this.visibility.overlay = true;
|
||||||
this.adaptWidth();
|
this.adaptSize();
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this.visibility.modal = true;
|
_this.visibility.modal = true;
|
||||||
@@ -711,7 +712,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|||||||
onWindowResize: function onWindowResize() {
|
onWindowResize: function onWindowResize() {
|
||||||
this.window.width = window.innerWidth;
|
this.window.width = window.innerWidth;
|
||||||
this.window.height = window.innerHeight;
|
this.window.height = window.innerHeight;
|
||||||
this.adaptWidth();
|
this.adaptSize();
|
||||||
},
|
},
|
||||||
genEventObject: function genEventObject(params) {
|
genEventObject: function genEventObject(params) {
|
||||||
//todo: clean this up (change to ...)
|
//todo: clean this up (change to ...)
|
||||||
@@ -721,7 +722,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|||||||
timestamp: Date.now()
|
timestamp: Date.now()
|
||||||
}, params || {});
|
}, params || {});
|
||||||
},
|
},
|
||||||
adaptWidth: function adaptWidth() {
|
adaptSize: function adaptSize() {
|
||||||
if (this.adaptive) {
|
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.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);
|
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",
|
ref: "overlay",
|
||||||
staticClass: "v--modal-overlay",
|
staticClass: "v--modal-overlay",
|
||||||
attrs: {
|
attrs: {
|
||||||
|
"aria-expanded": _vm.visible.toString(),
|
||||||
"data-modal": _vm.name
|
"data-modal": _vm.name
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-js-modal",
|
"name": "vue-js-modal",
|
||||||
"description": "Modal Component for Vue.js",
|
"description": "Modal Component for Vue.js",
|
||||||
"version": "1.0.20",
|
"version": "1.0.21",
|
||||||
"author": "euvl <yev.vlasenko@gmail.com>",
|
"author": "euvl <yev.vlasenko@gmail.com>",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user