@zeit-ui/vue
Version:
A popular UI framework for Vue
692 lines (576 loc) • 25.6 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");
/******/ })
/************************************************************************/
/******/ ({
/***/ "7ce0":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "ba8f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_expand_vue_vue_type_style_index_0_scope_true_lang_stylus___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7ce0");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_expand_vue_vue_type_style_index_0_scope_true_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_expand_vue_vue_type_style_index_0_scope_true_lang_stylus___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_expand_vue_vue_type_style_index_0_scope_true_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "c630":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "f6fd":
/***/ (function(module, exports) {
// document.currentScript polyfill by Adam Miller
// MIT license
(function(document){
var currentScript = "currentScript",
scripts = document.getElementsByTagName('script'); // Live NodeList collection
// If browser needs currentScript polyfill, add get currentScript() to the document object
if (!(currentScript in document)) {
Object.defineProperty(document, currentScript, {
get: function(){
// IE 6-10 supports script readyState
// IE 10+ support stack trace
try { throw new Error(); }
catch (err) {
// Find the second match for the "at" string to get file src url from stack.
// Specifically works with the format of stack traces in IE.
var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
// For all scripts on the page, if src matches or if ready state is interactive, return the script tag
for(i in scripts){
if(scripts[i].src == res || scripts[i].readyState == "interactive"){
return scripts[i];
}
}
// If no match, return null
return null;
}
}
});
}
})(document);
/***/ }),
/***/ "fa26":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_dialog_styl_vue_type_style_index_0_id_f60247cc_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c630");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_dialog_styl_vue_type_style_index_0_id_f60247cc_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_dialog_styl_vue_type_style_index_0_id_f60247cc_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_stylus_loader_index_js_ref_10_oneOf_1_2_dialog_styl_vue_type_style_index_0_id_f60247cc_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "fb15":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// NAMESPACE OBJECT: ./packages/utils/bodyScroll.js
var bodyScroll_namespaceObject = {};
__webpack_require__.r(bodyScroll_namespaceObject);
__webpack_require__.d(bodyScroll_namespaceObject, "lockScroll", function() { return lockScroll; });
// 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') {
if (true) {
__webpack_require__("f6fd")
}
var i
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
__webpack_require__.p = i[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":"3d5aa1b0-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--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/dialog.vue?vue&type=template&id=f60247cc&scoped=true&lang=pug&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"zi-dialog-backdrop"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!!_vm.model),expression:"!!model"}],staticClass:"zi-dialog-root"},[_c('div',{staticClass:"zi-dialog-backdrop"}),(_vm.closeByModal)?_c('div',{staticClass:"zi-dialog-backdrop responsive",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.close($event)}}}):_vm._e(),_c('transition',{attrs:{"name":"zi-dialog-slide"}},[(!!_vm.model)?_c('div',{staticClass:"zi-dialog-wrapper",style:({ width: _vm.width, minWidth: _vm.width || '' })},[_c('div',{staticClass:"zi-dialog-content"},[(_vm.title)?_c('h2',{staticClass:"header"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('div',{staticClass:"body"},[_vm._t("default")],2)]),_c('div',{staticClass:"zi-dialog-footer"},[_c('button',{staticClass:"action",on:{"click":function($event){$event.stopPropagation();return _vm.confirm(false)}}},[_vm._v(_vm._s(_vm.cancel))]),_c('button',{staticClass:"action",on:{"click":function($event){$event.stopPropagation();return _vm.confirm(true)}}},[_vm._v(_vm._s(_vm.done))])])]):_vm._e()])],1)])}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/dialog/dialog.vue?vue&type=template&id=f60247cc&scoped=true&lang=pug&
// CONCATENATED MODULE: ./packages/utils/validator.js
var enums = function enums(params) {
return function (val) {
if (!Array.isArray(params)) return false;
return !!params.find(function (item) {
return item === val;
});
};
};
var isMac = function isMac() {
if (typeof window === 'undefined' || !window.navigator) return false;
var agent = navigator.userAgent.toLowerCase();
return /macintosh|mac os x/i.test(agent);
};
// CONCATENATED MODULE: ./packages/utils/bounding.js
var getRealShape = function getRealShape(el) {
var rect = el.getBoundingClientRect();
var _window$getComputedSt = window.getComputedStyle(el),
width = _window$getComputedSt.width,
height = _window$getComputedSt.height;
var getCSSStyleVal = function getCSSStyleVal(str, parentNum) {
if (!str) return 0;
var strVal = str.includes('px') ? +str.split('px')[0] : str.includes('%') ? +str.split('%')[0] * parentNum * 0.01 : str;
return Number.isNaN(+strVal) ? 0 : +strVal;
};
return {
width: getCSSStyleVal("".concat(width), rect.width),
height: getCSSStyleVal("".concat(height), rect.height)
};
};
var getRect = function getRect(el) {
return el.getBoundingClientRect();
};
// CONCATENATED MODULE: ./packages/utils/print.js
var warning = function warning(msg) {
console.warn(msg);
};
var error = function error(msg) {
console.error(msg);
};
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3d5aa1b0-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--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/utils/transitions/expand.vue?vue&type=template&id=2253e490&lang=pug&
var expandvue_type_template_id_2253e490_lang_pug_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"expand"},on:{"enter":_vm.enter,"after-enter":_vm.afterEnter,"leave":_vm.leave}},[_vm._t("default")],2)}
var expandvue_type_template_id_2253e490_lang_pug_staticRenderFns = []
// CONCATENATED MODULE: ./packages/utils/transitions/expand.vue?vue&type=template&id=2253e490&lang=pug&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/utils/transitions/expand.vue?vue&type=script&lang=js&
//
//
//
//
//
/* harmony default export */ var expandvue_type_script_lang_js_ = ({
name: 'zi-transition-expand',
methods: {
enter: function enter(el) {
var _bounding$getRealShap = getRealShape(el),
width = _bounding$getRealShap.width;
el.style.width = "".concat(width, "px");
el.style.position = 'absolute';
el.style.visibility = 'hidden';
el.style.height = 'auto';
var _bounding$getRealShap2 = getRealShape(el),
height = _bounding$getRealShap2.height;
el.style.width = null;
el.style.position = null;
el.style.visibility = null;
el.style.height = 0;
getRealShape(el);
var tiemr = setTimeout(function () {
el.style.height = "".concat(height, "px");
clearTimeout(tiemr);
}, 0);
},
afterEnter: function afterEnter(el) {
el.style.height = 'auto';
},
leave: function leave(el) {
var _bounding$getRealShap3 = getRealShape(el),
height = _bounding$getRealShap3.height;
el.style.height = "".concat(height, "px");
getRealShape(el);
var timer = setTimeout(function () {
el.style.height = 0;
clearTimeout(timer);
}, 0);
},
afterLeave: function afterLeave(el) {
el.style.height = null;
}
}
});
// CONCATENATED MODULE: ./packages/utils/transitions/expand.vue?vue&type=script&lang=js&
/* harmony default export */ var transitions_expandvue_type_script_lang_js_ = (expandvue_type_script_lang_js_);
// EXTERNAL MODULE: ./packages/utils/transitions/expand.vue?vue&type=style&index=0&scope=true&lang=stylus&
var expandvue_type_style_index_0_scope_true_lang_stylus_ = __webpack_require__("ba8f");
// 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, 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/utils/transitions/expand.vue
/* normalize component */
var component = normalizeComponent(
transitions_expandvue_type_script_lang_js_,
expandvue_type_template_id_2253e490_lang_pug_render,
expandvue_type_template_id_2253e490_lang_pug_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var expand = (component.exports);
// CONCATENATED MODULE: ./packages/utils/transitions/index.js
// CONCATENATED MODULE: ./packages/utils/theme.js
var themes = ['dark-theme', 'light-theme'];
var setTheme = function setTheme(theme) {
var _html$classList;
if (typeof document === 'undefined') return;
var html = document.querySelector('html');
(_html$classList = html.classList).remove.apply(_html$classList, themes);
html.classList.add(theme);
};
var enableLight = function enableLight() {
setTheme('light-theme');
};
var enableDark = function enableDark() {
setTheme('dark-theme');
};
// CONCATENATED MODULE: ./packages/utils/bodyScroll.js
var elInfoStack = new Map();
var lockScroll = function lockScroll(isLock) {
if (typeof document === 'undefined') return;
var elRef = document.body;
var lock = function lock(elementRef) {
var defaultPaddingRight = getComputedStyle(elRef)['padding-right'];
var elInfo = elInfoStack.get(elementRef);
if (!elInfo) {
elInfoStack.set(elementRef, {
counter: 1,
initialOverflow: elementRef.style.overflow,
initialRight: defaultPaddingRight
});
elementRef.style.overflow = 'hidden';
elementRef.style.paddingRight = "calc(".concat(bodyScroll_getScrollbarWidth(), " + ").concat(defaultPaddingRight, ")");
return;
}
elInfoStack.set(elementRef, {
counter: elInfo.counter++,
initialOverflow: elInfo.initialOverflow,
initialRight: defaultPaddingRight
});
};
var unlock = function unlock(elementRef) {
var elInfo = elInfoStack.get(elementRef);
if (!elInfo) return;
if (elInfo.counter === 1) {
elInfoStack.delete(elementRef);
elementRef.style.overflow = elInfo.initialOverflow;
elementRef.style.paddingRight = elInfo.initialRight;
} else {
elInfoStack.set(elementRef, {
counter: elInfo.counter - 1,
initialOverflow: elInfo.initialOverflow,
initialRight: elInfo.initialRight
});
}
};
if (isLock) {
lock(elRef);
return;
}
unlock(elRef);
};
var bodyScroll_getScrollbarWidth = function getScrollbarWidth() {
if (isMac()) return '0px';
var pseudoElWidth = window.getComputedStyle(document.body, '-webkit-scrollbar').width;
if (pseudoElWidth !== 'auto') return pseudoElWidth;
var scrollElement = document.createElement('div');
var elStyle = 'position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;';
scrollElement.setAttribute('style', elStyle);
document.body.appendChild(scrollElement);
var scrollbarWidth = "".concat(scrollElement.getBoundingClientRect().width - scrollElement.clientWidth, "px");
document.body.removeChild(scrollElement);
return scrollbarWidth;
};
// CONCATENATED MODULE: ./packages/utils/clipboard.js
var copy = function copy(text) {
if (!text) return;
var clipboardEl = document.querySelector('#zeit-clipboard');
var copyText = function copyText(el) {
var selection = window.getSelection();
var range = document.createRange();
range.selectNode(el);
selection.removeAllRanges();
selection.addRange(range);
try {
document.execCommand('Copy');
} catch (error) {
console.error('copy failed!');
}
selection.removeAllRanges();
el.textContent = '';
};
if (clipboardEl) {
clipboardEl.textContent = text;
copyText(clipboardEl);
return;
}
var el = document.createElement('div');
el.id = 'zeit-clipboard';
el.style.whiteSpace = 'pre';
el.textContent = text;
document.body.appendChild(el);
copyText(el);
};
// CONCATENATED MODULE: ./packages/utils/index.js
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/dialog.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var dialogvue_type_script_lang_js_ = ({
name: 'zi-dialog',
data: function data() {
return {
privateModel: false
};
},
props: {
title: String,
value: Boolean,
width: String,
cancel: {
type: String,
default: 'cancel'
},
done: {
type: String,
default: 'done'
},
beforeDone: {
type: Function,
default: function _default(done) {
return done();
}
},
closeByModal: {
type: Boolean,
default: true
}
},
computed: {
model: {
get: function get() {
return this.value === undefined ? this.privateModel : this.value;
},
set: function set(val) {
this.privateModel = val;
this.$emit('input', val);
}
}
},
watch: {
value: function value(next) {
this.privateModel = next;
bodyScroll_namespaceObject.lockScroll(this.privateModel);
}
},
methods: {
confirm: function confirm(result) {
var _this = this;
if (result) {
return this.beforeDone(function () {
_this.model = false;
_this.$emit('done');
});
}
this.model = false;
this.$emit('cancel');
},
close: function close() {
if (!this.closeByModal) return;
this.confirm(false);
}
},
mounted: function mounted() {
if (this.value) bodyScroll_namespaceObject.lockScroll(this.value);
}
});
// CONCATENATED MODULE: ./packages/dialog/dialog.vue?vue&type=script&lang=js&
/* harmony default export */ var dialog_dialogvue_type_script_lang_js_ = (dialogvue_type_script_lang_js_);
// EXTERNAL MODULE: ./packages/dialog/dialog.styl?vue&type=style&index=0&id=f60247cc&lang=stylus&scoped=true&
var dialogvue_type_style_index_0_id_f60247cc_lang_stylus_scoped_true_ = __webpack_require__("fa26");
// CONCATENATED MODULE: ./packages/dialog/dialog.vue
/* normalize component */
var dialog_component = normalizeComponent(
dialog_dialogvue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
"f60247cc",
null
)
/* harmony default export */ var dialog = (dialog_component.exports);
// CONCATENATED MODULE: ./packages/dialog/index.js
dialog.install = function (vue) {
vue.component(dialog.name, dialog);
};
/* harmony default export */ var packages_dialog = (dialog);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (packages_dialog);
/***/ })
/******/ })["default"];
//# sourceMappingURL=dialog.common.js.map