vue-modal-viewer
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -222,3 +222,4 @@ module.exports = | ||
// CONCATENATED MODULE: ./src/ModalViewer.ts | ||
var ModalViewer = /** @class */ (function () { | ||
var ModalViewer_ModalViewer = /** @class */ (function () { | ||
function ModalViewer() { | ||
@@ -229,2 +230,4 @@ this.modals = {}; | ||
var modalName = modal.name; | ||
if (!modalName) | ||
throw new ReferenceError("Modal without name"); | ||
if (this.modals.hasOwnProperty(modalName)) | ||
@@ -236,2 +239,4 @@ console.error("Modal \"" + modalName + "\" alredy register and rewriten!"); | ||
var modalName = modal.name; | ||
if (!modalName) | ||
throw new ReferenceError("Modal without name"); | ||
if (this.modals.hasOwnProperty(modalName)) { | ||
@@ -275,3 +280,3 @@ var regModal = this.modals[modalName]; | ||
}; | ||
ModalViewer.mixin = { | ||
ModalViewer.mixin = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({ | ||
props: { | ||
@@ -321,8 +326,8 @@ name: { | ||
}, | ||
}; | ||
}); | ||
return ModalViewer; | ||
}()); | ||
/* harmony default export */ var src_ModalViewer = (ModalViewer); | ||
/* harmony default export */ var src_ModalViewer = (ModalViewer_ModalViewer); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"e7266d80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Modal.vue?vue&type=template&id=d5bbdea6& | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5cf19d6f-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Modal.vue?vue&type=template&id=d5bbdea6& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"modal"},[_vm._t("default",null,null,{ isShowed: _vm.isShowed })],2)} | ||
@@ -329,0 +334,0 @@ var staticRenderFns = [] |
import Vue from "vue"; | ||
import { ThisTypedComponentOptionsWithRecordProps } from "vue/types/options"; | ||
declare module 'vue/types/vue' { | ||
@@ -15,3 +14,3 @@ interface Vue { | ||
declare class ModalViewer { | ||
static readonly mixin: ThisTypedComponentOptionsWithRecordProps<Modal, { | ||
static readonly mixin: import("vue/types/vue").ExtendedVue<Vue, { | ||
showed: boolean; | ||
@@ -18,0 +17,0 @@ }, { |
{ | ||
"name": "vue-modal-viewer", | ||
"description": "Show and hide your content in Vue", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "dist/vue-modal-viewer.common.js", | ||
@@ -6,0 +6,0 @@ "types": "dts/index.d.ts", |
Sorry, the diff of this file is not supported yet
40315
506