UNPKG

14.4 kBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory();
4 else if(typeof define === 'function' && define.amd)
5 define([], factory);
6 else {
7 var a = factory();
8 for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9 }
10})(window, function() {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50/******/ }
51/******/ };
52/******/
53/******/ // define __esModule on exports
54/******/ __webpack_require__.r = function(exports) {
55/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57/******/ }
58/******/ Object.defineProperty(exports, '__esModule', { value: true });
59/******/ };
60/******/
61/******/ // create a fake namespace object
62/******/ // mode & 1: value is a module id, require it
63/******/ // mode & 2: merge all properties of value into the ns
64/******/ // mode & 4: return value when already ns object
65/******/ // mode & 8|1: behave like require
66/******/ __webpack_require__.t = function(value, mode) {
67/******/ if(mode & 1) value = __webpack_require__(value);
68/******/ if(mode & 8) return value;
69/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70/******/ var ns = Object.create(null);
71/******/ __webpack_require__.r(ns);
72/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74/******/ return ns;
75/******/ };
76/******/
77/******/ // getDefaultExport function for compatibility with non-harmony modules
78/******/ __webpack_require__.n = function(module) {
79/******/ var getter = module && module.__esModule ?
80/******/ function getDefault() { return module['default']; } :
81/******/ function getModuleExports() { return module; };
82/******/ __webpack_require__.d(getter, 'a', getter);
83/******/ return getter;
84/******/ };
85/******/
86/******/ // Object.prototype.hasOwnProperty.call
87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88/******/
89/******/ // __webpack_public_path__
90/******/ __webpack_require__.p = "/dist/";
91/******/
92/******/
93/******/ // Load entry module and return exports
94/******/ return __webpack_require__(__webpack_require__.s = 111);
95/******/ })
96/************************************************************************/
97/******/ ({
98
99/***/ 0:
100/***/ (function(module, __webpack_exports__, __webpack_require__) {
101
102"use strict";
103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
104/* globals __VUE_SSR_CONTEXT__ */
105
106// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
107// This module is a runtime utility for cleaner component module output and will
108// be included in the final webpack user bundle.
109
110function normalizeComponent (
111 scriptExports,
112 render,
113 staticRenderFns,
114 functionalTemplate,
115 injectStyles,
116 scopeId,
117 moduleIdentifier, /* server only */
118 shadowMode /* vue-cli only */
119) {
120 // Vue.extend constructor export interop
121 var options = typeof scriptExports === 'function'
122 ? scriptExports.options
123 : scriptExports
124
125 // render functions
126 if (render) {
127 options.render = render
128 options.staticRenderFns = staticRenderFns
129 options._compiled = true
130 }
131
132 // functional template
133 if (functionalTemplate) {
134 options.functional = true
135 }
136
137 // scopedId
138 if (scopeId) {
139 options._scopeId = 'data-v-' + scopeId
140 }
141
142 var hook
143 if (moduleIdentifier) { // server build
144 hook = function (context) {
145 // 2.3 injection
146 context =
147 context || // cached call
148 (this.$vnode && this.$vnode.ssrContext) || // stateful
149 (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
150 // 2.2 with runInNewContext: true
151 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
152 context = __VUE_SSR_CONTEXT__
153 }
154 // inject component styles
155 if (injectStyles) {
156 injectStyles.call(this, context)
157 }
158 // register component module identifier for async chunk inferrence
159 if (context && context._registeredComponents) {
160 context._registeredComponents.add(moduleIdentifier)
161 }
162 }
163 // used by ssr in case component is cached and beforeCreate
164 // never gets called
165 options._ssrRegister = hook
166 } else if (injectStyles) {
167 hook = shadowMode
168 ? function () {
169 injectStyles.call(
170 this,
171 (options.functional ? this.parent : this).$root.$options.shadowRoot
172 )
173 }
174 : injectStyles
175 }
176
177 if (hook) {
178 if (options.functional) {
179 // for template-only hot-reload because in that case the render fn doesn't
180 // go through the normalizer
181 options._injectStyles = hook
182 // register for functional component in vue file
183 var originalRender = options.render
184 options.render = function renderWithStyleInjection (h, context) {
185 hook.call(context)
186 return originalRender(h, context)
187 }
188 } else {
189 // inject component registration as beforeCreate hook
190 var existing = options.beforeCreate
191 options.beforeCreate = existing
192 ? [].concat(existing, hook)
193 : [hook]
194 }
195 }
196
197 return {
198 exports: scriptExports,
199 options: options
200 }
201}
202
203
204/***/ }),
205
206/***/ 111:
207/***/ (function(module, __webpack_exports__, __webpack_require__) {
208
209"use strict";
210// ESM COMPAT FLAG
211__webpack_require__.r(__webpack_exports__);
212
213// EXTERNAL MODULE: ./components/style/index.less
214var style = __webpack_require__(139);
215
216// EXTERNAL MODULE: ./components/timeline/style/index.less
217var timeline_style = __webpack_require__(230);
218
219// CONCATENATED MODULE: ./components/timeline/style/index.js
220
221
222// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/timeline/timeline.vue?vue&type=template&id=59dd19b8&
223var render = function () {
224 var _vm = this
225 var _h = _vm.$createElement
226 var _c = _vm._self._c || _h
227 return _c(
228 "ul",
229 { class: _vm.classes },
230 [
231 _vm._t("default"),
232 _vm.pending || _vm.$slots.pending
233 ? _c(
234 "timeline-item",
235 { attrs: { pending: true } },
236 [
237 _vm._t("pending", [
238 _vm._v(
239 "\n " +
240 _vm._s(typeof _vm.pending === "string" ? _vm.pending : "") +
241 "\n "
242 ),
243 ]),
244 ],
245 2
246 )
247 : _vm._e(),
248 ],
249 2
250 )
251}
252var staticRenderFns = []
253render._withStripped = true
254
255
256// CONCATENATED MODULE: ./components/timeline/timeline.vue?vue&type=template&id=59dd19b8&
257
258// EXTERNAL MODULE: external "babel-runtime/helpers/defineProperty"
259var defineProperty_ = __webpack_require__(3);
260var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
261
262// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/timeline/timeline.vue?vue&type=script&lang=js&
263
264//
265//
266//
267//
268//
269//
270//
271//
272//
273//
274//
275
276/* harmony default export */ var timelinevue_type_script_lang_js_ = ({
277 name: 'MdsTimeline',
278 props: {
279 prefixCls: {
280 type: String,
281 default: 'mds-timeline'
282 },
283 pending: {
284 type: [Boolean, String],
285 default: false
286 }
287 },
288 data: function data() {
289 return {
290 lastUid: -1
291 };
292 },
293
294 computed: {
295 classes: function classes() {
296 var prefixCls = this.prefixCls;
297 return [prefixCls, defineProperty_default()({}, prefixCls + '-pending', !!this.pending || !!this.$slots.pending)];
298 }
299 },
300 methods: {
301 getLastItemUid: function getLastItemUid() {
302 /**
303 * 如果存在 pending 或者 pending slot pending 的内容必然为 last
304 */
305 // const valid = this.$slots.default.filter(slot => slot.tag !== undefined)
306 // return valid[valid.length - 1].componentInstance._uid
307 }
308 },
309 mounted: function mounted() {
310 // this.lastUid = this.getLastItemUid()
311 }
312});
313// CONCATENATED MODULE: ./components/timeline/timeline.vue?vue&type=script&lang=js&
314 /* harmony default export */ var timeline_timelinevue_type_script_lang_js_ = (timelinevue_type_script_lang_js_);
315// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
316var componentNormalizer = __webpack_require__(0);
317
318// CONCATENATED MODULE: ./components/timeline/timeline.vue
319
320
321
322
323
324/* normalize component */
325
326var component = Object(componentNormalizer["a" /* default */])(
327 timeline_timelinevue_type_script_lang_js_,
328 render,
329 staticRenderFns,
330 false,
331 null,
332 null,
333 null
334
335)
336
337/* hot reload */
338if (false) { var api; }
339component.options.__file = "components/timeline/timeline.vue"
340/* harmony default export */ var timeline = (component.exports);
341// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/timeline/timeline-item.vue?vue&type=template&id=3e6cb368&
342var timeline_itemvue_type_template_id_3e6cb368_render = function () {
343 var _vm = this
344 var _h = _vm.$createElement
345 var _c = _vm._self._c || _h
346 return _c("li", { class: _vm.classes }, [
347 _c("div", { class: _vm.prefixCls + "-item-tail" }),
348 _c(
349 "div",
350 {
351 class: _vm.dotClasses,
352 style: {
353 backgroundColor: /blue|red|green|f60/.test(_vm.color)
354 ? null
355 : _vm.color,
356 width: _vm.size ? _vm.size : null,
357 height: _vm.size ? _vm.size : null,
358 },
359 },
360 [_vm._t("dot")],
361 2
362 ),
363 _c(
364 "div",
365 { class: _vm.prefixCls + "-item-content" },
366 [_vm._t("default")],
367 2
368 ),
369 ])
370}
371var timeline_itemvue_type_template_id_3e6cb368_staticRenderFns = []
372timeline_itemvue_type_template_id_3e6cb368_render._withStripped = true
373
374
375// CONCATENATED MODULE: ./components/timeline/timeline-item.vue?vue&type=template&id=3e6cb368&
376
377// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/timeline/timeline-item.vue?vue&type=script&lang=js&
378
379//
380//
381//
382//
383//
384//
385//
386//
387//
388//
389//
390//
391//
392//
393//
394//
395//
396//
397
398/* harmony default export */ var timeline_itemvue_type_script_lang_js_ = ({
399 name: 'MdsTimelineItem',
400 props: {
401 prefixCls: {
402 type: String,
403 default: 'mds-timeline'
404 },
405 color: {
406 type: String,
407 default: 'blue'
408 },
409 size: {
410 type: String
411 },
412 pending: {
413 type: Boolean,
414 default: false
415 }
416 },
417 computed: {
418 classes: function classes() {
419 var _ref;
420
421 var prefixCls = this.prefixCls;
422 return [prefixCls + '-item', (_ref = {}, defineProperty_default()(_ref, prefixCls + '-item-last', !!this.last), defineProperty_default()(_ref, prefixCls + '-item-pending', !!this.pending), _ref)];
423 },
424 dotClasses: function dotClasses() {
425 var prefixCls = this.prefixCls;
426 return [prefixCls + '-item-head', prefixCls + '-item-head-' + this.color, defineProperty_default()({}, prefixCls + '-item-head-custom', !!this.$slots.dot)];
427 },
428 last: function last() {
429 // return this._uid === this.$parent.lastUid
430 }
431 }
432});
433// CONCATENATED MODULE: ./components/timeline/timeline-item.vue?vue&type=script&lang=js&
434 /* harmony default export */ var timeline_timeline_itemvue_type_script_lang_js_ = (timeline_itemvue_type_script_lang_js_);
435// CONCATENATED MODULE: ./components/timeline/timeline-item.vue
436
437
438
439
440
441/* normalize component */
442
443var timeline_item_component = Object(componentNormalizer["a" /* default */])(
444 timeline_timeline_itemvue_type_script_lang_js_,
445 timeline_itemvue_type_template_id_3e6cb368_render,
446 timeline_itemvue_type_template_id_3e6cb368_staticRenderFns,
447 false,
448 null,
449 null,
450 null
451
452)
453
454/* hot reload */
455if (false) { var timeline_item_api; }
456timeline_item_component.options.__file = "components/timeline/timeline-item.vue"
457/* harmony default export */ var timeline_item = (timeline_item_component.exports);
458// CONCATENATED MODULE: ./components/timeline/index.js
459
460
461
462
463timeline.Item = timeline_item;
464/* istanbul ignore next */
465timeline.install = function (Vue) {
466 Vue.component(timeline.name, timeline);
467 Vue.component(timeline_item.name, timeline_item);
468};
469/* harmony default export */ var components_timeline = __webpack_exports__["default"] = (timeline);
470
471/***/ }),
472
473/***/ 139:
474/***/ (function(module, exports) {
475
476// removed by extract-text-webpack-plugin
477
478/***/ }),
479
480/***/ 230:
481/***/ (function(module, exports) {
482
483// removed by extract-text-webpack-plugin
484
485/***/ }),
486
487/***/ 3:
488/***/ (function(module, exports) {
489
490module.exports = require("babel-runtime/helpers/defineProperty");
491
492/***/ })
493
494/******/ });
495});
\No newline at end of file