@mdsfe/mds-ui 0.2.11-rc.12 → 0.2.11-rc.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/_locale/default.js +18 -0
  2. package/dist/_locale/format.js +54 -0
  3. package/dist/_locale/index.js +56 -6
  4. package/dist/_locale/lang/en.js +144 -0
  5. package/dist/_locale/lang/zh-CN.js +142 -0
  6. package/dist/_mixin/locale.js +1 -1
  7. package/dist/_util/iconfont/index.js +1 -1
  8. package/dist/_util/util.js +7 -0
  9. package/dist/affix.js +6 -6
  10. package/dist/alert.js +6 -6
  11. package/dist/anchor.js +6 -6
  12. package/dist/avatar.js +17 -8
  13. package/dist/backtop.js +11 -11
  14. package/dist/badge.js +17 -17
  15. package/dist/bordershadow.js +6 -6
  16. package/dist/breadcrumb.js +6 -6
  17. package/dist/button.js +6 -6
  18. package/dist/card.js +6 -6
  19. package/dist/carousel.js +80 -80
  20. package/dist/cascader.js +96 -61
  21. package/dist/cascaderpanel.js +54 -29
  22. package/dist/checkbox.js +10 -10
  23. package/dist/col.js +10 -10
  24. package/dist/collapse.js +6 -6
  25. package/dist/color.js +6 -6
  26. package/dist/datepicker.js +287 -280
  27. package/dist/divider.js +6 -6
  28. package/dist/drawer.js +20 -20
  29. package/dist/dropdown.js +19 -19
  30. package/dist/empty.js +31 -14
  31. package/dist/font/iconfont.4ac77c3.woff2 +0 -0
  32. package/dist/font/iconfont.5a7af4c.woff +0 -0
  33. package/dist/font/{iconfont.3f886fd.ttf → iconfont.784954d.ttf} +0 -0
  34. package/dist/font.js +6 -6
  35. package/dist/form.js +14 -14
  36. package/dist/icon.js +6 -6
  37. package/dist/index.js +1 -1
  38. package/dist/input.js +16 -16
  39. package/dist/inputnumber.js +13 -13
  40. package/dist/layout.js +6 -6
  41. package/dist/list.js +6 -6
  42. package/dist/loading.js +6 -6
  43. package/dist/mds-ui.min.css +1 -1
  44. package/dist/mds-ui.min.js +1857 -1377
  45. package/dist/menu.js +18 -18
  46. package/dist/message.js +10 -10
  47. package/dist/modal.js +60 -38
  48. package/dist/notification.js +20 -20
  49. package/dist/pagination.js +74 -33
  50. package/dist/popconfirm.js +561 -31
  51. package/dist/popover.js +27 -27
  52. package/dist/progress.js +6 -6
  53. package/dist/radio.js +10 -10
  54. package/dist/rate.js +10 -10
  55. package/dist/row.js +10 -10
  56. package/dist/select.js +99 -79
  57. package/dist/slider.js +22 -22
  58. package/dist/slottable.js +75 -50
  59. package/dist/steps.js +6 -6
  60. package/dist/style/affix.css +166 -1
  61. package/dist/style/alert.css +166 -1
  62. package/dist/style/anchor.css +166 -1
  63. package/dist/style/avatar.css +166 -1
  64. package/dist/style/badge.css +166 -1
  65. package/dist/style/bordershadow.css +166 -1
  66. package/dist/style/breadcrumb.css +166 -1
  67. package/dist/style/button.css +166 -1
  68. package/dist/style/card.css +166 -1
  69. package/dist/style/carousel.css +166 -1
  70. package/dist/style/checkbox.css +166 -1
  71. package/dist/style/col.css +166 -1
  72. package/dist/style/collapse.css +166 -1
  73. package/dist/style/color.css +166 -1
  74. package/dist/style/datepicker.css +166 -1
  75. package/dist/style/divider.css +166 -1
  76. package/dist/style/drawer.css +166 -1
  77. package/dist/style/dropdown.css +166 -1
  78. package/dist/style/empty.css +166 -1
  79. package/dist/style/font.css +166 -1
  80. package/dist/style/form.css +166 -1
  81. package/dist/style/icon.css +166 -1
  82. package/dist/style/input.css +166 -1
  83. package/dist/style/inputnumber.css +166 -1
  84. package/dist/style/layout.css +166 -1
  85. package/dist/style/list.css +166 -1
  86. package/dist/style/loading.css +166 -1
  87. package/dist/style/menu.css +166 -1
  88. package/dist/style/modal.css +166 -1
  89. package/dist/style/notification.css +166 -1
  90. package/dist/style/pagination.css +166 -1
  91. package/dist/style/popconfirm.css +166 -1
  92. package/dist/style/popover.css +166 -1
  93. package/dist/style/progress.css +166 -1
  94. package/dist/style/radio.css +166 -1
  95. package/dist/style/rate.css +166 -1
  96. package/dist/style/row.css +166 -1
  97. package/dist/style/select.css +166 -1
  98. package/dist/style/slider.css +166 -1
  99. package/dist/style/slottable.css +166 -1
  100. package/dist/style/steps.css +166 -1
  101. package/dist/style/switch.css +166 -1
  102. package/dist/style/table.css +166 -1
  103. package/dist/style/tabs.css +166 -1
  104. package/dist/style/tag.css +166 -1
  105. package/dist/style/text.css +166 -1
  106. package/dist/style/timeline.css +166 -1
  107. package/dist/style/timepicker.css +166 -1
  108. package/dist/style/tooltip.css +166 -1
  109. package/dist/style/tree.css +166 -1
  110. package/dist/style/typography.css +166 -1
  111. package/dist/style/upload.css +166 -1
  112. package/dist/switch.js +10 -10
  113. package/dist/table.js +261 -166
  114. package/dist/tabs.js +6 -6
  115. package/dist/tag.js +6 -6
  116. package/dist/text.js +681 -681
  117. package/dist/timeline.js +6 -6
  118. package/dist/timepicker.js +571 -41
  119. package/dist/tooltip.js +25 -25
  120. package/dist/transfer.js +48 -34
  121. package/dist/transition.js +4 -4
  122. package/dist/tree.js +77 -77
  123. package/dist/typography.js +6 -6
  124. package/dist/upload.js +60 -32
  125. package/package.json +4 -2
  126. package/dist/font/iconfont.396260c.woff2 +0 -0
  127. package/dist/font/iconfont.881db5a.woff +0 -0
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./icon"), require("./button"), require("./_mixin/tooltip"));
3
+ module.exports = factory(require("vue"), require("./icon"), require("./_mixin/locale"), require("./button"), require("./_mixin/tooltip"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./icon", "./button", "./_mixin/tooltip"], factory);
5
+ define(["vue", "./icon", "./_mixin/locale", "./button", "./_mixin/tooltip"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("./icon"), require("./button"), require("./_mixin/tooltip")) : factory(root["./icon"], root["./button"], root["./_mixin/tooltip"]);
7
+ var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_mixin/locale"), require("./button"), require("./_mixin/tooltip")) : factory(root["Vue"], root["./icon"], root["./_mixin/locale"], root["./button"], root["./_mixin/tooltip"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__69__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__14__, __WEBPACK_EXTERNAL_MODULE__72__) {
11
11
  return /******/ (function(modules) { // webpackBootstrap
12
12
  /******/ // The module cache
13
13
  /******/ var installedModules = {};
@@ -91,19 +91,19 @@ return /******/ (function(modules) { // webpackBootstrap
91
91
  /******/
92
92
  /******/
93
93
  /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 135);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 138);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
98
98
 
99
- /***/ 13:
99
+ /***/ 10:
100
100
  /***/ (function(module, exports) {
101
101
 
102
- module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
102
+ module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
103
103
 
104
104
  /***/ }),
105
105
 
106
- /***/ 135:
106
+ /***/ 138:
107
107
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
108
108
 
109
109
  "use strict";
@@ -111,26 +111,35 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
111
111
  __webpack_require__.r(__webpack_exports__);
112
112
 
113
113
  // EXTERNAL MODULE: external "./_mixin/tooltip"
114
- var tooltip_ = __webpack_require__(69);
114
+ var tooltip_ = __webpack_require__(72);
115
115
  var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
116
116
 
117
+ // EXTERNAL MODULE: external "./_mixin/locale"
118
+ var locale_ = __webpack_require__(10);
119
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
120
+
117
121
  // EXTERNAL MODULE: external "./button"
118
- var external_button_ = __webpack_require__(13);
122
+ var external_button_ = __webpack_require__(14);
119
123
  var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
120
124
 
121
125
  // EXTERNAL MODULE: external "./icon"
122
126
  var external_icon_ = __webpack_require__(7);
123
127
  var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
124
128
 
129
+ // EXTERNAL MODULE: ./components/_locale/index.js + 2 modules
130
+ var _locale = __webpack_require__(46);
131
+
125
132
  // CONCATENATED MODULE: ./components/popconfirm/popconfirm.js
126
133
 
127
134
 
128
135
 
129
136
 
137
+
138
+
130
139
  var prefixClsFirm = 'mds-popover-firm';
131
140
  /* harmony default export */ var popconfirm = ({
132
141
  name: 'MdsPopconfirm',
133
- mixins: [tooltip_default.a],
142
+ mixins: [tooltip_default.a, locale_default.a],
134
143
  props: {
135
144
  prefixCls: {
136
145
  type: String,
@@ -147,8 +156,7 @@ var prefixClsFirm = 'mds-popover-firm';
147
156
  type: String
148
157
  },
149
158
  cancelText: {
150
- type: String,
151
- default: 'No'
159
+ type: String
152
160
  },
153
161
  showCancelBtn: {
154
162
  type: Boolean,
@@ -163,14 +171,21 @@ var prefixClsFirm = 'mds-popover-firm';
163
171
  default: 'primary'
164
172
  },
165
173
  okText: {
166
- type: String,
167
- default: 'Yes'
174
+ type: String
168
175
  },
169
176
  trigger: {
170
177
  type: String,
171
178
  default: 'click'
172
179
  }
173
180
  },
181
+ computed: {
182
+ displayConfirmButtonText: function displayConfirmButtonText() {
183
+ return this.okText || Object(_locale["a" /* t */])('mds.popconfirm.confirmButtonText');
184
+ },
185
+ displayCancelButtonText: function displayCancelButtonText() {
186
+ return this.cancelText || Object(_locale["a" /* t */])('mds.popconfirm.cancelButtonText');
187
+ }
188
+ },
174
189
  methods: {
175
190
  handleConfirm: function handleConfirm(e) {
176
191
  this.closePopper();
@@ -222,30 +237,30 @@ var prefixClsFirm = 'mds-popover-firm';
222
237
  on: {
223
238
  click: data.handleCancel
224
239
  }
225
- }, [h('span', data.cancelText)]) : '', h('mds-button', {
240
+ }, [h('span', data.displayCancelButtonText)]) : '', h('mds-button', {
226
241
  props: {
227
- type: '' + data.okType
242
+ type: 'default'
228
243
  },
229
244
  'class': ['mds-btn mds-btn-sm', prefixClsFirm + '-button-firm'],
230
245
  on: {
231
246
  click: data.handleConfirm
232
247
  }
233
- }, [h('span', data.okText)])])])]);
248
+ }, [h('span', data.displayConfirmButtonText)])])])]);
234
249
  }
235
250
  }
236
251
  }
237
252
  });
238
253
  // EXTERNAL MODULE: ./components/style/index.less
239
- var style = __webpack_require__(139);
254
+ var style = __webpack_require__(142);
240
255
 
241
256
  // EXTERNAL MODULE: ./components/popover/style/index.js
242
- var popover_style = __webpack_require__(46);
257
+ var popover_style = __webpack_require__(47);
243
258
 
244
259
  // EXTERNAL MODULE: ./components/button/style/index.js
245
260
  var button_style = __webpack_require__(40);
246
261
 
247
262
  // EXTERNAL MODULE: ./components/popconfirm/style/index.less
248
- var popconfirm_style = __webpack_require__(205);
263
+ var popconfirm_style = __webpack_require__(208);
249
264
 
250
265
  // CONCATENATED MODULE: ./components/popconfirm/style/index.js
251
266
 
@@ -264,28 +279,256 @@ popconfirm.install = function (Vue) {
264
279
 
265
280
  /***/ }),
266
281
 
267
- /***/ 139:
282
+ /***/ 14:
283
+ /***/ (function(module, exports) {
284
+
285
+ module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
286
+
287
+ /***/ }),
288
+
289
+ /***/ 142:
268
290
  /***/ (function(module, exports) {
269
291
 
270
292
  // removed by extract-text-webpack-plugin
271
293
 
272
294
  /***/ }),
273
295
 
274
- /***/ 163:
296
+ /***/ 16:
297
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
298
+
299
+ "use strict";
300
+ /* unused harmony export noop */
301
+ /* unused harmony export getOffsetLeft */
302
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getValueByPath; });
303
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return valueEquals; });
304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
305
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return coerceTruthyValueToArray; });
307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isIE; });
308
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isEdge; });
309
+ /* unused harmony export isFirefox */
310
+ /* unused harmony export assert */
311
+ /* unused harmony export escapeRegexpString */
312
+ /* unused harmony export getOffsetWidth */
313
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isFunction; });
314
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fixBodyScroll; });
315
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwn; });
316
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
317
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
318
+
319
+
320
+ // import { getScrollBarWidth } from './_popper/dom-helper'
321
+ var currentBodyOverflow = '';
322
+ // let currentBodyPaddingRight = ''
323
+ var noop = function noop() {};
324
+
325
+ var getScroll = function getScroll(w, top) {
326
+ var ret = top ? w.pageYOffset : w.pageXOffset;
327
+ var method = top ? 'scrollTop' : 'scrollLeft';
328
+ if (typeof ret !== 'number') {
329
+ var d = w.document;
330
+ // ie6,7,8 standard mode
331
+ ret = d.documentElement[method];
332
+ if (typeof ret !== 'number') {
333
+ // quirks mode
334
+ ret = d.body[method];
335
+ }
336
+ }
337
+ return ret;
338
+ };
339
+
340
+ var getClientPosition = function getClientPosition(elem) {
341
+ var box = void 0;
342
+ var x = void 0;
343
+ var y = void 0;
344
+ var doc = elem.ownerDocument;
345
+ var body = doc.body;
346
+ var docElem = doc && doc.documentElement;
347
+ box = elem.getBoundingClientRect();
348
+ x = box.left;
349
+ y = box.top;
350
+ x -= docElem.clientLeft || body.clientLeft || 0;
351
+ y -= docElem.clientTop || body.clientTop || 0;
352
+ return {
353
+ left: x,
354
+ top: y
355
+ };
356
+ };
357
+
358
+ var getOffsetLeft = function getOffsetLeft(el) {
359
+ var pos = getClientPosition(el);
360
+ var doc = el.ownerDocument;
361
+ var w = doc.defaultView || doc.parentWindow;
362
+ pos.left += getScroll(w);
363
+ return pos.left;
364
+ };
365
+ /**
366
+ * 获取对象深层级的对象,避免循环
367
+ * @export
368
+ * @param {*} sourceObj 源对象 {a:{b:{d:1}}}
369
+ * @param {*} pathName path组成的数组 例如:'a.b.c'
370
+ * @param {*} defaultValue 如果没有值默认的值 []
371
+ */
372
+ function getValueByPath(sourceObj, pathName, defaultValue) {
373
+ var getValue = function getValue(sourceObj, pathNameArray) {
374
+ var key = pathNameArray.shift();
375
+ var value = sourceObj[key];
376
+ if (value === undefined || value === null) {
377
+ return defaultValue;
378
+ } else if (pathNameArray.length === 0) {
379
+ return value;
380
+ } else if (pathNameArray.length > 0) {
381
+ return getValue(value, pathNameArray);
382
+ }
383
+ };
384
+ var pathNameArray = pathName.split('.');
385
+ return getValue(sourceObj, pathNameArray);
386
+ }
387
+ /**
388
+ *
389
+ * 判断两个数是否相等
390
+ * @param {*} a
391
+ * @param {*} b
392
+ * @returns
393
+ */
394
+ var valueEquals = function valueEquals(a, b) {
395
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
396
+ if (a === b) return true;
397
+ if (!(a instanceof Array)) return false;
398
+ if (!(b instanceof Array)) return false;
399
+ if (a.length !== b.length) return false;
400
+ for (var i = 0; i !== a.length; ++i) {
401
+ if (a[i] !== b[i]) return false;
402
+ }
403
+ return true;
404
+ };
405
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
406
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
407
+ for (var i = 0; i !== arr.length; ++i) {
408
+ if (pred(arr[i])) {
409
+ return i;
410
+ }
411
+ }
412
+ return -1;
413
+ };
414
+
415
+ var arrayFind = function arrayFind(arr, pred) {
416
+ var idx = arrayFindIndex(arr, pred);
417
+ return idx !== -1 ? arr[idx] : undefined;
418
+ };
419
+
420
+ // coerce truthy value to array
421
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
422
+ if (Array.isArray(val)) {
423
+ return val;
424
+ } else if (val) {
425
+ return [val];
426
+ } else {
427
+ return [];
428
+ }
429
+ };
430
+
431
+ var isIE = function isIE() {
432
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
433
+ };
434
+
435
+ var isEdge = function isEdge() {
436
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
437
+ };
438
+
439
+ var isFirefox = function isFirefox() {
440
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
441
+ };
442
+
443
+ var assert = function assert(condition, msg) {
444
+ if (!condition) throw new Error('[mds-ui] ' + msg);
445
+ };
446
+ /**
447
+ *
448
+ * 特殊字符转译
449
+ * @param {string} [value='']
450
+ */
451
+ var escapeRegexpString = function escapeRegexpString() {
452
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
453
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
454
+ };
455
+ /**
456
+ * Get element offset width
457
+ * @param {*} node HTMLDOMElemment
458
+ * @return {Number} width
459
+ */
460
+ /**
461
+ * Get element offset width
462
+ * @param {*} node HTMLDOMElemment
463
+ * @return {Number} width
464
+ */
465
+ var getOffsetWidth = function getOffsetWidth(node) {
466
+ return node ? node.offsetWidth : 0;
467
+ };
468
+
469
+ /** 判断是否为函数
470
+ * @param {*} functionToCheck
471
+ * @returns
472
+ */
473
+ var isFunction = function isFunction(functionToCheck) {
474
+ var getType = {};
475
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
476
+ };
477
+
478
+ /**
479
+ * 弹窗类组件显现时修正body滚动
480
+ * @param {Boolean} visible 弹窗显现状态
481
+ */
482
+ function fixBodyScroll(visible) {
483
+ var bodyStyle = document.body.style;
484
+ if (visible) {
485
+ currentBodyOverflow = bodyStyle.overflow;
486
+ // currentBodyPaddingRight = bodyStyle.paddingRight
487
+ bodyStyle.overflow = 'hidden';
488
+ // const basePaddingRight = parseInt(currentBodyPaddingRight || 0)
489
+ // const baseScrollWidth = parseInt(getScrollBarWidth())
490
+ // 防止页面抖动,后续需要自定义滚动条解决
491
+ // bodyStyle.paddingRight = basePaddingRight + baseScrollWidth + 'px'
492
+ } else {
493
+ var timer = setTimeout(function () {
494
+ clearTimeout(timer);
495
+ bodyStyle.overflow = currentBodyOverflow;
496
+ // bodyStyle.paddingRight = currentBodyPaddingRight
497
+ // currentBodyPaddingRight = ''
498
+ }, 180);
499
+ }
500
+ }
501
+
502
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
503
+
504
+ function hasOwn(obj, key) {
505
+ return hasOwnProperty.call(obj, key);
506
+ }
507
+
508
+ /***/ }),
509
+
510
+ /***/ 166:
275
511
  /***/ (function(module, exports) {
276
512
 
277
513
  // removed by extract-text-webpack-plugin
278
514
 
279
515
  /***/ }),
280
516
 
281
- /***/ 203:
517
+ /***/ 2:
518
+ /***/ (function(module, exports) {
519
+
520
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
521
+
522
+ /***/ }),
523
+
524
+ /***/ 206:
282
525
  /***/ (function(module, exports) {
283
526
 
284
527
  // removed by extract-text-webpack-plugin
285
528
 
286
529
  /***/ }),
287
530
 
288
- /***/ 205:
531
+ /***/ 208:
289
532
  /***/ (function(module, exports) {
290
533
 
291
534
  // removed by extract-text-webpack-plugin
@@ -296,9 +539,9 @@ popconfirm.install = function (Vue) {
296
539
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
297
540
 
298
541
  "use strict";
299
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
542
+ /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
300
543
  /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
301
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(163);
544
+ /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(166);
302
545
  /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
303
546
 
304
547
 
@@ -309,19 +552,292 @@ popconfirm.install = function (Vue) {
309
552
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
310
553
 
311
554
  "use strict";
312
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
555
+
556
+ // EXPORTS
557
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
558
+
559
+ // UNUSED EXPORTS: use, i18n
560
+
561
+ // EXTERNAL MODULE: external "babel-runtime/core-js/object/get-prototype-of"
562
+ var get_prototype_of_ = __webpack_require__(49);
563
+ var get_prototype_of_default = /*#__PURE__*/__webpack_require__.n(get_prototype_of_);
564
+
565
+ // CONCATENATED MODULE: ./components/_locale/lang/zh-CN.js
566
+ /* harmony default export */ var zh_CN = ({
567
+ mds: {
568
+ colorpicker: {
569
+ confirm: '确定',
570
+ clear: '清空'
571
+ },
572
+ timepicker: {
573
+ placeholder: '请选择时间',
574
+ startTime: '开始时间',
575
+ endTime: '结束时间'
576
+ },
577
+ datepicker: {
578
+ now: '此刻',
579
+ today: '今天',
580
+ cancel: '取消',
581
+ clear: '清空',
582
+ confirm: '确定',
583
+ selectDate: '选择日期',
584
+ selectTime: '选择时间',
585
+ startDate: '开始日期',
586
+ startTime: '开始时间',
587
+ endDate: '结束日期',
588
+ endTime: '结束时间',
589
+ prevYear: '前一年',
590
+ nextYear: '后一年',
591
+ prevMonth: '上个月',
592
+ nextMonth: '下个月',
593
+ year: '年',
594
+ month1: '1 月',
595
+ month2: '2 月',
596
+ month3: '3 月',
597
+ month4: '4 月',
598
+ month5: '5 月',
599
+ month6: '6 月',
600
+ month7: '7 月',
601
+ month8: '8 月',
602
+ month9: '9 月',
603
+ month10: '10 月',
604
+ month11: '11 月',
605
+ month12: '12 月',
606
+ // week: '周次',
607
+ weeks: {
608
+ sun: '日',
609
+ mon: '一',
610
+ tue: '二',
611
+ wed: '三',
612
+ thu: '四',
613
+ fri: '五',
614
+ sat: '六'
615
+ },
616
+ months: {
617
+ jan: '一月',
618
+ feb: '二月',
619
+ mar: '三月',
620
+ apr: '四月',
621
+ may: '五月',
622
+ jun: '六月',
623
+ jul: '七月',
624
+ aug: '八月',
625
+ sep: '九月',
626
+ oct: '十月',
627
+ nov: '十一月',
628
+ dec: '十二月'
629
+ }
630
+ },
631
+ select: {
632
+ loading: '加载中',
633
+ noMatch: '无匹配数据',
634
+ noData: '无数据',
635
+ placeholder: '请选择'
636
+ },
637
+ cascader: {
638
+ emptyText: '没有找到相关结果',
639
+ noMatch: '无匹配数据',
640
+ loading: '加载中',
641
+ placeholder: '请选择',
642
+ filterPlaceholder: '请输入搜索',
643
+ noData: '暂无数据'
644
+ },
645
+ pagination: {
646
+ goto: '前往',
647
+ placeholder: '请选择',
648
+ pagesize: '条/页',
649
+ total: '共 {total} 条',
650
+ pageClassifier: '页'
651
+ },
652
+ messagebox: {
653
+ title: '提示',
654
+ confirm: '确定',
655
+ cancel: '取消',
656
+ error: '输入的数据不合法!'
657
+ },
658
+ upload: {
659
+ deleteTip: '按 delete 键可删除',
660
+ delete: '删除',
661
+ preview: '查看图片',
662
+ uploadFileText: '上传文件',
663
+ uploadPhotoText: '上传图片',
664
+ uploadDescText: '将文件拖拽到此处, 或',
665
+ uploadClickText: '点击上传',
666
+ continue: '继续上传'
667
+ },
668
+ table: {
669
+ loadText: '加载中',
670
+ emptyText: '暂无数据',
671
+ confirmFilter: '筛选',
672
+ resetFilter: '重置',
673
+ clearFilter: '全部'
674
+ },
675
+ tree: {
676
+ emptyText: '暂无数据'
677
+ },
678
+ transfer: {
679
+ noMatch: '无匹配数据',
680
+ noData: '无数据',
681
+ titles: ['列表 1', '列表 2'],
682
+ filterPlaceholder: '请输入搜索内容',
683
+ noCheckedFormat: '共 {total} 项',
684
+ hasCheckedFormat: '已选 {checked}/{total} 项'
685
+ },
686
+ image: {
687
+ error: '加载失败'
688
+ },
689
+ pageHeader: {
690
+ title: '返回'
691
+ },
692
+ popconfirm: {
693
+ confirmButtonText: '确定',
694
+ cancelButtonText: '取消'
695
+ },
696
+ modal: {
697
+ cancelText: '取消',
698
+ confirmText: '确定'
699
+ },
700
+ empty: {
701
+ description: '暂无数据'
702
+ }
703
+ }
704
+ });
705
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
706
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(2);
707
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_);
708
+
709
+ // EXTERNAL MODULE: external "deepmerge"
710
+ var external_deepmerge_ = __webpack_require__(50);
711
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
712
+
713
+ // EXTERNAL MODULE: external "babel-runtime/helpers/typeof"
714
+ var typeof_ = __webpack_require__(9);
715
+ var typeof_default = /*#__PURE__*/__webpack_require__.n(typeof_);
716
+
717
+ // EXTERNAL MODULE: ./components/_util/util.js
718
+ var util = __webpack_require__(16);
719
+
720
+ // CONCATENATED MODULE: ./components/_locale/format.js
721
+
722
+
723
+
724
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
725
+
726
+ /* harmony default export */ var format = (function (Vue) {
727
+ /**
728
+ * template
729
+ *
730
+ * @param {String} string
731
+ * @param {Array} ...args
732
+ * @return {String}
733
+ */
734
+
735
+ function template(string) {
736
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
737
+ args[_key - 1] = arguments[_key];
738
+ }
739
+
740
+ if (args.length === 1 && typeof_default()(args[0]) === 'object') {
741
+ args = args[0];
742
+ }
743
+
744
+ if (!args || !args.hasOwnProperty) {
745
+ args = {};
746
+ }
747
+
748
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
749
+ var result = void 0;
750
+
751
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
752
+ return i;
753
+ } else {
754
+ result = Object(util["f" /* hasOwn */])(args, i) ? args[i] : null;
755
+ if (result === null || result === undefined) {
756
+ return '';
757
+ }
758
+
759
+ return result;
760
+ }
761
+ });
762
+ }
763
+
764
+ return template;
765
+ });
766
+ // CONCATENATED MODULE: ./components/_locale/index.js
767
+
768
+
769
+
770
+
771
+
772
+
773
+ var _locale_format = format(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a);
774
+ var lang = zh_CN;
775
+ var merged = false;
776
+
777
+ var _locale_i18nHandler = function i18nHandler() {
778
+ var vuei18n = get_prototype_of_default()(this || external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a).$t;
779
+ if (typeof vuei18n === 'function' && !!external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale) {
780
+ if (!merged) {
781
+ merged = true;
782
+ external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.config.lang, external_deepmerge_default()(lang, external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.config.lang) || {}, { clone: true }));
783
+ }
784
+ return vuei18n.apply(this, arguments);
785
+ }
786
+ };
787
+
788
+ var t = function t(path, options) {
789
+ var value = _locale_i18nHandler.apply(this, arguments);
790
+ if (value !== null && value !== undefined) return value;
791
+
792
+ var array = path.split('.');
793
+ var current = lang;
794
+
795
+ for (var i = 0, j = array.length; i < j; i++) {
796
+ var property = array[i];
797
+ value = current[property];
798
+ if (i === j - 1) return _locale_format(value, options);
799
+ if (!value) return '';
800
+ current = value;
801
+ }
802
+ return '';
803
+ };
804
+
805
+ var use = function use(l) {
806
+ lang = l || lang;
807
+ };
808
+
809
+ var i18n = function i18n(fn) {
810
+ _locale_i18nHandler = fn || _locale_i18nHandler;
811
+ };
812
+
813
+ /* harmony default export */ var _locale = ({ use: use, t: t, i18n: i18n });
814
+
815
+ /***/ }),
816
+
817
+ /***/ 47:
818
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
819
+
820
+ "use strict";
821
+ /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
313
822
  /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
314
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(203);
823
+ /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(206);
315
824
  /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
316
825
 
317
826
 
318
827
 
319
828
  /***/ }),
320
829
 
321
- /***/ 69:
830
+ /***/ 49:
322
831
  /***/ (function(module, exports) {
323
832
 
324
- module.exports = __WEBPACK_EXTERNAL_MODULE__69__;
833
+ module.exports = require("babel-runtime/core-js/object/get-prototype-of");
834
+
835
+ /***/ }),
836
+
837
+ /***/ 50:
838
+ /***/ (function(module, exports) {
839
+
840
+ module.exports = require("deepmerge");
325
841
 
326
842
  /***/ }),
327
843
 
@@ -330,6 +846,20 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__69__;
330
846
 
331
847
  module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
332
848
 
849
+ /***/ }),
850
+
851
+ /***/ 72:
852
+ /***/ (function(module, exports) {
853
+
854
+ module.exports = __WEBPACK_EXTERNAL_MODULE__72__;
855
+
856
+ /***/ }),
857
+
858
+ /***/ 9:
859
+ /***/ (function(module, exports) {
860
+
861
+ module.exports = require("babel-runtime/helpers/typeof");
862
+
333
863
  /***/ })
334
864
 
335
865
  /******/ });