{"version":3,"sources":["webpack:///./node_modules/element-ui/lib/utils/vdom.js","webpack:///./src/components/base/InsBanner.vue?b91e","webpack:///./src/components/base/InsBanner.vue","webpack:///./src/components/base/InsBanner.vue?4ca1","webpack:///./src/components/base/InsBanner.vue?b130","webpack:///./src/components/base/InsBanner.vue?19df","webpack:///./node_modules/element-ui/lib/message.js"],"names":["exports","__esModule","_typeof","Symbol","iterator","obj","constructor","prototype","isVNode","_util","node","hasOwn","render","_vm","this","_h","$createElement","_c","_self","staticClass","initSwiper","bannerList","length","ref","attrs","swiperOption","_l","slide","index","key","Image","directives","name","rawName","value","expression","slot","bannerImg","staticRenderFns","pagination","el","clickable","autoHeight","observer","observeParents","_this","api","promotion","GetHeaderBannerBydevice","page","isMobile","then","data","message","type","initOptions","getBanner","$store","state","default","deep","component","module","modules","installedModules","__webpack_require__","moduleId","i","l","call","m","c","d","getter","o","Object","defineProperty","enumerable","get","r","toStringTag","t","mode","ns","create","bind","n","object","property","hasOwnProperty","p","s","0","__webpack_exports__","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","15","23","7","75","external_vue_","external_vue_default","on","handleAfterLeave","visible","class","iconClass","center","showClose","customClass","style","positionStyle","role","mouseenter","clearTimer","mouseleave","startTimer","typeClass","_t","dangerouslyUseHTMLString","domProps","innerHTML","_s","_v","click","close","_e","_withStripped","typeMap","success","info","warning","error","mainvue_type_script_lang_js_","duration","onClose","closed","verticalOffset","timer","computed","watch","newVal","methods","$destroy","$el","parentNode","removeChild","clearTimeout","setTimeout","keydown","e","keyCode","mounted","document","addEventListener","beforeDestroy","removeEventListener","src_mainvue_type_script_lang_js_","componentNormalizer","__file","main","popup_","vdom_","MessageConstructor","a","extend","instance","instances","seed","main_Message","Message","$isServer","userOnClose","id","$slots","$mount","body","appendChild","offset","forEach","item","offsetHeight","zIndex","nextZIndex","push","len","removedHeight","splice","_i","dom","parseInt","closeAll","src_main"],"mappings":"2IAEAA,EAAQC,YAAa,EAErB,IAAIC,EAA4B,oBAAXC,QAAoD,kBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,oBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAEtQL,EAAQQ,QAAUA,EAElB,IAAIC,EAAQ,EAAQ,QAEpB,SAASD,EAAQE,GACf,OAAgB,OAATA,GAAiF,YAA/C,qBAATA,EAAuB,YAAcR,EAAQQ,MAAuB,EAAID,EAAME,QAAQD,EAAM,sB,kECX9H,IAAIE,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,UAAU,CAAEN,EAAIO,YAAcP,EAAIQ,WAAWC,OAAQL,EAAG,SAAS,CAACM,IAAI,WAAWC,MAAM,CAAC,QAAUX,EAAIY,eAAe,CAACZ,EAAIa,GAAIb,EAAc,YAAE,SAASc,EAAMC,GAAO,OAAOX,EAAG,eAAe,CAACY,IAAID,GAAO,CAACX,EAAG,MAAM,CAACO,MAAM,CAAC,IAAMG,EAAMG,cAAab,EAAG,MAAM,CAACc,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOrB,EAAIQ,WAAWC,OAAO,EAAGa,WAAW,wBAAwBhB,YAAY,oBAAoBK,MAAM,CAAC,KAAO,cAAcY,KAAK,gBAAgB,GAAGnB,EAAG,MAAM,CAACO,MAAM,CAAC,IAAMX,EAAIwB,cAAc,IAC1lBC,EAAkB,G,uJC2BD,EAArB,YADA,iD,+DAME,EAAAjB,WAAuB,GACvB,EAAAgB,UAAoB,GAEpB,EAAAZ,aAAuB,CAIrBc,W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,IAAON,EAAU/H,GAAGqI,GAAI,CAC1Ba,EAAgBnB,EAAU/H,GAAGwG,IAAIqC,aACjCpL,EAAQuC,EACmB,oBAAhBoI,GACTA,EAAYL,EAAU/H,IAExB+H,EAAUoB,OAAOnJ,EAAG,GACpB,MAGJ,KAAIiJ,GAAO,IAAgB,IAAXxL,GAAgBA,EAAQsK,EAAU5K,OAAS,GAC3D,IAAK,IAAIiM,EAAK3L,EAAO2L,EAAKH,EAAM,EAAGG,IAAM,CACvC,IAAIC,EAAMtB,EAAUqB,GAAI5C,IACxB6C,EAAI/E,MAAM,OAASgF,SAASD,EAAI/E,MAAM,OAAQ,IAAM4E,EAAgB,GAAK,OAI7EjB,EAAasB,SAAW,WACtB,IAAK,IAAIvJ,EAAI+H,EAAU5K,OAAS,EAAG6C,GAAK,EAAGA,IACzC+H,EAAU/H,GAAGqF,SAIY,IAAImE,EAAW,EAGD9H,EAAoB,WAAa","file":"js/chunk-36b8a4a0.be02241d.js","sourcesContent":["'use strict';\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.isVNode = isVNode;\n\nvar _util = require('element-ui/lib/utils/util');\n\nfunction isVNode(node) {\n return node !== null && (typeof node === 'undefined' ? 'undefined' : _typeof(node)) === 'object' && (0, _util.hasOwn)(node, 'componentOptions');\n};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"banner\"},[(_vm.initSwiper && _vm.bannerList.length)?_c('swiper',{ref:\"mySwiper\",attrs:{\"options\":_vm.swiperOption}},[_vm._l((_vm.bannerList),function(slide,index){return _c('swiper-slide',{key:index},[_c('img',{attrs:{\"src\":slide.Image}})])}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.bannerList.length>1),expression:\"bannerList.length>1\"}],staticClass:\"swiper-pagination\",attrs:{\"slot\":\"pagination\"},slot:\"pagination\"})],2):_c('img',{attrs:{\"src\":_vm.bannerImg}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport sdk from '@/sdk/InstoreSdk';\r\nimport { Message } from 'element-ui';\r\n\r\n// banner组件通信传值设定:\r\n// initOptions:swiper初始化相关参数\r\n// page:getHeaderBanner的传参\r\n// initSwiper:是否为轮播,默认非轮播\r\n// data:自定义banner数据\r\n\r\n@Component\r\nexport default class InsBanner extends Vue {\r\n @Prop() private initOptions!: object;\r\n @Prop({ default: '' }) private page!: string;\r\n @Prop({ default: false }) private initSwiper!: boolean;\r\n @Prop() private data!: any;\r\n bannerList: object[] = [];\r\n bannerImg: string = '';\r\n\r\n swiperOption: object = {\r\n // autoplay: {\r\n // disableOnInteraction: false\r\n // },\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true\r\n },\r\n // navigation: {\r\n // nextEl: '.swiper-button-next',\r\n // prevEl: '.swiper-button-prev'\r\n // },\r\n autoHeight: true, // 高度随内容变化\r\n observer: true, // 修改swiper自己或子元素时,自动初始化swiper\r\n observeParents: true // 修改swiper的父元素时,自动初始化swiper\r\n };\r\n\r\n // get swiper () {\r\n // return this.$refs.mySwiper.swiper;\r\n // }\r\n\r\n getBanner () {\r\n let _this = this;\r\n\r\n // sdk.api.promotion.getHeaderBanner(this.page).then(\r\n // function (data) {\r\n // _this.bannerList = data;\r\n // },\r\n // function (data) {\r\n // Message({\r\n // message: data,\r\n // type: 'error'\r\n // });\r\n // }\r\n // );\r\n\r\n sdk.api.promotion.GetHeaderBannerBydevice(this.page, this.isMobile).then(\r\n function (data) {\r\n _this.bannerList = data;\r\n },\r\n function (data) {\r\n Message({\r\n message: data,\r\n type: 'error'\r\n });\r\n }\r\n );\r\n }\r\n\r\n get isMobile () {\r\n return this.$store.state.isMobile;\r\n }\r\n\r\n created () {\r\n if (this.initOptions) {\r\n this.swiperOption = this.initOptions;\r\n }\r\n }\r\n\r\n mounted () {\r\n // if (this.bannerList.length === 1) {\r\n // 只有1个slide,swiper会失效且隐藏切换按钮\r\n // this.swiper.destroy(false);\r\n // }\r\n\r\n if (this.page) {\r\n this.getBanner();\r\n } else {\r\n if (this.initSwiper) {\r\n this.bannerList = this.data;\r\n } else {\r\n if (typeof (this.data) === 'object') {\r\n this.bannerImg = this.data[0].Image;\r\n } else if (typeof (this.data) === 'string') {\r\n this.bannerImg = this.data;\r\n }\r\n }\r\n }\r\n }\r\n\r\n @Watch('isMobile', { deep: true })\r\n onMediaChange () {\r\n if (this.initSwiper) {\r\n this.bannerList = [];\r\n this.getBanner();\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InsBanner.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InsBanner.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InsBanner.vue?vue&type=template&id=5fd0bc4a&scoped=true&\"\nimport script from \"./InsBanner.vue?vue&type=script&lang=ts&\"\nexport * from \"./InsBanner.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InsBanner.vue?vue&type=style&index=0&id=5fd0bc4a&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5fd0bc4a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../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/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InsBanner.vue?vue&type=style&index=0&id=5fd0bc4a&scoped=true&lang=less&\"; export default mod; export * from \"-!../../../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/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InsBanner.vue?vue&type=style&index=0&id=5fd0bc4a&scoped=true&lang=less&\"","module.exports =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 75);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 0:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return normalizeComponent; });\n/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nfunction normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n\n/***/ 15:\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"element-ui/lib/utils/popup\");\n\n/***/ }),\n\n/***/ 23:\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"element-ui/lib/utils/vdom\");\n\n/***/ }),\n\n/***/ 7:\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"vue\");\n\n/***/ }),\n\n/***/ 75:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n\n// EXTERNAL MODULE: external \"vue\"\nvar external_vue_ = __webpack_require__(7);\nvar external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);\n\n// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=template&id=455b9f60&\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"transition\",\n {\n attrs: { name: \"el-message-fade\" },\n on: { \"after-leave\": _vm.handleAfterLeave }\n },\n [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.visible,\n expression: \"visible\"\n }\n ],\n class: [\n \"el-message\",\n _vm.type && !_vm.iconClass ? \"el-message--\" + _vm.type : \"\",\n _vm.center ? \"is-center\" : \"\",\n _vm.showClose ? \"is-closable\" : \"\",\n _vm.customClass\n ],\n style: _vm.positionStyle,\n attrs: { role: \"alert\" },\n on: { mouseenter: _vm.clearTimer, mouseleave: _vm.startTimer }\n },\n [\n _vm.iconClass\n ? _c(\"i\", { class: _vm.iconClass })\n : _c(\"i\", { class: _vm.typeClass }),\n _vm._t(\"default\", [\n !_vm.dangerouslyUseHTMLString\n ? _c(\"p\", { staticClass: \"el-message__content\" }, [\n _vm._v(_vm._s(_vm.message))\n ])\n : _c(\"p\", {\n staticClass: \"el-message__content\",\n domProps: { innerHTML: _vm._s(_vm.message) }\n })\n ]),\n _vm.showClose\n ? _c(\"i\", {\n staticClass: \"el-message__closeBtn el-icon-close\",\n on: { click: _vm.close }\n })\n : _vm._e()\n ],\n 2\n )\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n// CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=template&id=455b9f60&\n\n// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=script&lang=js&\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nvar typeMap = {\n success: 'success',\n info: 'info',\n warning: 'warning',\n error: 'error'\n};\n\n/* harmony default export */ var mainvue_type_script_lang_js_ = ({\n data: function data() {\n return {\n visible: false,\n message: '',\n duration: 3000,\n type: 'info',\n iconClass: '',\n customClass: '',\n onClose: null,\n showClose: false,\n closed: false,\n verticalOffset: 20,\n timer: null,\n dangerouslyUseHTMLString: false,\n center: false\n };\n },\n\n\n computed: {\n typeClass: function typeClass() {\n return this.type && !this.iconClass ? 'el-message__icon el-icon-' + typeMap[this.type] : '';\n },\n positionStyle: function positionStyle() {\n return {\n 'top': this.verticalOffset + 'px'\n };\n }\n },\n\n watch: {\n closed: function closed(newVal) {\n if (newVal) {\n this.visible = false;\n }\n }\n },\n\n methods: {\n handleAfterLeave: function handleAfterLeave() {\n this.$destroy(true);\n this.$el.parentNode.removeChild(this.$el);\n },\n close: function close() {\n this.closed = true;\n if (typeof this.onClose === 'function') {\n this.onClose(this);\n }\n },\n clearTimer: function clearTimer() {\n clearTimeout(this.timer);\n },\n startTimer: function startTimer() {\n var _this = this;\n\n if (this.duration > 0) {\n this.timer = setTimeout(function () {\n if (!_this.closed) {\n _this.close();\n }\n }, this.duration);\n }\n },\n keydown: function keydown(e) {\n if (e.keyCode === 27) {\n // esc关闭消息\n if (!this.closed) {\n this.close();\n }\n }\n }\n },\n mounted: function mounted() {\n this.startTimer();\n document.addEventListener('keydown', this.keydown);\n },\n beforeDestroy: function beforeDestroy() {\n document.removeEventListener('keydown', this.keydown);\n }\n});\n// CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=script&lang=js&\n /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); \n// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js\nvar componentNormalizer = __webpack_require__(0);\n\n// CONCATENATED MODULE: ./packages/message/src/main.vue\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(componentNormalizer[\"a\" /* default */])(\n src_mainvue_type_script_lang_js_,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"packages/message/src/main.vue\"\n/* harmony default export */ var main = (component.exports);\n// EXTERNAL MODULE: external \"element-ui/lib/utils/popup\"\nvar popup_ = __webpack_require__(15);\n\n// EXTERNAL MODULE: external \"element-ui/lib/utils/vdom\"\nvar vdom_ = __webpack_require__(23);\n\n// CONCATENATED MODULE: ./packages/message/src/main.js\n\n\n\n\nvar MessageConstructor = external_vue_default.a.extend(main);\n\nvar instance = void 0;\nvar instances = [];\nvar seed = 1;\n\nvar main_Message = function Message(options) {\n if (external_vue_default.a.prototype.$isServer) return;\n options = options || {};\n if (typeof options === 'string') {\n options = {\n message: options\n };\n }\n var userOnClose = options.onClose;\n var id = 'message_' + seed++;\n\n options.onClose = function () {\n Message.close(id, userOnClose);\n };\n instance = new MessageConstructor({\n data: options\n });\n instance.id = id;\n if (Object(vdom_[\"isVNode\"])(instance.message)) {\n instance.$slots.default = [instance.message];\n instance.message = null;\n }\n instance.$mount();\n document.body.appendChild(instance.$el);\n var verticalOffset = options.offset || 20;\n instances.forEach(function (item) {\n verticalOffset += item.$el.offsetHeight + 16;\n });\n instance.verticalOffset = verticalOffset;\n instance.visible = true;\n instance.$el.style.zIndex = popup_[\"PopupManager\"].nextZIndex();\n instances.push(instance);\n return instance;\n};\n\n['success', 'warning', 'info', 'error'].forEach(function (type) {\n main_Message[type] = function (options) {\n if (typeof options === 'string') {\n options = {\n message: options\n };\n }\n options.type = type;\n return main_Message(options);\n };\n});\n\nmain_Message.close = function (id, userOnClose) {\n var len = instances.length;\n var index = -1;\n var removedHeight = void 0;\n for (var i = 0; i < len; i++) {\n if (id === instances[i].id) {\n removedHeight = instances[i].$el.offsetHeight;\n index = i;\n if (typeof userOnClose === 'function') {\n userOnClose(instances[i]);\n }\n instances.splice(i, 1);\n break;\n }\n }\n if (len <= 1 || index === -1 || index > instances.length - 1) return;\n for (var _i = index; _i < len - 1; _i++) {\n var dom = instances[_i].$el;\n dom.style['top'] = parseInt(dom.style['top'], 10) - removedHeight - 16 + 'px';\n }\n};\n\nmain_Message.closeAll = function () {\n for (var i = instances.length - 1; i >= 0; i--) {\n instances[i].close();\n }\n};\n\n/* harmony default export */ var src_main = (main_Message);\n// CONCATENATED MODULE: ./packages/message/index.js\n\n/* harmony default export */ var message = __webpack_exports__[\"default\"] = (src_main);\n\n/***/ })\n\n/******/ });"],"sourceRoot":""}