@mdsfe/mds-ui 0.2.11-rc.8 → 0.3.0-0

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 (128) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/dist/_locale/default.js +18 -0
  3. package/dist/_locale/format.js +54 -0
  4. package/dist/_locale/index.js +56 -6
  5. package/dist/_locale/lang/en.js +144 -0
  6. package/dist/_locale/{zh-CN.js → lang/zh-CN.js} +22 -3
  7. package/dist/_mixin/locale.js +1 -1
  8. package/dist/_util/iconfont/index.js +12 -13
  9. package/dist/_util/util.js +7 -0
  10. package/dist/affix.js +6 -6
  11. package/dist/alert.js +6 -6
  12. package/dist/anchor.js +6 -6
  13. package/dist/avatar.js +17 -8
  14. package/dist/backtop.js +11 -11
  15. package/dist/badge.js +17 -17
  16. package/dist/bordershadow.js +6 -6
  17. package/dist/breadcrumb.js +6 -6
  18. package/dist/button.js +6 -6
  19. package/dist/card.js +6 -6
  20. package/dist/carousel.js +80 -80
  21. package/dist/cascader.js +96 -61
  22. package/dist/cascaderpanel.js +54 -29
  23. package/dist/checkbox.js +10 -10
  24. package/dist/col.js +10 -10
  25. package/dist/collapse.js +6 -6
  26. package/dist/color.js +6 -6
  27. package/dist/datepicker.js +287 -280
  28. package/dist/divider.js +6 -6
  29. package/dist/drawer.js +20 -20
  30. package/dist/dropdown.js +19 -19
  31. package/dist/empty.js +31 -14
  32. package/dist/font/iconfont.4ac77c3.woff2 +0 -0
  33. package/dist/font/iconfont.5a7af4c.woff +0 -0
  34. package/dist/font/{iconfont.78779fe.ttf → iconfont.784954d.ttf} +0 -0
  35. package/dist/font.js +6 -6
  36. package/dist/form.js +14 -14
  37. package/dist/icon.js +6 -6
  38. package/dist/index.js +1 -1
  39. package/dist/input.js +16 -16
  40. package/dist/inputnumber.js +13 -13
  41. package/dist/layout.js +6 -6
  42. package/dist/list.js +6 -6
  43. package/dist/loading.js +6 -6
  44. package/dist/mds-ui.min.css +1 -1
  45. package/dist/mds-ui.min.js +1884 -1386
  46. package/dist/menu.js +18 -18
  47. package/dist/message.js +10 -10
  48. package/dist/modal.js +60 -38
  49. package/dist/notification.js +20 -20
  50. package/dist/pagination.js +75 -35
  51. package/dist/popconfirm.js +561 -31
  52. package/dist/popover.js +27 -27
  53. package/dist/progress.js +6 -6
  54. package/dist/radio.js +10 -10
  55. package/dist/rate.js +10 -10
  56. package/dist/row.js +10 -10
  57. package/dist/select.js +99 -79
  58. package/dist/slider.js +58 -37
  59. package/dist/slottable.js +75 -50
  60. package/dist/steps.js +6 -6
  61. package/dist/style/affix.css +248 -2
  62. package/dist/style/alert.css +248 -2
  63. package/dist/style/anchor.css +248 -2
  64. package/dist/style/avatar.css +248 -2
  65. package/dist/style/badge.css +248 -2
  66. package/dist/style/bordershadow.css +248 -2
  67. package/dist/style/breadcrumb.css +248 -2
  68. package/dist/style/button.css +248 -2
  69. package/dist/style/card.css +248 -2
  70. package/dist/style/carousel.css +248 -2
  71. package/dist/style/checkbox.css +248 -2
  72. package/dist/style/col.css +248 -2
  73. package/dist/style/collapse.css +248 -2
  74. package/dist/style/color.css +248 -2
  75. package/dist/style/datepicker.css +248 -2
  76. package/dist/style/divider.css +248 -2
  77. package/dist/style/drawer.css +248 -2
  78. package/dist/style/dropdown.css +248 -2
  79. package/dist/style/empty.css +248 -2
  80. package/dist/style/font.css +248 -2
  81. package/dist/style/form.css +248 -2
  82. package/dist/style/icon.css +248 -2
  83. package/dist/style/input.css +248 -2
  84. package/dist/style/inputnumber.css +248 -2
  85. package/dist/style/layout.css +248 -2
  86. package/dist/style/list.css +248 -2
  87. package/dist/style/loading.css +248 -2
  88. package/dist/style/menu.css +248 -2
  89. package/dist/style/modal.css +248 -2
  90. package/dist/style/notification.css +248 -2
  91. package/dist/style/pagination.css +248 -2
  92. package/dist/style/popconfirm.css +248 -2
  93. package/dist/style/popover.css +248 -2
  94. package/dist/style/progress.css +248 -2
  95. package/dist/style/radio.css +248 -2
  96. package/dist/style/rate.css +248 -2
  97. package/dist/style/row.css +248 -2
  98. package/dist/style/select.css +248 -2
  99. package/dist/style/slider.css +248 -2
  100. package/dist/style/slottable.css +248 -2
  101. package/dist/style/steps.css +248 -2
  102. package/dist/style/switch.css +248 -2
  103. package/dist/style/table.css +248 -2
  104. package/dist/style/tabs.css +248 -2
  105. package/dist/style/tag.css +248 -2
  106. package/dist/style/text.css +248 -2
  107. package/dist/style/timeline.css +248 -2
  108. package/dist/style/timepicker.css +248 -2
  109. package/dist/style/tooltip.css +248 -2
  110. package/dist/style/tree.css +248 -2
  111. package/dist/style/typography.css +248 -2
  112. package/dist/style/upload.css +248 -2
  113. package/dist/switch.js +10 -10
  114. package/dist/table.js +261 -166
  115. package/dist/tabs.js +6 -6
  116. package/dist/tag.js +6 -6
  117. package/dist/text.js +681 -681
  118. package/dist/timeline.js +6 -6
  119. package/dist/timepicker.js +571 -41
  120. package/dist/tooltip.js +25 -25
  121. package/dist/transfer.js +48 -34
  122. package/dist/transition.js +4 -4
  123. package/dist/tree.js +77 -77
  124. package/dist/typography.js +6 -6
  125. package/dist/upload.js +60 -32
  126. package/package.json +4 -2
  127. package/dist/font/iconfont.7f549f9.woff +0 -0
  128. package/dist/font/iconfont.9a16feb.woff2 +0 -0
package/dist/select.js CHANGED
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/emitter"), require("./input"), require("./_util/util"), require("./tag"), require("./_util/resizeEvent"));
3
+ module.exports = factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/locale"), require("./_mixin/emitter"), require("./input"), require("./_util/util"), require("./tag"), require("./_util/resizeEvent"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["vue", "./icon", "./_util/proptype", "./_mixin/emitter", "./input", "./_util/util", "./tag", "./_util/resizeEvent"], factory);
5
+ define(["vue", "./icon", "./_util/proptype", "./_mixin/locale", "./_mixin/emitter", "./input", "./_util/util", "./tag", "./_util/resizeEvent"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/emitter"), require("./input"), require("./_util/util"), require("./tag"), require("./_util/resizeEvent")) : factory(root["Vue"], root["./icon"], root["./_util/proptype"], root["./_mixin/emitter"], root["./input"], root["./_util/util"], root["./tag"], root["./_util/resizeEvent"]);
7
+ var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/locale"), require("./_mixin/emitter"), require("./input"), require("./_util/util"), require("./tag"), require("./_util/resizeEvent")) : factory(root["Vue"], root["./icon"], root["./_util/proptype"], root["./_mixin/locale"], root["./_mixin/emitter"], root["./input"], root["./_util/util"], root["./tag"], root["./_util/resizeEvent"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__16__, __WEBPACK_EXTERNAL_MODULE__20__, __WEBPACK_EXTERNAL_MODULE__48__, __WEBPACK_EXTERNAL_MODULE__58__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__17__, __WEBPACK_EXTERNAL_MODULE__21__, __WEBPACK_EXTERNAL_MODULE__51__, __WEBPACK_EXTERNAL_MODULE__61__) {
11
11
  return /******/ (function(modules) { // webpackBootstrap
12
12
  /******/ // The module cache
13
13
  /******/ var installedModules = {};
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
91
91
  /******/
92
92
  /******/
93
93
  /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 89);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 92);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -495,43 +495,51 @@ function getScrollBarWidth() {
495
495
  /***/ 10:
496
496
  /***/ (function(module, exports) {
497
497
 
498
+ module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
499
+
500
+ /***/ }),
501
+
502
+ /***/ 11:
503
+ /***/ (function(module, exports) {
504
+
498
505
  module.exports = require("babel-runtime/core-js/object/keys");
499
506
 
500
507
  /***/ }),
501
508
 
502
- /***/ 12:
509
+ /***/ 13:
503
510
  /***/ (function(module, exports) {
504
511
 
505
- module.exports = __WEBPACK_EXTERNAL_MODULE__12__;
512
+ module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
506
513
 
507
514
  /***/ }),
508
515
 
509
- /***/ 139:
516
+ /***/ 142:
510
517
  /***/ (function(module, exports) {
511
518
 
512
519
  // removed by extract-text-webpack-plugin
513
520
 
514
521
  /***/ }),
515
522
 
516
- /***/ 15:
523
+ /***/ 16:
517
524
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
518
525
 
519
526
  "use strict";
520
527
  /* unused harmony export noop */
521
528
  /* unused harmony export getOffsetLeft */
522
529
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getValueByPath; });
523
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return valueEquals; });
530
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return valueEquals; });
524
531
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
525
532
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
526
533
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return coerceTruthyValueToArray; });
527
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isIE; });
528
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isEdge; });
534
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isIE; });
535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isEdge; });
529
536
  /* unused harmony export isFirefox */
530
537
  /* unused harmony export assert */
531
538
  /* unused harmony export escapeRegexpString */
532
539
  /* unused harmony export getOffsetWidth */
533
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isFunction; });
540
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isFunction; });
534
541
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fixBodyScroll; });
542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwn; });
535
543
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
536
544
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
537
545
 
@@ -718,26 +726,25 @@ function fixBodyScroll(visible) {
718
726
  }
719
727
  }
720
728
 
721
- /***/ }),
722
-
723
- /***/ 16:
724
- /***/ (function(module, exports) {
729
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
725
730
 
726
- module.exports = __WEBPACK_EXTERNAL_MODULE__16__;
731
+ function hasOwn(obj, key) {
732
+ return hasOwnProperty.call(obj, key);
733
+ }
727
734
 
728
735
  /***/ }),
729
736
 
730
- /***/ 18:
737
+ /***/ 17:
731
738
  /***/ (function(module, exports) {
732
739
 
733
- module.exports = require("babel-runtime/core-js/object/get-own-property-descriptor");
740
+ module.exports = __WEBPACK_EXTERNAL_MODULE__17__;
734
741
 
735
742
  /***/ }),
736
743
 
737
744
  /***/ 19:
738
745
  /***/ (function(module, exports) {
739
746
 
740
- module.exports = require("throttle-debounce");
747
+ module.exports = require("babel-runtime/core-js/object/get-own-property-descriptor");
741
748
 
742
749
  /***/ }),
743
750
 
@@ -751,11 +758,25 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
751
758
  /***/ 20:
752
759
  /***/ (function(module, exports) {
753
760
 
754
- module.exports = __WEBPACK_EXTERNAL_MODULE__20__;
761
+ module.exports = require("throttle-debounce");
755
762
 
756
763
  /***/ }),
757
764
 
758
765
  /***/ 21:
766
+ /***/ (function(module, exports) {
767
+
768
+ module.exports = __WEBPACK_EXTERNAL_MODULE__21__;
769
+
770
+ /***/ }),
771
+
772
+ /***/ 219:
773
+ /***/ (function(module, exports) {
774
+
775
+ // removed by extract-text-webpack-plugin
776
+
777
+ /***/ }),
778
+
779
+ /***/ 22:
759
780
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
760
781
 
761
782
  "use strict";
@@ -1000,14 +1021,7 @@ var isInContainer = function isInContainer(el, container) {
1000
1021
 
1001
1022
  /***/ }),
1002
1023
 
1003
- /***/ 216:
1004
- /***/ (function(module, exports) {
1005
-
1006
- // removed by extract-text-webpack-plugin
1007
-
1008
- /***/ }),
1009
-
1010
- /***/ 218:
1024
+ /***/ 221:
1011
1025
  /***/ (function(module, exports) {
1012
1026
 
1013
1027
  // removed by extract-text-webpack-plugin
@@ -1120,7 +1134,7 @@ module.exports = require("babel-runtime/helpers/defineProperty");
1120
1134
  "use strict";
1121
1135
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1122
1136
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1123
- /* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
1137
+ /* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
1124
1138
 
1125
1139
 
1126
1140
 
@@ -1194,13 +1208,6 @@ function createDocumentHandler(el, binding, vnode) {
1194
1208
 
1195
1209
  /***/ }),
1196
1210
 
1197
- /***/ 48:
1198
- /***/ (function(module, exports) {
1199
-
1200
- module.exports = __WEBPACK_EXTERNAL_MODULE__48__;
1201
-
1202
- /***/ }),
1203
-
1204
1211
  /***/ 5:
1205
1212
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1206
1213
 
@@ -1407,10 +1414,10 @@ if (!vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) {
1407
1414
 
1408
1415
  /***/ }),
1409
1416
 
1410
- /***/ 58:
1417
+ /***/ 51:
1411
1418
  /***/ (function(module, exports) {
1412
1419
 
1413
- module.exports = __WEBPACK_EXTERNAL_MODULE__58__;
1420
+ module.exports = __WEBPACK_EXTERNAL_MODULE__51__;
1414
1421
 
1415
1422
  /***/ }),
1416
1423
 
@@ -1421,6 +1428,13 @@ module.exports = require("babel-runtime/core-js/object/assign");
1421
1428
 
1422
1429
  /***/ }),
1423
1430
 
1431
+ /***/ 61:
1432
+ /***/ (function(module, exports) {
1433
+
1434
+ module.exports = __WEBPACK_EXTERNAL_MODULE__61__;
1435
+
1436
+ /***/ }),
1437
+
1424
1438
  /***/ 7:
1425
1439
  /***/ (function(module, exports) {
1426
1440
 
@@ -1435,7 +1449,14 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
1435
1449
 
1436
1450
  /***/ }),
1437
1451
 
1438
- /***/ 89:
1452
+ /***/ 9:
1453
+ /***/ (function(module, exports) {
1454
+
1455
+ module.exports = require("babel-runtime/helpers/typeof");
1456
+
1457
+ /***/ }),
1458
+
1459
+ /***/ 92:
1439
1460
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1440
1461
 
1441
1462
  "use strict";
@@ -1443,13 +1464,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
1443
1464
  __webpack_require__.r(__webpack_exports__);
1444
1465
 
1445
1466
  // EXTERNAL MODULE: ./components/style/index.less
1446
- var style = __webpack_require__(139);
1467
+ var style = __webpack_require__(142);
1447
1468
 
1448
1469
  // EXTERNAL MODULE: ./components/select/style/index.less
1449
- var select_style = __webpack_require__(216);
1470
+ var select_style = __webpack_require__(219);
1450
1471
 
1451
1472
  // EXTERNAL MODULE: ./components/select/style/transition.less
1452
- var transition = __webpack_require__(218);
1473
+ var transition = __webpack_require__(221);
1453
1474
 
1454
1475
  // CONCATENATED MODULE: ./components/select/style/index.js
1455
1476
 
@@ -1937,17 +1958,21 @@ render._withStripped = true
1937
1958
  // CONCATENATED MODULE: ./components/select/select.vue?vue&type=template&id=12933cc4&
1938
1959
 
1939
1960
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/keys"
1940
- var keys_ = __webpack_require__(10);
1961
+ var keys_ = __webpack_require__(11);
1941
1962
  var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
1942
1963
 
1943
1964
  // EXTERNAL MODULE: external "./input"
1944
- var external_input_ = __webpack_require__(16);
1965
+ var external_input_ = __webpack_require__(17);
1945
1966
  var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
1946
1967
 
1947
1968
  // EXTERNAL MODULE: external "./_mixin/emitter"
1948
- var emitter_ = __webpack_require__(12);
1969
+ var emitter_ = __webpack_require__(13);
1949
1970
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1950
1971
 
1972
+ // EXTERNAL MODULE: external "./_mixin/locale"
1973
+ var locale_ = __webpack_require__(10);
1974
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
1975
+
1951
1976
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/select/select-dropdown.vue?vue&type=template&id=30ac5bac&
1952
1977
  var select_dropdownvue_type_template_id_30ac5bac_render = function () {
1953
1978
  var _vm = this
@@ -2027,7 +2052,7 @@ var scrollBarWidth = void 0;
2027
2052
  return scrollBarWidth;
2028
2053
  });
2029
2054
  // EXTERNAL MODULE: ./components/_util/dom.js
2030
- var _util_dom = __webpack_require__(21);
2055
+ var _util_dom = __webpack_require__(22);
2031
2056
 
2032
2057
  // CONCATENATED MODULE: ./components/_util/popup/index.js
2033
2058
 
@@ -2245,7 +2270,7 @@ var popup_scrollBarWidth = void 0;
2245
2270
 
2246
2271
 
2247
2272
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/get-own-property-descriptor"
2248
- var get_own_property_descriptor_ = __webpack_require__(18);
2273
+ var get_own_property_descriptor_ = __webpack_require__(19);
2249
2274
  var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor_);
2250
2275
 
2251
2276
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/assign"
@@ -3869,7 +3894,7 @@ var external_icon_ = __webpack_require__(7);
3869
3894
  var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
3870
3895
 
3871
3896
  // EXTERNAL MODULE: external "./_util/util"
3872
- var util_ = __webpack_require__(20);
3897
+ var util_ = __webpack_require__(21);
3873
3898
 
3874
3899
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/select/option.vue?vue&type=script&lang=js&
3875
3900
 
@@ -4068,20 +4093,20 @@ option_component.options.__file = "components/select/option.vue"
4068
4093
  var scroll_bar = __webpack_require__(27);
4069
4094
 
4070
4095
  // EXTERNAL MODULE: external "./tag"
4071
- var external_tag_ = __webpack_require__(48);
4096
+ var external_tag_ = __webpack_require__(51);
4072
4097
  var external_tag_default = /*#__PURE__*/__webpack_require__.n(external_tag_);
4073
4098
 
4074
4099
  // EXTERNAL MODULE: external "throttle-debounce"
4075
- var external_throttle_debounce_ = __webpack_require__(19);
4100
+ var external_throttle_debounce_ = __webpack_require__(20);
4076
4101
 
4077
4102
  // EXTERNAL MODULE: external "./_util/resizeEvent"
4078
- var resizeEvent_ = __webpack_require__(58);
4103
+ var resizeEvent_ = __webpack_require__(61);
4079
4104
 
4080
4105
  // EXTERNAL MODULE: ./components/_util/clickoutside.js
4081
4106
  var clickoutside = __webpack_require__(37);
4082
4107
 
4083
4108
  // EXTERNAL MODULE: ./components/_util/util.js
4084
- var util = __webpack_require__(15);
4109
+ var util = __webpack_require__(16);
4085
4110
 
4086
4111
  // EXTERNAL MODULE: external "./_util/proptype"
4087
4112
  var proptype_ = __webpack_require__(8);
@@ -4259,6 +4284,7 @@ var proptype_ = __webpack_require__(8);
4259
4284
 
4260
4285
 
4261
4286
 
4287
+
4262
4288
  var SIZEMAP = {
4263
4289
  mini: 'mn',
4264
4290
  small: 'sm',
@@ -4270,7 +4296,7 @@ var SIZEMAP = {
4270
4296
  name: 'MdsSelect',
4271
4297
  componentName: 'MdsSelect',
4272
4298
  directives: { Clickoutside: clickoutside["a" /* default */] },
4273
- mixins: [emitter_default.a],
4299
+ mixins: [emitter_default.a, locale_default.a],
4274
4300
  components: {
4275
4301
  MdsInput: external_input_default.a,
4276
4302
  MdsDropDown: select_dropdown,
@@ -4307,7 +4333,7 @@ var SIZEMAP = {
4307
4333
  return [this.prefixCls + '-inner-input', this.selectSize ? 'is-' + this.selectSize : ''];
4308
4334
  },
4309
4335
  readonly: function readonly() {
4310
- return !this.filterable || this.multiple || !Object(util["h" /* isIE */])() && !Object(util["f" /* isEdge */])() && !this.visible;
4336
+ return !this.filterable || this.multiple || !Object(util["i" /* isIE */])() && !Object(util["g" /* isEdge */])() && !this.visible;
4311
4337
  },
4312
4338
 
4313
4339
  // 展示关闭
@@ -4328,16 +4354,16 @@ var SIZEMAP = {
4328
4354
  // 空文档
4329
4355
  emptyText: function emptyText() {
4330
4356
  if (this.loading) {
4331
- return this.loadingText;
4357
+ return this.loadingText || this.t('mds.select.loading');
4332
4358
  } else {
4333
4359
  if (this.remote && this.query === '' && this.options.length === 0) {
4334
4360
  return false;
4335
4361
  }
4336
4362
  if (this.filterable && this.query && this.options.length > 0 && this.filteredOptionsCount === 0) {
4337
- return this.noMatchText;
4363
+ return this.noMatchText || this.t('mds.select.noMatch');
4338
4364
  }
4339
4365
  if (this.options.length === 0) {
4340
- return this.noDataText;
4366
+ return this.noDataText || this.t('mds.select.noData');
4341
4367
  }
4342
4368
  }
4343
4369
  return null;
@@ -4358,6 +4384,9 @@ var SIZEMAP = {
4358
4384
  },
4359
4385
  selectDisabled: function selectDisabled() {
4360
4386
  return this.disabled;
4387
+ },
4388
+ propPlaceholder: function propPlaceholder() {
4389
+ return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('mds.select.placeholder');
4361
4390
  }
4362
4391
  },
4363
4392
  props: {
@@ -4396,16 +4425,13 @@ var SIZEMAP = {
4396
4425
  popperClass: String,
4397
4426
  remote: Boolean,
4398
4427
  loadingText: {
4399
- type: String,
4400
- default: '加载中'
4428
+ type: String
4401
4429
  },
4402
4430
  noMatchText: {
4403
- type: String,
4404
- default: '暂无数据'
4431
+ type: String
4405
4432
  },
4406
4433
  noDataText: {
4407
- type: String,
4408
- default: '暂无数据'
4434
+ type: String
4409
4435
  },
4410
4436
  remoteMethod: Function,
4411
4437
  filterMethod: Function,
@@ -4416,9 +4442,10 @@ var SIZEMAP = {
4416
4442
  },
4417
4443
  placeholder: {
4418
4444
  type: String,
4419
- default: function _default() {
4420
- // return t('el.select.placeholder')
4421
- }
4445
+ required: false
4446
+ // default() {
4447
+ // return t('el.select.placeholder')
4448
+ // }
4422
4449
  },
4423
4450
  defaultFirstOption: Boolean,
4424
4451
  reserveKeyword: Boolean,
@@ -4485,7 +4512,7 @@ var SIZEMAP = {
4485
4512
  _this2.resetInputHeight();
4486
4513
  });
4487
4514
  },
4488
- placeholder: function placeholder(val) {
4515
+ propPlaceholder: function propPlaceholder(val) {
4489
4516
  this.cachedPlaceHolder = this.currentPlaceholder = val;
4490
4517
  },
4491
4518
  value: function value(val, oldVal) {
@@ -4506,7 +4533,7 @@ var SIZEMAP = {
4506
4533
  this.inputLength = 20;
4507
4534
  }
4508
4535
 
4509
- if (!Object(util["i" /* valueEquals */])(val, oldVal)) {
4536
+ if (!Object(util["j" /* valueEquals */])(val, oldVal)) {
4510
4537
  this.dispatch('MdsFormItem', 'formItemChange', val);
4511
4538
  }
4512
4539
  },
@@ -4695,7 +4722,7 @@ var SIZEMAP = {
4695
4722
  emitChange: function emitChange(val) {
4696
4723
  var _this8 = this;
4697
4724
 
4698
- if (!Object(util["i" /* valueEquals */])(this.value, val)) {
4725
+ if (!Object(util["j" /* valueEquals */])(this.value, val)) {
4699
4726
  this.$emit('change', val);
4700
4727
  this.$nextTick(function () {
4701
4728
  _this8.tagElli();
@@ -5022,7 +5049,7 @@ var SIZEMAP = {
5022
5049
  created: function created() {
5023
5050
  var _this14 = this;
5024
5051
 
5025
- this.cachedPlaceHolder = this.currentPlaceholder = this.placeholder;
5052
+ this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder;
5026
5053
  if (this.multiple && !Array.isArray(this.value)) {
5027
5054
  this.$emit('input', []);
5028
5055
  }
@@ -5281,13 +5308,6 @@ select_select.install = function (Vue) {
5281
5308
  };
5282
5309
  /* harmony default export */ var components_select = __webpack_exports__["default"] = (select_select);
5283
5310
 
5284
- /***/ }),
5285
-
5286
- /***/ 9:
5287
- /***/ (function(module, exports) {
5288
-
5289
- module.exports = require("babel-runtime/helpers/typeof");
5290
-
5291
5311
  /***/ })
5292
5312
 
5293
5313
  /******/ });