UNPKG

20.1 kBJavaScriptView Raw
1module.exports =
2/******/ (function(modules) { // webpackBootstrap
3/******/ // The module cache
4/******/ var installedModules = {};
5/******/
6/******/ // The require function
7/******/ function __webpack_require__(moduleId) {
8/******/
9/******/ // Check if module is in cache
10/******/ if(installedModules[moduleId]) {
11/******/ return installedModules[moduleId].exports;
12/******/ }
13/******/ // Create a new module (and put it into the cache)
14/******/ var module = installedModules[moduleId] = {
15/******/ i: moduleId,
16/******/ l: false,
17/******/ exports: {}
18/******/ };
19/******/
20/******/ // Execute the module function
21/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22/******/
23/******/ // Flag the module as loaded
24/******/ module.l = true;
25/******/
26/******/ // Return the exports of the module
27/******/ return module.exports;
28/******/ }
29/******/
30/******/
31/******/ // expose the modules object (__webpack_modules__)
32/******/ __webpack_require__.m = modules;
33/******/
34/******/ // expose the module cache
35/******/ __webpack_require__.c = installedModules;
36/******/
37/******/ // define getter function for harmony exports
38/******/ __webpack_require__.d = function(exports, name, getter) {
39/******/ if(!__webpack_require__.o(exports, name)) {
40/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41/******/ }
42/******/ };
43/******/
44/******/ // define __esModule on exports
45/******/ __webpack_require__.r = function(exports) {
46/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48/******/ }
49/******/ Object.defineProperty(exports, '__esModule', { value: true });
50/******/ };
51/******/
52/******/ // create a fake namespace object
53/******/ // mode & 1: value is a module id, require it
54/******/ // mode & 2: merge all properties of value into the ns
55/******/ // mode & 4: return value when already ns object
56/******/ // mode & 8|1: behave like require
57/******/ __webpack_require__.t = function(value, mode) {
58/******/ if(mode & 1) value = __webpack_require__(value);
59/******/ if(mode & 8) return value;
60/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61/******/ var ns = Object.create(null);
62/******/ __webpack_require__.r(ns);
63/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65/******/ return ns;
66/******/ };
67/******/
68/******/ // getDefaultExport function for compatibility with non-harmony modules
69/******/ __webpack_require__.n = function(module) {
70/******/ var getter = module && module.__esModule ?
71/******/ function getDefault() { return module['default']; } :
72/******/ function getModuleExports() { return module; };
73/******/ __webpack_require__.d(getter, 'a', getter);
74/******/ return getter;
75/******/ };
76/******/
77/******/ // Object.prototype.hasOwnProperty.call
78/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79/******/
80/******/ // __webpack_public_path__
81/******/ __webpack_require__.p = "/dist/";
82/******/
83/******/
84/******/ // Load entry module and return exports
85/******/ return __webpack_require__(__webpack_require__.s = 56);
86/******/ })
87/************************************************************************/
88/******/ ({
89
90/***/ 0:
91/***/ (function(module, __webpack_exports__, __webpack_require__) {
92
93"use strict";
94/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95/* globals __VUE_SSR_CONTEXT__ */
96
97// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98// This module is a runtime utility for cleaner component module output and will
99// be included in the final webpack user bundle.
100
101function normalizeComponent (
102 scriptExports,
103 render,
104 staticRenderFns,
105 functionalTemplate,
106 injectStyles,
107 scopeId,
108 moduleIdentifier, /* server only */
109 shadowMode /* vue-cli only */
110) {
111 // Vue.extend constructor export interop
112 var options = typeof scriptExports === 'function'
113 ? scriptExports.options
114 : scriptExports
115
116 // render functions
117 if (render) {
118 options.render = render
119 options.staticRenderFns = staticRenderFns
120 options._compiled = true
121 }
122
123 // functional template
124 if (functionalTemplate) {
125 options.functional = true
126 }
127
128 // scopedId
129 if (scopeId) {
130 options._scopeId = 'data-v-' + scopeId
131 }
132
133 var hook
134 if (moduleIdentifier) { // server build
135 hook = function (context) {
136 // 2.3 injection
137 context =
138 context || // cached call
139 (this.$vnode && this.$vnode.ssrContext) || // stateful
140 (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141 // 2.2 with runInNewContext: true
142 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143 context = __VUE_SSR_CONTEXT__
144 }
145 // inject component styles
146 if (injectStyles) {
147 injectStyles.call(this, context)
148 }
149 // register component module identifier for async chunk inferrence
150 if (context && context._registeredComponents) {
151 context._registeredComponents.add(moduleIdentifier)
152 }
153 }
154 // used by ssr in case component is cached and beforeCreate
155 // never gets called
156 options._ssrRegister = hook
157 } else if (injectStyles) {
158 hook = shadowMode
159 ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
160 : injectStyles
161 }
162
163 if (hook) {
164 if (options.functional) {
165 // for template-only hot-reload because in that case the render fn doesn't
166 // go through the normalizer
167 options._injectStyles = hook
168 // register for functioal component in vue file
169 var originalRender = options.render
170 options.render = function renderWithStyleInjection (h, context) {
171 hook.call(context)
172 return originalRender(h, context)
173 }
174 } else {
175 // inject component registration as beforeCreate hook
176 var existing = options.beforeCreate
177 options.beforeCreate = existing
178 ? [].concat(existing, hook)
179 : [hook]
180 }
181 }
182
183 return {
184 exports: scriptExports,
185 options: options
186 }
187}
188
189
190/***/ }),
191
192/***/ 56:
193/***/ (function(module, __webpack_exports__, __webpack_require__) {
194
195"use strict";
196__webpack_require__.r(__webpack_exports__);
197
198// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/index.vue?vue&type=template&id=3408b139&
199var render = function() {
200 var _vm = this
201 var _h = _vm.$createElement
202 var _c = _vm._self._c || _h
203 return _c("div", { staticClass: "el-result" }, [
204 _c(
205 "div",
206 { staticClass: "el-result__icon" },
207 [
208 _vm._t("icon", [
209 _c(_vm.iconElement, { tag: "component", class: _vm.iconElement })
210 ])
211 ],
212 2
213 ),
214 _vm.title || _vm.$slots.title
215 ? _c(
216 "div",
217 { staticClass: "el-result__title" },
218 [_vm._t("title", [_c("p", [_vm._v(_vm._s(_vm.title))])])],
219 2
220 )
221 : _vm._e(),
222 _vm.subTitle || _vm.$slots.subTitle
223 ? _c(
224 "div",
225 { staticClass: "el-result__subtitle" },
226 [_vm._t("subTitle", [_c("p", [_vm._v(_vm._s(_vm.subTitle))])])],
227 2
228 )
229 : _vm._e(),
230 _vm.$slots.extra
231 ? _c("div", { staticClass: "el-result__extra" }, [_vm._t("extra")], 2)
232 : _vm._e()
233 ])
234}
235var staticRenderFns = []
236render._withStripped = true
237
238
239// CONCATENATED MODULE: ./packages/result/src/index.vue?vue&type=template&id=3408b139&
240
241// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-success.vue?vue&type=template&id=18119418&
242var icon_successvue_type_template_id_18119418_render = function() {
243 var _vm = this
244 var _h = _vm.$createElement
245 var _c = _vm._self._c || _h
246 return _c(
247 "svg",
248 { attrs: { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" } },
249 [
250 _c("path", {
251 attrs: {
252 d:
253 "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"
254 }
255 })
256 ]
257 )
258}
259var icon_successvue_type_template_id_18119418_staticRenderFns = []
260icon_successvue_type_template_id_18119418_render._withStripped = true
261
262
263// CONCATENATED MODULE: ./packages/result/src/icon-success.vue?vue&type=template&id=18119418&
264
265// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-success.vue?vue&type=script&lang=js&
266//
267//
268//
269//
270//
271//
272//
273//
274
275/* harmony default export */ var icon_successvue_type_script_lang_js_ = ({
276 name: 'IconSuccess'
277});
278// CONCATENATED MODULE: ./packages/result/src/icon-success.vue?vue&type=script&lang=js&
279 /* harmony default export */ var src_icon_successvue_type_script_lang_js_ = (icon_successvue_type_script_lang_js_);
280// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
281var componentNormalizer = __webpack_require__(0);
282
283// CONCATENATED MODULE: ./packages/result/src/icon-success.vue
284
285
286
287
288
289/* normalize component */
290
291var component = Object(componentNormalizer["a" /* default */])(
292 src_icon_successvue_type_script_lang_js_,
293 icon_successvue_type_template_id_18119418_render,
294 icon_successvue_type_template_id_18119418_staticRenderFns,
295 false,
296 null,
297 null,
298 null
299
300)
301
302/* hot reload */
303if (false) { var api; }
304component.options.__file = "packages/result/src/icon-success.vue"
305/* harmony default export */ var icon_success = (component.exports);
306// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-error.vue?vue&type=template&id=21199246&
307var icon_errorvue_type_template_id_21199246_render = function() {
308 var _vm = this
309 var _h = _vm.$createElement
310 var _c = _vm._self._c || _h
311 return _c(
312 "svg",
313 { attrs: { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" } },
314 [
315 _c("path", {
316 attrs: {
317 d:
318 "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"
319 }
320 })
321 ]
322 )
323}
324var icon_errorvue_type_template_id_21199246_staticRenderFns = []
325icon_errorvue_type_template_id_21199246_render._withStripped = true
326
327
328// CONCATENATED MODULE: ./packages/result/src/icon-error.vue?vue&type=template&id=21199246&
329
330// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-error.vue?vue&type=script&lang=js&
331//
332//
333//
334//
335//
336//
337//
338//
339
340/* harmony default export */ var icon_errorvue_type_script_lang_js_ = ({
341 name: 'IconError'
342});
343// CONCATENATED MODULE: ./packages/result/src/icon-error.vue?vue&type=script&lang=js&
344 /* harmony default export */ var src_icon_errorvue_type_script_lang_js_ = (icon_errorvue_type_script_lang_js_);
345// CONCATENATED MODULE: ./packages/result/src/icon-error.vue
346
347
348
349
350
351/* normalize component */
352
353var icon_error_component = Object(componentNormalizer["a" /* default */])(
354 src_icon_errorvue_type_script_lang_js_,
355 icon_errorvue_type_template_id_21199246_render,
356 icon_errorvue_type_template_id_21199246_staticRenderFns,
357 false,
358 null,
359 null,
360 null
361
362)
363
364/* hot reload */
365if (false) { var icon_error_api; }
366icon_error_component.options.__file = "packages/result/src/icon-error.vue"
367/* harmony default export */ var icon_error = (icon_error_component.exports);
368// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-warning.vue?vue&type=template&id=46fe8f31&
369var icon_warningvue_type_template_id_46fe8f31_render = function() {
370 var _vm = this
371 var _h = _vm.$createElement
372 var _c = _vm._self._c || _h
373 return _c(
374 "svg",
375 { attrs: { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" } },
376 [
377 _c("path", {
378 attrs: {
379 d:
380 "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"
381 }
382 })
383 ]
384 )
385}
386var icon_warningvue_type_template_id_46fe8f31_staticRenderFns = []
387icon_warningvue_type_template_id_46fe8f31_render._withStripped = true
388
389
390// CONCATENATED MODULE: ./packages/result/src/icon-warning.vue?vue&type=template&id=46fe8f31&
391
392// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-warning.vue?vue&type=script&lang=ts&
393
394
395
396
397
398
399
400
401
402/* harmony default export */ var icon_warningvue_type_script_lang_ts_ = ({
403 name: 'IconWarning'
404});
405
406// CONCATENATED MODULE: ./packages/result/src/icon-warning.vue?vue&type=script&lang=ts&
407 /* harmony default export */ var src_icon_warningvue_type_script_lang_ts_ = (icon_warningvue_type_script_lang_ts_);
408// CONCATENATED MODULE: ./packages/result/src/icon-warning.vue
409
410
411
412
413
414/* normalize component */
415
416var icon_warning_component = Object(componentNormalizer["a" /* default */])(
417 src_icon_warningvue_type_script_lang_ts_,
418 icon_warningvue_type_template_id_46fe8f31_render,
419 icon_warningvue_type_template_id_46fe8f31_staticRenderFns,
420 false,
421 null,
422 null,
423 null
424
425)
426
427/* hot reload */
428if (false) { var icon_warning_api; }
429icon_warning_component.options.__file = "packages/result/src/icon-warning.vue"
430/* harmony default export */ var icon_warning = (icon_warning_component.exports);
431// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-info.vue?vue&type=template&id=19e3de69&
432var icon_infovue_type_template_id_19e3de69_render = function() {
433 var _vm = this
434 var _h = _vm.$createElement
435 var _c = _vm._self._c || _h
436 return _c(
437 "svg",
438 { attrs: { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" } },
439 [
440 _c("path", {
441 attrs: {
442 d:
443 "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"
444 }
445 })
446 ]
447 )
448}
449var icon_infovue_type_template_id_19e3de69_staticRenderFns = []
450icon_infovue_type_template_id_19e3de69_render._withStripped = true
451
452
453// CONCATENATED MODULE: ./packages/result/src/icon-info.vue?vue&type=template&id=19e3de69&
454
455// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/icon-info.vue?vue&type=script&lang=ts&
456
457
458
459
460
461
462
463
464
465/* harmony default export */ var icon_infovue_type_script_lang_ts_ = ({
466 name: 'IconInfo'
467});
468
469// CONCATENATED MODULE: ./packages/result/src/icon-info.vue?vue&type=script&lang=ts&
470 /* harmony default export */ var src_icon_infovue_type_script_lang_ts_ = (icon_infovue_type_script_lang_ts_);
471// CONCATENATED MODULE: ./packages/result/src/icon-info.vue
472
473
474
475
476
477/* normalize component */
478
479var icon_info_component = Object(componentNormalizer["a" /* default */])(
480 src_icon_infovue_type_script_lang_ts_,
481 icon_infovue_type_template_id_19e3de69_render,
482 icon_infovue_type_template_id_19e3de69_staticRenderFns,
483 false,
484 null,
485 null,
486 null
487
488)
489
490/* hot reload */
491if (false) { var icon_info_api; }
492icon_info_component.options.__file = "packages/result/src/icon-info.vue"
493/* harmony default export */ var icon_info = (icon_info_component.exports);
494// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/result/src/index.vue?vue&type=script&lang=js&
495var _components;
496
497//
498//
499//
500//
501//
502//
503//
504//
505//
506//
507//
508//
509//
510//
511//
512//
513//
514//
515//
516//
517//
518//
519
520
521
522
523
524
525var IconMap = {
526 success: 'icon-success',
527 warning: 'icon-warning',
528 error: 'icon-error',
529 info: 'icon-info'
530};
531
532/* harmony default export */ var srcvue_type_script_lang_js_ = ({
533 name: 'ElResult',
534 components: (_components = {}, _components[icon_success.name] = icon_success, _components[icon_error.name] = icon_error, _components[icon_warning.name] = icon_warning, _components[icon_info.name] = icon_info, _components),
535 props: {
536 title: {
537 type: String,
538 default: ''
539 },
540 subTitle: {
541 type: String,
542 default: ''
543 },
544 icon: {
545 type: String,
546 default: 'info'
547 }
548 },
549 computed: {
550 iconElement: function iconElement() {
551 var icon = this.icon;
552 return icon && IconMap[icon] ? IconMap[icon] : 'icon-info';
553 }
554 }
555});
556// CONCATENATED MODULE: ./packages/result/src/index.vue?vue&type=script&lang=js&
557 /* harmony default export */ var result_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
558// CONCATENATED MODULE: ./packages/result/src/index.vue
559
560
561
562
563
564/* normalize component */
565
566var src_component = Object(componentNormalizer["a" /* default */])(
567 result_srcvue_type_script_lang_js_,
568 render,
569 staticRenderFns,
570 false,
571 null,
572 null,
573 null
574
575)
576
577/* hot reload */
578if (false) { var src_api; }
579src_component.options.__file = "packages/result/src/index.vue"
580/* harmony default export */ var src = (src_component.exports);
581// CONCATENATED MODULE: ./packages/result/index.js
582
583
584/* istanbul ignore next */
585src.install = function (Vue) {
586 Vue.component(src.name, src);
587};
588
589/* harmony default export */ var result = __webpack_exports__["default"] = (src);
590
591/***/ })
592
593/******/ });
\No newline at end of file