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 = 116);
|
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 | 116:
|
207 | (function(module, __webpack_exports__, __webpack_require__) {
|
208 |
|
209 | "use strict";
|
210 |
|
211 | __webpack_require__.r(__webpack_exports__);
|
212 |
|
213 |
|
214 | var style = __webpack_require__(139);
|
215 |
|
216 |
|
217 | var typography_style = __webpack_require__(262);
|
218 |
|
219 |
|
220 |
|
221 |
|
222 |
|
223 | var render = function () {
|
224 | var _vm = this
|
225 | var _h = _vm.$createElement
|
226 | var _c = _vm._self._c || _h
|
227 | return _vm.row > 1 || _vm.row == "inherit"
|
228 | ? _c("div", [
|
229 | _c(
|
230 | "div",
|
231 | {
|
232 | class: [
|
233 | _vm.row && _vm.ellipsis
|
234 | ? _vm.prefixCls + " " + _vm.prefixCls + "--multiple"
|
235 | : "" + _vm.prefixCls,
|
236 | ],
|
237 | style: _vm.styled || _vm.style,
|
238 | },
|
239 | [_vm._t("default")],
|
240 | 2
|
241 | ),
|
242 | _c(
|
243 | "span",
|
244 | {
|
245 | directives: [
|
246 | {
|
247 | name: "show",
|
248 | rawName: "v-show",
|
249 | value: _vm.expandableFlag,
|
250 | expression: "expandableFlag",
|
251 | },
|
252 | ],
|
253 | class: _vm.prefixCls + "--btn",
|
254 | on: { click: _vm.handleClick },
|
255 | },
|
256 | [_vm.$slots.more ? _vm._t("more") : [_vm._v("更多")]],
|
257 | 2
|
258 | ),
|
259 | ])
|
260 | : _c(
|
261 | "div",
|
262 | {
|
263 | class: [
|
264 | _vm.ellipsis
|
265 | ? _vm.prefixCls + " " + _vm.prefixCls + "--ellipsis"
|
266 | : "" + _vm.prefixCls,
|
267 | ],
|
268 | },
|
269 | [_vm._t("default")],
|
270 | 2
|
271 | )
|
272 | }
|
273 | var staticRenderFns = []
|
274 | render._withStripped = true
|
275 |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 |
|
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 | var typographyvue_type_script_lang_js_ = ({
|
297 | name: 'MdsTypography',
|
298 | data: function data() {
|
299 | return {
|
300 | style: '',
|
301 | expandableFlag: ''
|
302 | };
|
303 | },
|
304 |
|
305 | props: {
|
306 | prefixCls: {
|
307 | type: String,
|
308 | default: 'mds-typography'
|
309 | },
|
310 | ellipsis: {
|
311 | type: Boolean,
|
312 | default: true
|
313 | },
|
314 | row: {
|
315 | type: [Number, String],
|
316 | default: 1
|
317 | },
|
318 | expandable: {
|
319 | type: Boolean,
|
320 | default: true
|
321 | }
|
322 | },
|
323 | computed: {
|
324 | styled: function styled() {
|
325 | this.style = '-webkit-line-clamp:' + this.row + ';';
|
326 | this.expandableFlag = this.expandable;
|
327 | }
|
328 | },
|
329 | methods: {
|
330 | handleClick: function handleClick() {
|
331 | this.style = '-webkit-line-clamp:inherit;';
|
332 | this.expandableFlag = false;
|
333 | }
|
334 | }
|
335 | });
|
336 |
|
337 | var typography_typographyvue_type_script_lang_js_ = (typographyvue_type_script_lang_js_);
|
338 |
|
339 | var componentNormalizer = __webpack_require__(0);
|
340 |
|
341 |
|
342 |
|
343 |
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 | var component = Object(componentNormalizer["a" ])(
|
350 | typography_typographyvue_type_script_lang_js_,
|
351 | render,
|
352 | staticRenderFns,
|
353 | false,
|
354 | null,
|
355 | null,
|
356 | null
|
357 |
|
358 | )
|
359 |
|
360 |
|
361 | if (false) { var api; }
|
362 | component.options.__file = "components/typography/typography.vue"
|
363 | var typography = (component.exports);
|
364 |
|
365 | var titlevue_type_template_id_4f42ba9a_render = function () {
|
366 | var _vm = this
|
367 | var _h = _vm.$createElement
|
368 | var _c = _vm._self._c || _h
|
369 | return _c(
|
370 | "div",
|
371 | { class: _vm.prefixCls + " " + _vm.prefixCls + "__h" + _vm.level },
|
372 | [_vm._t("default")],
|
373 | 2
|
374 | )
|
375 | }
|
376 | var titlevue_type_template_id_4f42ba9a_staticRenderFns = []
|
377 | titlevue_type_template_id_4f42ba9a_render._withStripped = true
|
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 | var titlevue_type_script_lang_js_ = ({
|
391 | name: 'MdsTitle',
|
392 | data: function data() {
|
393 | return {
|
394 | style: '',
|
395 | ishow: false
|
396 | };
|
397 | },
|
398 |
|
399 | props: {
|
400 | prefixCls: {
|
401 | type: String,
|
402 | default: 'mds-title'
|
403 | },
|
404 | level: {
|
405 | type: Number,
|
406 | validator: function validator(value) {
|
407 | return [1, 2, 3, 4, 5].indexOf(value) !== -1;
|
408 | },
|
409 | default: 1
|
410 | }
|
411 | }
|
412 | });
|
413 |
|
414 | var typography_titlevue_type_script_lang_js_ = (titlevue_type_script_lang_js_);
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 |
|
423 | var title_component = Object(componentNormalizer["a" ])(
|
424 | typography_titlevue_type_script_lang_js_,
|
425 | titlevue_type_template_id_4f42ba9a_render,
|
426 | titlevue_type_template_id_4f42ba9a_staticRenderFns,
|
427 | false,
|
428 | null,
|
429 | null,
|
430 | null
|
431 |
|
432 | )
|
433 |
|
434 |
|
435 | if (false) { var title_api; }
|
436 | title_component.options.__file = "components/typography/title.vue"
|
437 | var title = (title_component.exports);
|
438 |
|
439 |
|
440 |
|
441 |
|
442 |
|
443 |
|
444 | typography.title = title;
|
445 |
|
446 | typography.install = function (Vue) {
|
447 | Vue.component(typography.name, typography);
|
448 | Vue.component(title.name, title);
|
449 | };
|
450 | var components_typography = __webpack_exports__["default"] = (typography);
|
451 |
|
452 | }),
|
453 |
|
454 | 139:
|
455 | (function(module, exports) {
|
456 |
|
457 |
|
458 |
|
459 | }),
|
460 |
|
461 | 262:
|
462 | (function(module, exports) {
|
463 |
|
464 |
|
465 |
|
466 | })
|
467 |
|
468 | });
|
469 | }); |
\ | No newline at end of file |