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() {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
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 |
|
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 |
|
62 |
|
63 |
|
64 |
|
65 |
|
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 |
|
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 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "/dist/";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = 136);
|
95 | })
|
96 |
|
97 | ({
|
98 |
|
99 | 0:
|
100 | (function(module, __webpack_exports__, __webpack_require__) {
|
101 |
|
102 | "use strict";
|
103 | __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 | function normalizeComponent (
|
111 | scriptExports,
|
112 | render,
|
113 | staticRenderFns,
|
114 | functionalTemplate,
|
115 | injectStyles,
|
116 | scopeId,
|
117 | moduleIdentifier, /* server only */
|
118 | shadowMode /* vue-cli only */
|
119 | ) {
|
120 |
|
121 | var options = typeof scriptExports === 'function'
|
122 | ? scriptExports.options
|
123 | : scriptExports
|
124 |
|
125 |
|
126 | if (render) {
|
127 | options.render = render
|
128 | options.staticRenderFns = staticRenderFns
|
129 | options._compiled = true
|
130 | }
|
131 |
|
132 |
|
133 | if (functionalTemplate) {
|
134 | options.functional = true
|
135 | }
|
136 |
|
137 |
|
138 | if (scopeId) {
|
139 | options._scopeId = 'data-v-' + scopeId
|
140 | }
|
141 |
|
142 | var hook
|
143 | if (moduleIdentifier) {
|
144 | hook = function (context) {
|
145 |
|
146 | context =
|
147 | context ||
|
148 | (this.$vnode && this.$vnode.ssrContext) ||
|
149 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext)
|
150 |
|
151 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
152 | context = __VUE_SSR_CONTEXT__
|
153 | }
|
154 |
|
155 | if (injectStyles) {
|
156 | injectStyles.call(this, context)
|
157 | }
|
158 |
|
159 | if (context && context._registeredComponents) {
|
160 | context._registeredComponents.add(moduleIdentifier)
|
161 | }
|
162 | }
|
163 |
|
164 |
|
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 |
|
180 |
|
181 | options._injectStyles = hook
|
182 |
|
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 |
|
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 | 10:
|
207 | (function(module, exports) {
|
208 |
|
209 | module.exports = require("babel-runtime/core-js/object/keys");
|
210 |
|
211 | }),
|
212 |
|
213 | 136:
|
214 | (function(module, __webpack_exports__, __webpack_require__) {
|
215 |
|
216 | "use strict";
|
217 |
|
218 | __webpack_require__.r(__webpack_exports__);
|
219 |
|
220 |
|
221 | var style = __webpack_require__(139);
|
222 |
|
223 |
|
224 | var grid_style = __webpack_require__(167);
|
225 |
|
226 |
|
227 |
|
228 |
|
229 |
|
230 | var grid = __webpack_require__(31);
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 | grid["a" ].install = function (Vue) {
|
238 | Vue.component(grid["a" ].name, grid["a" ]);
|
239 | };
|
240 | var col = __webpack_exports__["default"] = (grid["a" ]);
|
241 |
|
242 | }),
|
243 |
|
244 | 139:
|
245 | (function(module, exports) {
|
246 |
|
247 |
|
248 |
|
249 | }),
|
250 |
|
251 | 167:
|
252 | (function(module, exports) {
|
253 |
|
254 |
|
255 |
|
256 | }),
|
257 |
|
258 | 31:
|
259 | (function(module, __webpack_exports__, __webpack_require__) {
|
260 |
|
261 | "use strict";
|
262 |
|
263 |
|
264 | __webpack_require__.d(__webpack_exports__, "b", function() { return row; });
|
265 | __webpack_require__.d(__webpack_exports__, "a", function() { return col; });
|
266 |
|
267 |
|
268 | var style = __webpack_require__(139);
|
269 |
|
270 |
|
271 | var grid_style = __webpack_require__(167);
|
272 |
|
273 |
|
274 |
|
275 |
|
276 |
|
277 | var render = function () {
|
278 | var _vm = this
|
279 | var _h = _vm.$createElement
|
280 | var _c = _vm._self._c || _h
|
281 | return _c(
|
282 | "div",
|
283 | {
|
284 | class: [
|
285 | _vm.type ? _vm.prefixCls + "-" + _vm.type : "" + _vm.prefixCls,
|
286 | _vm.type && _vm.justify
|
287 | ? _vm.prefixCls + "-" + _vm.type + "-" + _vm.justify
|
288 | : "",
|
289 | _vm.type && _vm.align
|
290 | ? _vm.prefixCls + "-" + _vm.type + "-" + _vm.align
|
291 | : "",
|
292 | ],
|
293 | style: _vm.style,
|
294 | },
|
295 | [_vm._t("default")],
|
296 | 2
|
297 | )
|
298 | }
|
299 | var staticRenderFns = []
|
300 | render._withStripped = true
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 | var rowvue_type_script_lang_js_ = ({
|
320 | name: 'MdsRow',
|
321 | data: function data() {
|
322 | return {
|
323 | prefixCls: 'mds-row'
|
324 | };
|
325 | },
|
326 |
|
327 | computed: {
|
328 | style: function style() {
|
329 | var ret = {};
|
330 | if (this.gutter) {
|
331 | ret.marginLeft = '-' + this.gutter / 2 + 'px';
|
332 | ret.marginRight = ret.marginLeft;
|
333 | }
|
334 | return ret;
|
335 | }
|
336 | },
|
337 | props: {
|
338 | gutter: {
|
339 | type: Number,
|
340 | default: 0
|
341 | },
|
342 | type: {
|
343 | type: String,
|
344 | validator: function validator(value) {
|
345 | return value === 'flex';
|
346 | }
|
347 | },
|
348 | align: {
|
349 | type: String,
|
350 | default: 'top'
|
351 | },
|
352 | justify: {
|
353 | type: String,
|
354 | default: 'start'
|
355 | }
|
356 | }
|
357 | });
|
358 |
|
359 | var grid_rowvue_type_script_lang_js_ = (rowvue_type_script_lang_js_);
|
360 |
|
361 | var componentNormalizer = __webpack_require__(0);
|
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 | var component = Object(componentNormalizer["a" ])(
|
372 | grid_rowvue_type_script_lang_js_,
|
373 | render,
|
374 | staticRenderFns,
|
375 | false,
|
376 | null,
|
377 | null,
|
378 | null
|
379 |
|
380 | )
|
381 |
|
382 |
|
383 | if (false) { var api; }
|
384 | component.options.__file = "components/grid/row.vue"
|
385 | var row = (component.exports);
|
386 |
|
387 | var colvue_type_template_id_6e20d7f2_render = function () {
|
388 | var _vm = this
|
389 | var _h = _vm.$createElement
|
390 | var _c = _vm._self._c || _h
|
391 | return _c(
|
392 | "div",
|
393 | { class: _vm.classes, style: _vm.style },
|
394 | [_vm._t("default")],
|
395 | 2
|
396 | )
|
397 | }
|
398 | var colvue_type_template_id_6e20d7f2_staticRenderFns = []
|
399 | colvue_type_template_id_6e20d7f2_render._withStripped = true
|
400 |
|
401 |
|
402 |
|
403 |
|
404 |
|
405 | var typeof_ = __webpack_require__(9);
|
406 | var typeof_default = __webpack_require__.n(typeof_);
|
407 |
|
408 |
|
409 | var keys_ = __webpack_require__(10);
|
410 | var keys_default = __webpack_require__.n(keys_);
|
411 |
|
412 |
|
413 |
|
414 |
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 |
|
423 |
|
424 | var colvue_type_script_lang_js_ = ({
|
425 | name: 'MdsCol',
|
426 | data: function data() {
|
427 | return {
|
428 | prefixCls: 'mds-col'
|
429 | };
|
430 | },
|
431 |
|
432 | props: {
|
433 | span: [Number, String],
|
434 | order: {
|
435 | type: [Number, String],
|
436 | default: 0
|
437 | },
|
438 | offset: {
|
439 | type: [Number, String],
|
440 | default: 0
|
441 | },
|
442 | push: {
|
443 | type: [Number, String],
|
444 | default: 0
|
445 | },
|
446 | pull: {
|
447 | type: [Number, String],
|
448 | default: 0
|
449 | },
|
450 | xs: [Number, String, Object],
|
451 | sm: [Number, String, Object],
|
452 | md: [Number, String, Object],
|
453 | lg: [Number, String, Object],
|
454 | xl: [Number, String, Object]
|
455 | },
|
456 | computed: {
|
457 | gutter: function gutter() {
|
458 | return this.$parent.gutter;
|
459 | },
|
460 | style: function style() {
|
461 | var ret = {};
|
462 | if (this.gutter) {
|
463 | ret.paddingLeft = this.gutter / 2 + 'px';
|
464 | ret.paddingRight = ret.paddingLeft;
|
465 | }
|
466 | return ret;
|
467 | },
|
468 | classes: function classes() {
|
469 | var _this = this;
|
470 |
|
471 | var res = [];
|
472 |
|
473 | var mergePropToClassList = function mergePropToClassList(list, size, props) {
|
474 | keys_default()(props).forEach(function (prop) {
|
475 | list.push(prop === 'span' ? _this.prefixCls + '-' + size + '-' + props[prop] : _this.prefixCls + '-' + size + '-' + prop + '-' + props[prop]);
|
476 | });
|
477 | };
|
478 |
|
479 | var isNumber = function isNumber(variable) {
|
480 | return typeof variable === 'number' || typeof variable === 'string';
|
481 | };
|
482 |
|
483 | var isObject = function isObject(variable) {
|
484 | return (typeof variable === 'undefined' ? 'undefined' : typeof_default()(variable)) === 'object';
|
485 | };['span', 'order', 'offset', 'push', 'pull'].forEach(function (el) {
|
486 | _this[el] && res.push(el === 'span' ? _this.prefixCls + '-' + _this[el] : _this.prefixCls + '-' + el + '-' + _this[el]);
|
487 | });['xs', 'sm', 'md', 'lg', 'xl'].forEach(function (el) {
|
488 | var value = _this[el];
|
489 | value && (isNumber(value) ? res.push(_this.prefixCls + '-' + el + '-' + value) : isObject(value) && mergePropToClassList(res, el, value));
|
490 | });
|
491 |
|
492 | return res;
|
493 | }
|
494 | }
|
495 | });
|
496 |
|
497 | var grid_colvue_type_script_lang_js_ = (colvue_type_script_lang_js_);
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
|
505 |
|
506 | var col_component = Object(componentNormalizer["a" ])(
|
507 | grid_colvue_type_script_lang_js_,
|
508 | colvue_type_template_id_6e20d7f2_render,
|
509 | colvue_type_template_id_6e20d7f2_staticRenderFns,
|
510 | false,
|
511 | null,
|
512 | null,
|
513 | null
|
514 |
|
515 | )
|
516 |
|
517 |
|
518 | if (false) { var col_api; }
|
519 | col_component.options.__file = "components/grid/col.vue"
|
520 | var col = (col_component.exports);
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 | row.install = function (Vue) {
|
527 | Vue.component(row.name, row);
|
528 | };
|
529 |
|
530 | col.install = function (Vue) {
|
531 | Vue.component(col.name, col);
|
532 | };
|
533 |
|
534 |
|
535 |
|
536 | }),
|
537 |
|
538 | 9:
|
539 | (function(module, exports) {
|
540 |
|
541 | module.exports = require("babel-runtime/helpers/typeof");
|
542 |
|
543 | })
|
544 |
|
545 | });
|
546 | }); |
\ | No newline at end of file |