@styzy/vue-popup
Version:
A Popup Plugins For Vue.js
1,425 lines (1,192 loc) • 47.7 kB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
/******/ })
/************************************************************************/
/******/ ({
/***/ "1e11":
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "@-webkit-keyframes fadeIn-data-v-27613fa2{0%{opacity:0}to{opacity:1}}@keyframes fadeIn-data-v-27613fa2{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut-data-v-27613fa2{0%{opacity:1}to{opacity:0}}@keyframes fadeOut-data-v-27613fa2{0%{opacity:1}to{opacity:0}}@-webkit-keyframes scaleIn-data-v-27613fa2{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@keyframes scaleIn-data-v-27613fa2{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@-webkit-keyframes scaleOut-data-v-27613fa2{0%{transform:scale(1)}to{transform:scale(.5)}}@keyframes scaleOut-data-v-27613fa2{0%{transform:scale(1)}to{transform:scale(.5)}}@-webkit-keyframes flyIn-data-v-27613fa2{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes flyIn-data-v-27613fa2{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes flyOut-data-v-27613fa2{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes flyOut-data-v-27613fa2{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.popup-view[data-v-27613fa2]{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;-webkit-animation-timing-function:linear;animation-timing-function:linear}.popup-view.animation-fade.v-enter-active[data-v-27613fa2]{-webkit-animation-name:fadeIn-data-v-27613fa2;animation-name:fadeIn-data-v-27613fa2}.popup-view.animation-fade.v-leave-active[data-v-27613fa2]{-webkit-animation-name:fadeOut-data-v-27613fa2;animation-name:fadeOut-data-v-27613fa2}.popup-view.animation-scale.v-enter-active[data-v-27613fa2]{-webkit-animation-name:scaleIn-data-v-27613fa2;animation-name:scaleIn-data-v-27613fa2}.popup-view.animation-scale.v-leave-active[data-v-27613fa2]{-webkit-animation-name:scaleOut-data-v-27613fa2;animation-name:scaleOut-data-v-27613fa2}.popup-view.animation-fly.v-enter-active[data-v-27613fa2]{-webkit-animation-name:flyIn-data-v-27613fa2;animation-name:flyIn-data-v-27613fa2}.popup-view.animation-fly.v-leave-active[data-v-27613fa2]{-webkit-animation-name:flyOut-data-v-27613fa2;animation-name:flyOut-data-v-27613fa2}.popup-view>*[data-v-27613fa2]{display:inline-block}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "22f3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupView_vue_vue_type_style_index_0_id_27613fa2_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5f1e");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupView_vue_vue_type_style_index_0_id_27613fa2_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupView_vue_vue_type_style_index_0_id_27613fa2_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/***/ }),
/***/ "24fb":
/***/ (function(module, exports, __webpack_require__) {
;
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
// eslint-disable-next-line func-names
module.exports = function (useSourceMap) {
var list = []; // return the list of modules as css string
list.toString = function toString() {
return this.map(function (item) {
var content = cssWithMappingToString(item, useSourceMap);
if (item[2]) {
return "@media ".concat(item[2], " {").concat(content, "}");
}
return content;
}).join('');
}; // import a list of modules into the list
// eslint-disable-next-line func-names
list.i = function (modules, mediaQuery, dedupe) {
if (typeof modules === 'string') {
// eslint-disable-next-line no-param-reassign
modules = [[null, modules, '']];
}
var alreadyImportedModules = {};
if (dedupe) {
for (var i = 0; i < this.length; i++) {
// eslint-disable-next-line prefer-destructuring
var id = this[i][0];
if (id != null) {
alreadyImportedModules[id] = true;
}
}
}
for (var _i = 0; _i < modules.length; _i++) {
var item = [].concat(modules[_i]);
if (dedupe && alreadyImportedModules[item[0]]) {
// eslint-disable-next-line no-continue
continue;
}
if (mediaQuery) {
if (!item[2]) {
item[2] = mediaQuery;
} else {
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
}
}
list.push(item);
}
};
return list;
};
function cssWithMappingToString(item, useSourceMap) {
var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
var cssMapping = item[3];
if (!cssMapping) {
return content;
}
if (useSourceMap && typeof btoa === 'function') {
var sourceMapping = toComment(cssMapping);
var sourceURLs = cssMapping.sources.map(function (source) {
return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
});
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
}
return [content].join('\n');
} // Adapted from convert-source-map (MIT)
function toComment(sourceMap) {
// eslint-disable-next-line no-undef
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
return "/*# ".concat(data, " */");
}
/***/ }),
/***/ "499e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; });
// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
/**
* Translates the list format produced by css-loader into something
* easier to manipulate.
*/
function listToStyles (parentId, list) {
var styles = []
var newStyles = {}
for (var i = 0; i < list.length; i++) {
var item = list[i]
var id = item[0]
var css = item[1]
var media = item[2]
var sourceMap = item[3]
var part = {
id: parentId + ':' + i,
css: css,
media: media,
sourceMap: sourceMap
}
if (!newStyles[id]) {
styles.push(newStyles[id] = { id: id, parts: [part] })
} else {
newStyles[id].parts.push(part)
}
}
return styles
}
// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
Modified by Evan You @yyx990803
*/
var hasDocument = typeof document !== 'undefined'
if (typeof DEBUG !== 'undefined' && DEBUG) {
if (!hasDocument) {
throw new Error(
'vue-style-loader cannot be used in a non-browser environment. ' +
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
) }
}
/*
type StyleObject = {
id: number;
parts: Array<StyleObjectPart>
}
type StyleObjectPart = {
css: string;
media: string;
sourceMap: ?string
}
*/
var stylesInDom = {/*
[id: number]: {
id: number,
refs: number,
parts: Array<(obj?: StyleObjectPart) => void>
}
*/}
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
var singletonElement = null
var singletonCounter = 0
var isProduction = false
var noop = function () {}
var options = null
var ssrIdKey = 'data-vue-ssr-id'
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
function addStylesClient (parentId, list, _isProduction, _options) {
isProduction = _isProduction
options = _options || {}
var styles = listToStyles(parentId, list)
addStylesToDom(styles)
return function update (newList) {
var mayRemove = []
for (var i = 0; i < styles.length; i++) {
var item = styles[i]
var domStyle = stylesInDom[item.id]
domStyle.refs--
mayRemove.push(domStyle)
}
if (newList) {
styles = listToStyles(parentId, newList)
addStylesToDom(styles)
} else {
styles = []
}
for (var i = 0; i < mayRemove.length; i++) {
var domStyle = mayRemove[i]
if (domStyle.refs === 0) {
for (var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j]()
}
delete stylesInDom[domStyle.id]
}
}
}
}
function addStylesToDom (styles /* Array<StyleObject> */) {
for (var i = 0; i < styles.length; i++) {
var item = styles[i]
var domStyle = stylesInDom[item.id]
if (domStyle) {
domStyle.refs++
for (var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j])
}
for (; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j]))
}
if (domStyle.parts.length > item.parts.length) {
domStyle.parts.length = item.parts.length
}
} else {
var parts = []
for (var j = 0; j < item.parts.length; j++) {
parts.push(addStyle(item.parts[j]))
}
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
}
}
}
function createStyleElement () {
var styleElement = document.createElement('style')
styleElement.type = 'text/css'
head.appendChild(styleElement)
return styleElement
}
function addStyle (obj /* StyleObjectPart */) {
var update, remove
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
if (styleElement) {
if (isProduction) {
// has SSR styles and in production mode.
// simply do nothing.
return noop
} else {
// has SSR styles but in dev mode.
// for some reason Chrome can't handle source map in server-rendered
// style tags - source maps in <style> only works if the style tag is
// created and inserted dynamically. So we remove the server rendered
// styles and inject new ones.
styleElement.parentNode.removeChild(styleElement)
}
}
if (isOldIE) {
// use singleton mode for IE9.
var styleIndex = singletonCounter++
styleElement = singletonElement || (singletonElement = createStyleElement())
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
} else {
// use multi-style-tag mode in all other cases
styleElement = createStyleElement()
update = applyToTag.bind(null, styleElement)
remove = function () {
styleElement.parentNode.removeChild(styleElement)
}
}
update(obj)
return function updateStyle (newObj /* StyleObjectPart */) {
if (newObj) {
if (newObj.css === obj.css &&
newObj.media === obj.media &&
newObj.sourceMap === obj.sourceMap) {
return
}
update(obj = newObj)
} else {
remove()
}
}
}
var replaceText = (function () {
var textStore = []
return function (index, replacement) {
textStore[index] = replacement
return textStore.filter(Boolean).join('\n')
}
})()
function applyToSingletonTag (styleElement, index, remove, obj) {
var css = remove ? '' : obj.css
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = replaceText(index, css)
} else {
var cssNode = document.createTextNode(css)
var childNodes = styleElement.childNodes
if (childNodes[index]) styleElement.removeChild(childNodes[index])
if (childNodes.length) {
styleElement.insertBefore(cssNode, childNodes[index])
} else {
styleElement.appendChild(cssNode)
}
}
}
function applyToTag (styleElement, obj) {
var css = obj.css
var media = obj.media
var sourceMap = obj.sourceMap
if (media) {
styleElement.setAttribute('media', media)
}
if (options.ssrId) {
styleElement.setAttribute(ssrIdKey, obj.id)
}
if (sourceMap) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
// http://stackoverflow.com/a/26603875
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
}
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = css
} else {
while (styleElement.firstChild) {
styleElement.removeChild(styleElement.firstChild)
}
styleElement.appendChild(document.createTextNode(css))
}
}
/***/ }),
/***/ "5f1e":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("1e11");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("19a203c8", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "8875":
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
// MIT license
// source: https://github.com/amiller-gh/currentScript-polyfill
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
(function (root, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}(typeof self !== 'undefined' ? self : this, function () {
function getCurrentScript () {
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
// for chrome
if (!descriptor && 'currentScript' in document && document.currentScript) {
return document.currentScript
}
// for other browsers with native support for currentScript
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
return document.currentScript
}
// IE 8-10 support script readyState
// IE 11+ & Firefox support stack trace
try {
throw new Error();
}
catch (err) {
// Find the second match for the "at" string to get file src url from stack.
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
scriptLocation = (stackDetails && stackDetails[1]) || false,
line = (stackDetails && stackDetails[2]) || false,
currentLocation = document.location.href.replace(document.location.hash, ''),
pageSource,
inlineScriptSourceRegExp,
inlineScriptSource,
scripts = document.getElementsByTagName('script'); // Live NodeList collection
if (scriptLocation === currentLocation) {
pageSource = document.documentElement.outerHTML;
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
}
for (var i = 0; i < scripts.length; i++) {
// If ready state is interactive, return the script tag
if (scripts[i].readyState === 'interactive') {
return scripts[i];
}
// If src matches, return the script tag
if (scripts[i].src === scriptLocation) {
return scripts[i];
}
// If inline source matches, return the script tag
if (
scriptLocation === currentLocation &&
scripts[i].innerHTML &&
scripts[i].innerHTML.trim() === inlineScriptSource
) {
return scripts[i];
}
}
// If no match, return null
return null;
}
};
return getCurrentScript
}));
/***/ }),
/***/ "9224":
/***/ (function(module) {
module.exports = JSON.parse("{\"name\":\"@styzy/vue-popup\",\"version\":\"1.1.0\",\"description\":\"A Popup Plugins For Vue.js\",\"keywords\":[\"vue\",\"popup\",\"plugin\"],\"author\":{\"name\":\"STYZY\",\"email\":\"styzyreal@126.com\",\"url\":\"https://our.styzy.cn\"},\"bugs\":{\"url\":\"https://github.com/styzy/vue-popup/issues\",\"email\":\"styzyreal@126.com\"},\"repository\":{\"type\":\"git\",\"url\":\"git@github.com:styzy/vue-popup.git\"},\"main\":\"lib/vue-popup.common.js\",\"private\":false,\"license\":\"MIT\",\"scripts\":{\"dev\":\"vue-cli-service serve --open\",\"lib\":\"vue-cli-service build --target lib --name vue-popup --dest lib src/index.js\"},\"dependencies\":{\"core-js\":\"^3.6.5\",\"vue\":\"^2.6.11\",\"vue-router\":\"^3.2.0\"},\"devDependencies\":{\"@prettier/plugin-pug\":\"^1.19.2\",\"@vue/cli-plugin-babel\":\"~4.5.0\",\"@vue/cli-plugin-eslint\":\"~4.5.0\",\"@vue/cli-service\":\"~4.5.0\",\"@vue/eslint-config-prettier\":\"^6.0.0\",\"babel-eslint\":\"^10.1.0\",\"eslint\":\"^6.8.0\",\"eslint-plugin-prettier\":\"^3.3.1\",\"eslint-plugin-vue\":\"^6.2.2\",\"prettier\":\"^2.2.1\",\"stylus\":\"^0.54.7\",\"stylus-loader\":\"^3.0.2\",\"vue-cli-plugin-pug\":\"~2.0.0\",\"vue-template-compiler\":\"^2.6.14\"}}");
/***/ }),
/***/ "b61c":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("e247");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("5232353a", content, true, {"sourceMap":false,"shadowMode":false});
/***/ }),
/***/ "d7b7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupMask_vue_vue_type_style_index_0_id_7d86fed0_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b61c");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupMask_vue_vue_type_style_index_0_id_7d86fed0_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PopupMask_vue_vue_type_style_index_0_id_7d86fed0_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/***/ }),
/***/ "e247":
/***/ (function(module, exports, __webpack_require__) {
// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "@-webkit-keyframes fadeIn-data-v-7d86fed0{0%{opacity:0}to{opacity:1}}@keyframes fadeIn-data-v-7d86fed0{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut-data-v-7d86fed0{0%{opacity:1}to{opacity:0}}@keyframes fadeOut-data-v-7d86fed0{0%{opacity:1}to{opacity:0}}@-webkit-keyframes scaleIn-data-v-7d86fed0{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@keyframes scaleIn-data-v-7d86fed0{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@-webkit-keyframes scaleOut-data-v-7d86fed0{0%{transform:scale(1)}to{transform:scale(.5)}}@keyframes scaleOut-data-v-7d86fed0{0%{transform:scale(1)}to{transform:scale(.5)}}@-webkit-keyframes flyIn-data-v-7d86fed0{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes flyIn-data-v-7d86fed0{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes flyOut-data-v-7d86fed0{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes flyOut-data-v-7d86fed0{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.popup-mask[data-v-7d86fed0]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.3);-webkit-animation-timing-function:linear;animation-timing-function:linear}.popup-mask.animation-fade.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:fadeIn-data-v-7d86fed0;animation-name:fadeIn-data-v-7d86fed0}.popup-mask.animation-fade.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:fadeOut-data-v-7d86fed0;animation-name:fadeOut-data-v-7d86fed0}.popup-mask.animation-scale.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:scaleIn-data-v-7d86fed0;animation-name:scaleIn-data-v-7d86fed0}.popup-mask.animation-scale.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:scaleOut-data-v-7d86fed0;animation-name:scaleOut-data-v-7d86fed0}.popup-mask.animation-fly.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:flyIn-data-v-7d86fed0;animation-name:flyIn-data-v-7d86fed0}.popup-mask.animation-fly.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:flyOut-data-v-7d86fed0;animation-name:flyOut-data-v-7d86fed0}", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "fb15":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
// This file is imported into lib/wc client bundles.
if (typeof window !== 'undefined') {
var currentScript = window.document.currentScript
if (true) {
var getCurrentScript = __webpack_require__("8875")
currentScript = getCurrentScript()
// for backward compatibility, because previously we directly included the polyfill
if (!('currentScript' in document)) {
Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
}
}
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
if (src) {
__webpack_require__.p = src[1] // eslint-disable-line
}
}
// Indicate to webpack that this file can be concatenated
/* harmony default export */ var setPublicPath = (null);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c555213-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/Popup.vue?vue&type=template&id=376e4ac4&lang=pug&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.destroyed)?_c('div',{staticClass:"popup"},[(_vm.mask)?_c('PopupMask',_vm._b({attrs:{"isLeave":_vm.isLeave},on:{"close":_vm.closeHandler}},'PopupMask',_vm.maskProps,false)):_vm._e(),_c('PopupView',_vm._b({attrs:{"isLeave":_vm.isLeave},on:{"close":_vm.closeHandler}},'PopupView',_vm.viewProps,false))],1):_vm._e()}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/Popup.vue?vue&type=template&id=376e4ac4&lang=pug&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c555213-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/PopupMask.vue?vue&type=template&id=7d86fed0&scoped=true&lang=pug&
var PopupMaskvue_type_template_id_7d86fed0_scoped_true_lang_pug_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',[(_vm.isShow && !_vm.isLeave)?_c('div',{staticClass:"popup-mask",class:_vm.classObject,style:(_vm.styleObject),on:{"click":_vm.clickHandler}}):_vm._e()])}
var PopupMaskvue_type_template_id_7d86fed0_scoped_true_lang_pug_staticRenderFns = []
// CONCATENATED MODULE: ./packages/PopupMask.vue?vue&type=template&id=7d86fed0&scoped=true&lang=pug&
// CONCATENATED MODULE: ./src/CONSTANTS/index.js
const ANIMATION_TYPES = {
FADE: 'fade',
SCALE: 'scale',
FLY: 'fly'
}
/* harmony default export */ var CONSTANTS = ({
ANIMATION_TYPES
});
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/PopupMask.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
/* harmony default export */ var PopupMaskvue_type_script_lang_js_ = ({
name: 'PopupMask',
inheritAttrs: false,
props: {
isLeave: {
type: Boolean,
default: false
},
zIndex: {
type: Number
},
maskClickClose: {
type: Boolean
},
animations: {
type: Array
},
animationDuration: {
type: Number
}
},
data() {
return {
isShow: false
}
},
computed: {
classObject() {
return {
[`animation-${ANIMATION_TYPES.FADE}`]: this.animations.includes(
ANIMATION_TYPES.FADE
),
[`animation-${ANIMATION_TYPES.SCALE}`]:
this.animations.includes(ANIMATION_TYPES.SCALE)
}
},
styleObject() {
return {
zIndex: this.zIndex,
animationDuration: `${this.animationDuration / 1000}s`
}
}
},
created() {
window.setTimeout(() => {
this.isShow = true
}, 0)
},
methods: {
clickHandler() {
if (this.maskClickClose) {
this.$emit('close')
}
}
}
});
// CONCATENATED MODULE: ./packages/PopupMask.vue?vue&type=script&lang=js&
/* harmony default export */ var packages_PopupMaskvue_type_script_lang_js_ = (PopupMaskvue_type_script_lang_js_);
// EXTERNAL MODULE: ./packages/PopupMask.vue?vue&type=style&index=0&id=7d86fed0&lang=stylus&scoped=true&
var PopupMaskvue_type_style_index_0_id_7d86fed0_lang_stylus_scoped_true_ = __webpack_require__("d7b7");
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function normalizeComponent (
scriptExports,
render,
staticRenderFns,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier, /* server only */
shadowMode /* vue-cli only */
) {
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (render) {
options.render = render
options.staticRenderFns = staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = 'data-v-' + scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
? function () {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
)
}
: injectStyles
}
if (hook) {
if (options.functional) {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functional component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return originalRender(h, context)
}
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
}
}
return {
exports: scriptExports,
options: options
}
}
// CONCATENATED MODULE: ./packages/PopupMask.vue
/* normalize component */
var PopupMask_component = normalizeComponent(
packages_PopupMaskvue_type_script_lang_js_,
PopupMaskvue_type_template_id_7d86fed0_scoped_true_lang_pug_render,
PopupMaskvue_type_template_id_7d86fed0_scoped_true_lang_pug_staticRenderFns,
false,
null,
"7d86fed0",
null
)
/* harmony default export */ var PopupMask = (PopupMask_component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c555213-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/PopupView.vue?vue&type=template&id=27613fa2&scoped=true&lang=pug&
var PopupViewvue_type_template_id_27613fa2_scoped_true_lang_pug_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',[(_vm.isShow && !_vm.isLeave)?_c('div',{staticClass:"popup-view",class:_vm.classObject,style:(_vm.styleObject)},[_c(_vm.component,_vm._b({key:("popup-view-component-" + _vm.popupId),ref:"component",tag:"component",on:{"close":_vm.handleComponentClose,"hook:mounted":_vm.handleComponentMounted,"resize":_vm.handleComponentResize}},'component',_vm.componentProps,false))],1):_vm._e()])}
var PopupViewvue_type_template_id_27613fa2_scoped_true_lang_pug_staticRenderFns = []
// CONCATENATED MODULE: ./packages/PopupView.vue?vue&type=template&id=27613fa2&scoped=true&lang=pug&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/PopupView.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var PopupViewvue_type_script_lang_js_ = ({
name: 'PopupView',
props: {
popupId: {
type: String,
default: ''
},
isLeave: {
type: Boolean,
default: false
},
zIndex: {
type: Number
},
animations: {
type: Array
},
animationDuration: {
type: Number
},
component: {
default: null
},
componentProps: {
default: () => {
return {}
}
},
width: {
type: [Number, String]
},
maxWidth: {
type: [Number, String]
},
minWidth: {
type: [Number, String]
},
height: {
type: [Number, String]
},
maxHeight: {
type: [Number, String]
},
minHeight: {
type: [Number, String]
}
},
data() {
return {
isShow: false,
contentWidth: 0,
contentHeight: 0,
instance: null
}
},
computed: {
classObject() {
return {
[`animation-${ANIMATION_TYPES.FADE}`]: this.animations.includes(
ANIMATION_TYPES.FADE
),
[`animation-${ANIMATION_TYPES.SCALE}`]:
this.animations.includes(ANIMATION_TYPES.SCALE),
[`animation-${ANIMATION_TYPES.FLY}`]: this.animations.includes(
ANIMATION_TYPES.FLY
)
}
},
styleObject() {
return {
zIndex: this.zIndex,
animationDuration: `${this.animationDuration / 1000}s`,
width: this.formatSize(this.width) || `${this.contentWidth}px`,
maxWidth: this.formatSize(this.maxWidth) || 'auto',
minWidth: this.formatSize(this.minWidth) || 'auto',
height:
this.formatSize(this.height) || `${this.contentHeight}px`,
maxHeight: this.formatSize(this.maxHeight) || 'auto',
minHeight: this.formatSize(this.minHeight) || 'auto'
}
}
},
created() {
window.setTimeout(() => {
this.isShow = true
}, 0)
},
methods: {
async handleComponentMounted() {
this.instance = this.$refs.component
await this.instance.$nextTick()
this.fixSize()
},
handleComponentClose(...args) {
this.$emit('close', ...args)
},
handleComponentResize() {
this.fixSize()
},
async fixSize() {
await this.$nextTick()
const { width, height } = this.getComponentSize()
if (typeof this.width !== 'number') {
this.contentWidth = width
}
if (typeof this.height !== 'number') {
this.contentHeight = height
}
},
getComponentSize() {
const el = this.instance.$el,
styles = window.getComputedStyle(el),
isBorderBox = styles['boxSizing'] === 'border-box'
let width = parseFloat(styles['width']),
height = parseFloat(styles['height'])
if (!isBorderBox) {
width +=
parseFloat(styles['paddingLeft']) +
parseFloat(styles['paddingRight'])
height +=
parseFloat(styles['paddingTop']) +
parseFloat(styles['paddingBottom'])
}
return {
width,
height
}
},
formatSize(size) {
if (typeof size === 'string') {
if (size === 'auto') return false
return size
}
if (typeof size === 'number') return `${size}px`
return 'auto'
}
}
});
// CONCATENATED MODULE: ./packages/PopupView.vue?vue&type=script&lang=js&
/* harmony default export */ var packages_PopupViewvue_type_script_lang_js_ = (PopupViewvue_type_script_lang_js_);
// EXTERNAL MODULE: ./packages/PopupView.vue?vue&type=style&index=0&id=27613fa2&lang=stylus&scoped=true&
var PopupViewvue_type_style_index_0_id_27613fa2_lang_stylus_scoped_true_ = __webpack_require__("22f3");
// CONCATENATED MODULE: ./packages/PopupView.vue
/* normalize component */
var PopupView_component = normalizeComponent(
packages_PopupViewvue_type_script_lang_js_,
PopupViewvue_type_template_id_27613fa2_scoped_true_lang_pug_render,
PopupViewvue_type_template_id_27613fa2_scoped_true_lang_pug_staticRenderFns,
false,
null,
"27613fa2",
null
)
/* harmony default export */ var PopupView = (PopupView_component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/Popup.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var Popupvue_type_script_lang_js_ = ({
name: 'Popup',
components: {
PopupMask: PopupMask,
PopupView: PopupView
},
inheritAttrs: false,
props: {
mask: {
type: Boolean
},
animationDuration: {
type: Number
},
maskProps: {
type: Object,
default: () => {
return {}
}
},
viewProps: {
type: Object,
default: () => {
return {}
}
}
},
data() {
return {
isLeave: false,
destroyed: false,
destroyPayload: undefined
}
},
mounted() {
this.$emit('mounted')
},
destroyed() {
this.$emit('destroyed', this.destroyPayload)
},
methods: {
destroy() {
this.closeHandler()
},
async closeHandler(payload) {
this.destroyPayload = payload
this.isLeave = true
await this.wait(this.animationDuration)
this.destroyed = true
await this.$nextTick()
this.$destroy()
},
wait(time) {
return new Promise(resolve => {
window.setTimeout(resolve, time)
})
}
}
});
// CONCATENATED MODULE: ./packages/Popup.vue?vue&type=script&lang=js&
/* harmony default export */ var packages_Popupvue_type_script_lang_js_ = (Popupvue_type_script_lang_js_);
// CONCATENATED MODULE: ./packages/Popup.vue
/* normalize component */
var Popup_component = normalizeComponent(
packages_Popupvue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var packages_Popup = (Popup_component.exports);
// CONCATENATED MODULE: ./src/utils/typeOf/index.js
const typeOf = function (param) {
return Object.prototype.toString.call(param).match(/\s+(\w+)/)[1]
}
/* harmony default export */ var utils_typeOf = (typeOf);
// CONCATENATED MODULE: ./src/utils/deepClone/index.js
const deepClone = function (param) {
let type = utils_typeOf(param),
newParam
if (type === 'Array') {
newParam = []
} else if (type === 'Object') {
newParam = {}
} else {
return param
}
if (type === 'Array') {
for (let index = 0, length = param.length; index < length; index++) {
newParam.push(deepClone(param[index]))
}
return newParam
} else if (type === 'Object') {
for (const key in param) {
newParam[key] = deepClone(param[key])
}
return newParam
}
}
/* harmony default export */ var utils_deepClone = (deepClone);
// CONCATENATED MODULE: ./src/utils/index.js
/* harmony default export */ var utils = ({ deepClone: utils_deepClone, typeOf: utils_typeOf });
// EXTERNAL MODULE: ./package.json
var package_0 = __webpack_require__("9224");
// CONCATENATED MODULE: ./src/index.js
const plugins = {}
let Vue = null,
rootVm = null
class src_Popup {
static get version() {
return package_0.version
}
static get plugins() {
return plugins
}
static get ANIMATION_TYPES() {
return utils_deepClone(ANIMATION_TYPES)
}
static _usePlugin(name, install) {
this.plugins[name] = install
install(this, Vue)
}
static install(_Vue) {
Vue = _Vue
_Vue.mixin({
created() {
if (rootVm) return
rootVm = this.$root
}
})
}
static use(plugin) {
if (!plugin) return
if (!Vue)
throw new Error(
'Popup should be installed by Vue before install plugins'
)
const { name, install = () => {} } = plugin
if (this.plugins[name])
throw new Error(`Popup: exist plugin name: ${name}`)
if (utils_typeOf(install) !== 'Function')
throw new Error(`Popup: plugin's prop install must be a function`)
this._usePlugin(name, install)
}
get seed() {
return this._seed++
}
get zIndex() {
return this._zIndex++
}
get popups() {
return this._popups
}
get parentVm() {
return this._parentVm
}
get PopupConstructor() {
return this._PopupConstructor
}
constructor({ zIndex = 1000, parentVm } = {}) {
if (!Vue)
throw new Error(
'Popup should be installed by Vue before new Popup()'
)
this._seed = 0
this._zIndex = zIndex
this._popups = {}
this._parentVm = parentVm
this._PopupConstructor = null
}
_createPopupConstructor() {
const parent = this.parentVm || rootVm
this._PopupConstructor = Vue.extend(
Object.assign({}, packages_Popup, { parent })
)
}
_create() {
const id = `styzy-vue-popup-${this.seed}`,
popup = {
id,
instance: null
}
this.popups[id] = popup
return popup
}
_destroy(popup) {
if (!this.popups[popup.id]) return
const { instance } = popup
if (!instance) return
instance.destroy()
}
render({
zIndex = this.zIndex,
mask = true,
maskClickClose = false,
component,
componentProps,
maskAnimations = [ANIMATION_TYPES.FADE],
viewAnimations = [ANIMATION_TYPES.FADE, ANIMATION_TYPES.SCALE],
animationDuration = 100,
width = 'auto',
maxWidth = 'auto',
minWidth = 'auto',
height = 'auto',
maxHeight = 'auto',
minHeight = 'auto',
mounted = () => {},
destroyed = () => {}
} = {}) {
if (!this.PopupConstructor) this._createPopupConstructor()
const el = document.body.appendChild(document.createElement('div')),
popup = this._create(),
instance = new this.PopupConstructor({
propsData: {
mask,
animationDuration,
maskProps: {
zIndex,
maskClickClose,
animations: maskAnimations,
animationDuration
},
viewProps: {
zIndex,
component,
componentProps,
animations: viewAnimations,
animationDuration,
width,
maxWidth,
minWidth,
height,
maxHeight,
minHeight
}
}
})
popup.instance = instance
instance.$on('mounted', () => {
mounted && mounted(instance)
})
instance.$on('destroyed', payload => {
destroyed && destroyed(payload)
const parentNode = instance.$el.parentNode
if (parentNode) {
parentNode.removeChild(instance.$el)
}
delete this.popups[popup.id]
})
instance.$mount(el)
return () => {
this._destroy(popup)
}
}
}
/* harmony default export */ var src_0 = (src_Popup);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0);
/***/ })
/******/ })["default"];
//# sourceMappingURL=vue-popup.common.js.map