UNPKG

@ykcl/smart-ui-oversea

Version:

A Component Library for Vue.js.

1,017 lines (933 loc) 31.7 kB
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 = "/dist/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 118); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); /* 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 } } /***/ }), /***/ 11: /***/ (function(module, exports) { module.exports = require("@ykcl/smart-ui-oversea/lib/mixins/migrating"); /***/ }), /***/ 118: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=template&id=199eb7f0 var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave }, }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.visible, expression: "visible", }, ], staticClass: "yk-dialog__wrapper", class: _vm.absoluteCenter ? "absoluteCenter" : "", on: { click: function ($event) { if ($event.target !== $event.currentTarget) { return null } return _vm.handleWrapperClick($event) }, }, }, [ _c( "div", { key: _vm.key, ref: "dialog", class: [ "yk-dialog", { "is-fullscreen": _vm.fullscreen, "yk-dialog--center": _vm.center, absoluteCenter: _vm.absoluteCenter, }, _vm.customClass, ], style: _vm.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": _vm.title || "dialog", }, }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.showLeft, expression: "showLeft", }, ], staticClass: "yk-dialog_left", }, [_c("dialog-picture")], 1 ), _c("div", { staticClass: "yk-dialog_right" }, [ _c( "div", { staticClass: "yk-dialog__header" }, [ _vm._t("title", [ _c("span", { staticClass: "yk-dialog__title" }, [ _vm._v(_vm._s(_vm.title)), ]), ]), _vm.showClose ? _c( "button", { staticClass: "yk-dialog__headerbtn", attrs: { type: "button", "aria-label": "Close" }, on: { click: _vm.handleClose }, }, [ _c("i", { staticClass: "yk-dialog__close el-icon yk_icon_close", }), ] ) : _vm._e(), ], 2 ), _vm.rendered ? _c( "div", { staticClass: "yk-dialog__body" }, [_vm._t("default")], 2 ) : _vm._e(), _vm.$slots.footer ? _c( "div", { staticClass: "yk-dialog__footer" }, [_vm._t("footer")], 2 ) : _vm._e(), ]), ] ), ] ), ] ) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=template&id=199eb7f0 // EXTERNAL MODULE: external "@ykcl/smart-ui-oversea/lib/utils/popup" var popup_ = __webpack_require__(14); var popup_default = /*#__PURE__*/__webpack_require__.n(popup_); // EXTERNAL MODULE: external "@ykcl/smart-ui-oversea/lib/mixins/migrating" var migrating_ = __webpack_require__(11); var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_); // EXTERNAL MODULE: external "@ykcl/smart-ui-oversea/lib/mixins/emitter" var emitter_ = __webpack_require__(4); var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_); // CONCATENATED MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib??vue-loader-options!./packages/dialog/src/dialogPicture.vue?vue&type=template&id=50cca146 var dialogPicturevue_type_template_id_50cca146_render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "svg", { attrs: { width: "136px", height: "232px", viewBox: "0 0 136 232", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", }, }, [ _c( "defs", [ _c( "linearGradient", { attrs: { x1: "76.829712%", y1: "127.734615%", x2: "32.8180737%", y2: "0%", id: "linearGradient-1-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#FFFFFF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#F7FAFE", offset: "100%" }, }), ], 1 ), _c("rect", { attrs: { id: "path-2-" + _vm.id, x: "0", y: "0", width: "136", height: "232", }, }), _c( "linearGradient", { attrs: { x1: "90.7817383%", y1: "100%", x2: "9.21826172%", y2: "23.3848544%", id: "linearGradient-4-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#FAFBFF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#F0F4FF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "50%", y1: "100%", x2: "50%", y2: "0%", id: "linearGradient-5-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#EEF3FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#E4EBFF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "50%", y1: "0%", x2: "50%", y2: "100%", id: "linearGradient-6-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#F5F8FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#EEF2FF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "100%", y1: "50%", x2: "2.07878059%", y2: "50%", id: "linearGradient-7-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#F1F5FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#E4EBFF", offset: "100%" }, }), ], 1 ), _c( "linearGradient", { attrs: { x1: "9.10494138%", y1: "41.8501809%", x2: "100%", y2: "41.8501809%", id: "linearGradient-8-" + _vm.id, }, }, [ _c("stop", { attrs: { "stop-color": "#DBE6FF", offset: "0%" } }), _c("stop", { attrs: { "stop-color": "#EDF2FF", offset: "100%" }, }), ], 1 ), ], 1 ), _c( "g", { attrs: { id: "--------------↪-15_Dialog", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", }, }, [ _c( "g", { attrs: { id: "15_Dialog", transform: "translate(-1098.000000, -500.000000)", }, }, [ _c( "g", { attrs: { id: "dialog-default", transform: "translate(1098.000000, 500.000000)", }, }, [ _c( "mask", { attrs: { id: "mask-3-" + _vm.id, fill: "white" } }, [_c("use", { attrs: { "xlink:href": "path-2-" + _vm.id } })] ), _c("use", { attrs: { id: "bg", fill: "url(#linearGradient-1-" + _vm.id + ")", "xlink:href": "path-2-" + _vm.id, }, }), _c("path", { attrs: { d: "M60.8122191,40.022696 L150.25,40.0023336 C155.90963,40.0010451 160.498711,44.588037 160.5,50.2476669 C160.5,50.2484446 160.5,50.2492223 160.5,50.25 C160.5,55.9116524 155.911653,60.5020309 150.250001,60.5045369 L110.473317,60.5221431 C105.235297,60.5244615 100.990923,64.7725947 100.993242,70.0106141 C100.993242,70.0114665 100.993243,70.0123188 100.993243,70.0131711 C100.996976,75.2536946 105.246306,79.5 110.486831,79.5 L151.513514,79.5 L151.513514,79.5 L151.5,166.545433 L120.630808,166.545433 C115.423809,166.545433 111.202703,170.766539 111.202703,175.973538 C111.202703,181.180537 115.423809,185.401643 120.630808,185.401643 L136.822443,185.401643 C140.853668,185.401643 144.121622,188.669597 144.121622,192.700822 C144.121622,196.732047 140.853668,200 136.822443,200 L36.144635,200 C30.2657654,200 25.5,195.234235 25.5,189.355365 C25.5,183.473095 30.2623557,178.701317 36.1446142,178.68969 L79.3760449,178.604238 C84.4179808,178.594272 88.5,174.504176 88.5,169.46223 C88.5,164.422745 84.4155123,160.337001 79.3760276,160.335451 L45.2528994,160.324956 C39.0375348,160.323044 34,155.283959 34,149.068594 C34,142.842725 39.0269366,137.785052 45.2526908,137.747101 L52.3761966,137.703679 C57.4241054,137.672908 61.5,133.572092 61.5,128.52409 C61.5,123.552496 57.4697268,119.522222 52.4981328,119.522222 C52.4577056,119.522222 52.4172788,119.522495 52.3768552,119.523039 L31.0052236,119.810995 C22.8289741,119.921159 16.1115083,113.382306 16.0013437,105.206056 C16.0004479,105.13957 16,105.073078 16,105.006586 C16,96.7075251 22.707454,89.9691199 31.0064265,89.9309127 L71.680253,89.7436566 C76.5578192,89.721201 80.5,85.7608292 80.5,80.8832114 C80.5,76.0118609 76.5515101,72.0625764 71.6801597,72.0615961 L60.8122192,72.0594093 C51.9669008,72.0576294 44.7972973,64.886583 44.7972973,56.0412644 C44.7972973,47.1958774 51.9668323,40.0247099 60.8122191,40.022696 Z", id: "cloud", fill: "url(#linearGradient-4-" + _vm.id + ")", mask: "mask-3-" + _vm.id, }, }), _c("g", { attrs: { id: "list", mask: "mask-3-" + _vm.id } }, [ _c( "g", { attrs: { transform: "translate(60.000000, 77.000000)" }, }, [ _c("rect", { attrs: { id: "矩形备份-2", fill: "url(#linearGradient-5-" + _vm.id + ")", "fill-rule": "evenodd", x: "0", y: "0", width: "90", height: "113", rx: "4.5", }, }), _c("rect", { attrs: { id: "矩形备份", fill: "url(#linearGradient-6-" + _vm.id + ")", "fill-rule": "evenodd", x: "5.625", y: "5.65", width: "78.75", height: "100.57", rx: "4.5", }, }), _c("path", { attrs: { d: "M71.4007009,51.7805882 C73.2820822,51.7805882 74.807243,53.3429828 74.807243,55.2702941 C74.807243,57.1287729 73.3890769,58.6479349 71.6008612,58.754076 L71.4007009,58.76 L18.0315421,58.76 C16.1501608,58.76 14.625,57.1976055 14.625,55.2702941 C14.625,53.4118153 16.0431661,51.8926533 17.8313818,51.7865122 L18.0315421,51.7805882 L71.4007009,51.7805882 Z M71.5596729,35.4952941 C73.6668199,35.4952941 75.375,37.0576887 75.375,38.985 C75.375,40.8434788 73.7866539,42.3626408 71.7838523,42.4687819 L71.5596729,42.4747059 L47.3959346,42.4747059 C45.2887876,42.4747059 43.5806075,40.9123113 43.5806075,38.985 C43.5806075,37.1265212 45.1689535,35.6073592 47.1717551,35.5012181 L47.3959346,35.4952941 L71.5596729,35.4952941 Z M71.6587723,19.21 C73.7111882,19.21 75.375,20.7723945 75.375,22.6997059 C75.375,24.5581847 73.8279097,26.0773467 71.8771289,26.1834878 L71.6587723,26.1894118 L38.212723,26.1894118 C36.1603071,26.1894118 34.4964953,24.6270172 34.4964953,22.6997059 C34.4964953,20.8412271 36.0435856,19.3220651 37.9943664,19.215924 L38.212723,19.21 L71.6587723,19.21 Z", id: "形状结合", fill: "url(#linearGradient-7-" + _vm.id + ")", "fill-rule": "nonzero", }, }), _c("path", { attrs: { d: "M66.8422084,79.6003689 L64.6067475,81.4359014 C63.5999351,82.2599136 62.0935293,81.5391938 62.0932983,80.2322201 L62.0932983,68.3515089 C62.0932983,64.6467109 57.7815901,62.6427467 54.9806782,65.0461544 L37.6386409,79.926298 C35.4537864,81.8011468 35.4537864,85.1988595 37.6386409,87.0737083 L54.9806782,101.953852 C57.7815901,104.35726 62.0932983,102.353295 62.0932983,98.6482648 L62.0932983,88.3567199 C62.0932983,86.4130096 59.8511361,85.3412354 58.3551288,86.5698092 L56.2077092,88.3329906 C52.1610489,91.6560257 46.0968355,88.757094 46.0968355,83.5001195 L46.0968355,83.4998868 C46.0968355,78.2429123 52.1610489,75.3439806 56.2077092,78.6670157 L62.0932983,83.4998868 L66.8422084,87.3996374 C70.1071275,90.0805851 75,87.7418514 75,83.5001195 L75,83.4998868 C75,79.2581549 70.1071275,76.9191886 66.8422084,79.6003689", id: "Fill-1", fill: "url(#linearGradient-8-" + _vm.id + ")", "fill-rule": "evenodd", }, }), ] ), ]), _c( "g", { attrs: { id: "default", mask: "mask-3-" + _vm.id } }, [ _c( "g", { attrs: { transform: "translate(34.000000, 70.000000)", }, }, [ _c("circle", { attrs: { id: "椭圆形", fill: "#F7FAFF", "fill-rule": "evenodd", cx: "30", cy: "30", r: "30", }, }), _c("circle", { attrs: { id: "椭圆形", fill: "#779AFF", "fill-rule": "evenodd", cx: "30", cy: "30", r: "24", }, }), _c("path", { attrs: { d: "M38,35 C39.1045695,35 40,35.8954305 40,37 C40,38.1045695 39.1045695,39 38,39 L23,39 C21.8954305,39 21,38.1045695 21,37 C21,35.8954305 21.8954305,35 23,35 L38,35 Z M32.5652174,21 C33.6697869,21 34.5652174,21.8954305 34.5652174,23 C34.5652174,24.1045695 33.6697869,25 32.5652174,25 L23,25 C21.8954305,25 21,24.1045695 21,23 C21,21.8954305 21.8954305,21 23,21 L32.5652174,21 Z", id: "形状结合", fill: "#FFFFFF", "fill-rule": "nonzero", }, }), ] ), ] ), ] ), ] ), ] ), ] ) } var dialogPicturevue_type_template_id_50cca146_staticRenderFns = [] dialogPicturevue_type_template_id_50cca146_render._withStripped = true // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue?vue&type=template&id=50cca146 // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.11.1@vue-loader/lib??vue-loader-options!./packages/dialog/src/dialogPicture.vue?vue&type=script&lang=js // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var id = 0; /* harmony default export */ var dialogPicturevue_type_script_lang_js = ({ name: 'dialogPicture', data: function data() { return { id: ++id }; } }); // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue?vue&type=script&lang=js /* harmony default export */ var src_dialogPicturevue_type_script_lang_js = (dialogPicturevue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); // CONCATENATED MODULE: ./packages/dialog/src/dialogPicture.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( src_dialogPicturevue_type_script_lang_js, dialogPicturevue_type_template_id_50cca146_render, dialogPicturevue_type_template_id_50cca146_staticRenderFns, false, null, null, null ) /* harmony default export */ var dialogPicture = (component.exports); // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.11.1@vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=script&lang=js var _components; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var componentvue_type_script_lang_js = ({ name: 'YkDialog', components: (_components = {}, _components[dialogPicture.name] = dialogPicture, _components), mixins: [popup_default.a, emitter_default.a, migrating_default.a], props: { title: { type: String, default: '' }, modal: { type: Boolean, default: true }, modalAppendToBody: { type: Boolean, default: true }, appendToBody: { type: Boolean, default: false }, lockScroll: { type: Boolean, default: true }, closeOnClickModal: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: true }, showClose: { type: Boolean, default: true }, width: String, fullscreen: Boolean, customClass: { type: String, default: '' }, top: { type: String, default: '15vh' }, beforeClose: Function, center: { type: Boolean, default: false }, absoluteCenter: { type: Boolean, default: false }, destroyOnClose: Boolean, showLeft: Boolean }, data: function data() { return { closed: false, key: 0 }; }, watch: { visible: function visible(val) { var _this = this; if (val) { this.closed = false; this.$emit('open'); this.$el.addEventListener('scroll', this.updatePopper); this.$nextTick(function () { _this.$refs.dialog.scrollTop = 0; }); if (this.appendToBody) { document.body.appendChild(this.$el); } } else { this.$el.removeEventListener('scroll', this.updatePopper); if (!this.closed) this.$emit('close'); if (this.destroyOnClose) { this.$nextTick(function () { _this.key++; }); } } } }, computed: { style: function style() { var style = {}; if (!this.fullscreen) { if (!this.absoluteCenter) { style.marginTop = this.top; } if (this.width) { style.width = this.width; } } return style; } }, methods: { getMigratingConfig: function getMigratingConfig() { return { props: { size: 'size is removed.' } }; }, handleWrapperClick: function handleWrapperClick() { if (!this.closeOnClickModal) return; this.handleClose(); }, handleClose: function handleClose() { if (typeof this.beforeClose === 'function') { this.beforeClose(this.hide); } else { this.hide(); } }, hide: function hide(cancel) { if (cancel !== false) { this.$emit('update:visible', false); this.$emit('close'); this.closed = true; } }, updatePopper: function updatePopper() { this.broadcast('ElSelectDropdown', 'updatePopper'); this.broadcast('YkDropdownMenu', 'updatePopper'); }, afterEnter: function afterEnter() { this.$emit('opened'); }, afterLeave: function afterLeave() { this.$emit('closed'); } }, mounted: function mounted() { if (this.visible) { this.rendered = true; this.open(); if (this.appendToBody) { document.body.appendChild(this.$el); } } }, destroyed: function destroyed() { // if appendToBody is true, remove DOM node after destroy if (this.appendToBody && this.$el && this.$el.parentNode) { this.$el.parentNode.removeChild(this.$el); } } }); // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js /* harmony default export */ var src_componentvue_type_script_lang_js = (componentvue_type_script_lang_js); // CONCATENATED MODULE: ./packages/dialog/src/component.vue /* normalize component */ var component_component = Object(componentNormalizer["a" /* default */])( src_componentvue_type_script_lang_js, render, staticRenderFns, false, null, null, null ) /* harmony default export */ var src_component = (component_component.exports); // CONCATENATED MODULE: ./packages/dialog/index.js /* istanbul ignore next */ src_component.install = function (Vue) { Vue.component(src_component.name, src_component); }; /* harmony default export */ var dialog = __webpack_exports__["default"] = (src_component); /***/ }), /***/ 14: /***/ (function(module, exports) { module.exports = require("@ykcl/smart-ui-oversea/lib/utils/popup"); /***/ }), /***/ 4: /***/ (function(module, exports) { module.exports = require("@ykcl/smart-ui-oversea/lib/mixins/emitter"); /***/ }) /******/ });