@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/menu.js CHANGED
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("./icon"), require("./_util/proptype"), require("./transition"), require("./_util/switchcase")) : factory(root["./icon"], root["./_util/proptype"], root["./transition"], root["./_util/switchcase"]);
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__8__, __WEBPACK_EXTERNAL_MODULE__11__, __WEBPACK_EXTERNAL_MODULE__67__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__70__) {
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 = 91);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 94);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,28 +203,28 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 11:
206
+ /***/ 12:
207
207
  /***/ (function(module, exports) {
208
208
 
209
- module.exports = __WEBPACK_EXTERNAL_MODULE__11__;
209
+ module.exports = __WEBPACK_EXTERNAL_MODULE__12__;
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 139:
213
+ /***/ 142:
214
214
  /***/ (function(module, exports) {
215
215
 
216
216
  // removed by extract-text-webpack-plugin
217
217
 
218
218
  /***/ }),
219
219
 
220
- /***/ 189:
220
+ /***/ 192:
221
221
  /***/ (function(module, exports) {
222
222
 
223
223
  // removed by extract-text-webpack-plugin
224
224
 
225
225
  /***/ }),
226
226
 
227
- /***/ 191:
227
+ /***/ 194:
228
228
  /***/ (function(module, exports) {
229
229
 
230
230
  // removed by extract-text-webpack-plugin
@@ -242,26 +242,26 @@ module.exports = require("babel-runtime/helpers/defineProperty");
242
242
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
243
243
 
244
244
  "use strict";
245
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
245
+ /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
246
246
  /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
247
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(191);
247
+ /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(194);
248
248
  /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
249
249
 
250
250
 
251
251
 
252
252
  /***/ }),
253
253
 
254
- /***/ 67:
254
+ /***/ 7:
255
255
  /***/ (function(module, exports) {
256
256
 
257
- module.exports = __WEBPACK_EXTERNAL_MODULE__67__;
257
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
258
258
 
259
259
  /***/ }),
260
260
 
261
- /***/ 7:
261
+ /***/ 70:
262
262
  /***/ (function(module, exports) {
263
263
 
264
- module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
264
+ module.exports = __WEBPACK_EXTERNAL_MODULE__70__;
265
265
 
266
266
  /***/ }),
267
267
 
@@ -272,7 +272,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
272
272
 
273
273
  /***/ }),
274
274
 
275
- /***/ 91:
275
+ /***/ 94:
276
276
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
277
277
 
278
278
  "use strict";
@@ -280,10 +280,10 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
280
280
  __webpack_require__.r(__webpack_exports__);
281
281
 
282
282
  // EXTERNAL MODULE: ./components/style/index.less
283
- var style = __webpack_require__(139);
283
+ var style = __webpack_require__(142);
284
284
 
285
285
  // EXTERNAL MODULE: ./components/menu/style/index.less
286
- var menu_style = __webpack_require__(189);
286
+ var menu_style = __webpack_require__(192);
287
287
 
288
288
  // EXTERNAL MODULE: ./components/tooltip/style/index.js
289
289
  var tooltip_style = __webpack_require__(41);
@@ -754,10 +754,10 @@ menu_submenuvue_type_template_id_6a2cabb6_render._withStripped = true
754
754
  // CONCATENATED MODULE: ./components/menu/menu-submenu.vue?vue&type=template&id=6a2cabb6&
755
755
 
756
756
  // EXTERNAL MODULE: external "./_util/switchcase"
757
- var switchcase_ = __webpack_require__(67);
757
+ var switchcase_ = __webpack_require__(70);
758
758
 
759
759
  // EXTERNAL MODULE: external "./transition"
760
- var external_transition_ = __webpack_require__(11);
760
+ var external_transition_ = __webpack_require__(12);
761
761
  var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_transition_);
762
762
 
763
763
  // EXTERNAL MODULE: external "./icon"
package/dist/message.js CHANGED
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./button")) : factory(root["Vue"], root["./icon"], root["./button"]);
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__13__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__14__) {
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 = 94);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 97);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -492,14 +492,14 @@ function getScrollBarWidth() {
492
492
 
493
493
  /***/ }),
494
494
 
495
- /***/ 13:
495
+ /***/ 14:
496
496
  /***/ (function(module, exports) {
497
497
 
498
- module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
498
+ module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
499
499
 
500
500
  /***/ }),
501
501
 
502
- /***/ 14:
502
+ /***/ 15:
503
503
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
504
504
 
505
505
  "use strict";
@@ -724,7 +724,7 @@ var scrollBarWidth = void 0;
724
724
 
725
725
  /***/ }),
726
726
 
727
- /***/ 193:
727
+ /***/ 196:
728
728
  /***/ (function(module, exports) {
729
729
 
730
730
  // removed by extract-text-webpack-plugin
@@ -958,7 +958,7 @@ module.exports = require("babel-runtime/helpers/typeof");
958
958
 
959
959
  /***/ }),
960
960
 
961
- /***/ 94:
961
+ /***/ 97:
962
962
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
963
963
 
964
964
  "use strict";
@@ -970,7 +970,7 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
970
970
  var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_);
971
971
 
972
972
  // EXTERNAL MODULE: ./components/message/style/index.less
973
- var style = __webpack_require__(193);
973
+ var style = __webpack_require__(196);
974
974
 
975
975
  // CONCATENATED MODULE: ./components/message/style/index.js
976
976
 
@@ -1134,7 +1134,7 @@ messagevue_type_template_id_dc37dbd8_render._withStripped = true
1134
1134
  // CONCATENATED MODULE: ./components/message/message.vue?vue&type=template&id=dc37dbd8&
1135
1135
 
1136
1136
  // EXTERNAL MODULE: external "./button"
1137
- var external_button_ = __webpack_require__(13);
1137
+ var external_button_ = __webpack_require__(14);
1138
1138
  var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
1139
1139
 
1140
1140
  // EXTERNAL MODULE: external "./icon"
@@ -1178,7 +1178,7 @@ var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
1178
1178
  }
1179
1179
  });
1180
1180
  // EXTERNAL MODULE: ./components/_util/_popper/popup/popup-main.js
1181
- var popup_main = __webpack_require__(14);
1181
+ var popup_main = __webpack_require__(15);
1182
1182
 
1183
1183
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/message/message.vue?vue&type=script&lang=js&
1184
1184
  //
package/dist/modal.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("./transition"), require("./button"));
3
+ module.exports = factory(require("vue"), require("./icon"), require("./_mixin/locale"), require("./transition"), require("./button"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["vue", "./icon", "./transition", "./button"], factory);
5
+ define(["vue", "./icon", "./_mixin/locale", "./transition", "./button"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./transition"), require("./button")) : factory(root["Vue"], root["./icon"], root["./transition"], root["./button"]);
7
+ var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_mixin/locale"), require("./transition"), require("./button")) : factory(root["Vue"], root["./icon"], root["./_mixin/locale"], root["./transition"], root["./button"]);
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__11__, __WEBPACK_EXTERNAL_MODULE__13__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__14__) {
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 = 126);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 129);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -492,14 +492,21 @@ function getScrollBarWidth() {
492
492
 
493
493
  /***/ }),
494
494
 
495
- /***/ 11:
495
+ /***/ 10:
496
496
  /***/ (function(module, exports) {
497
497
 
498
- module.exports = __WEBPACK_EXTERNAL_MODULE__11__;
498
+ module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
499
499
 
500
500
  /***/ }),
501
501
 
502
- /***/ 126:
502
+ /***/ 12:
503
+ /***/ (function(module, exports) {
504
+
505
+ module.exports = __WEBPACK_EXTERNAL_MODULE__12__;
506
+
507
+ /***/ }),
508
+
509
+ /***/ 129:
503
510
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
504
511
 
505
512
  "use strict";
@@ -507,10 +514,10 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__11__;
507
514
  __webpack_require__.r(__webpack_exports__);
508
515
 
509
516
  // EXTERNAL MODULE: ./components/style/index.less
510
- var style = __webpack_require__(139);
517
+ var style = __webpack_require__(142);
511
518
 
512
519
  // EXTERNAL MODULE: ./components/modal/style/index.less
513
- var modal_style = __webpack_require__(195);
520
+ var modal_style = __webpack_require__(198);
514
521
 
515
522
  // CONCATENATED MODULE: ./components/modal/style/index.js
516
523
 
@@ -660,7 +667,7 @@ var render = function () {
660
667
  class: _vm.prefixClsButton,
661
668
  on: { click: _vm.handleCancel },
662
669
  },
663
- [_vm._v(_vm._s(_vm.cancelText))]
670
+ [_vm._v(_vm._s(_vm.dispatchCancelText))]
664
671
  )
665
672
  : _vm._e(),
666
673
  _c(
@@ -670,7 +677,7 @@ var render = function () {
670
677
  attrs: { type: "primary" },
671
678
  on: { click: _vm.handleOk },
672
679
  },
673
- [_vm._v(_vm._s(_vm.okText))]
680
+ [_vm._v(_vm._s(_vm.dispatchConfirmText))]
674
681
  ),
675
682
  ],
676
683
  1
@@ -693,7 +700,7 @@ render._withStripped = true
693
700
  // CONCATENATED MODULE: ./components/modal/modal.vue?vue&type=template&id=64c3d160&
694
701
 
695
702
  // EXTERNAL MODULE: external "babel-runtime/core-js/number/is-finite"
696
- var is_finite_ = __webpack_require__(68);
703
+ var is_finite_ = __webpack_require__(71);
697
704
  var is_finite_default = /*#__PURE__*/__webpack_require__.n(is_finite_);
698
705
 
699
706
  // EXTERNAL MODULE: external "./icon"
@@ -701,19 +708,23 @@ var external_icon_ = __webpack_require__(7);
701
708
  var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
702
709
 
703
710
  // EXTERNAL MODULE: external "./button"
704
- var external_button_ = __webpack_require__(13);
711
+ var external_button_ = __webpack_require__(14);
705
712
  var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
706
713
 
707
714
  // EXTERNAL MODULE: ./components/_util/util.js
708
- var util = __webpack_require__(15);
715
+ var util = __webpack_require__(16);
709
716
 
710
717
  // EXTERNAL MODULE: ./components/_util/_popper/popup/popup-main.js
711
- var popup_main = __webpack_require__(14);
718
+ var popup_main = __webpack_require__(15);
712
719
 
713
720
  // EXTERNAL MODULE: external "./transition"
714
- var external_transition_ = __webpack_require__(11);
721
+ var external_transition_ = __webpack_require__(12);
715
722
  var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_transition_);
716
723
 
724
+ // EXTERNAL MODULE: external "./_mixin/locale"
725
+ var locale_ = __webpack_require__(10);
726
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
727
+
717
728
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/modal/modal.vue?vue&type=script&lang=js&
718
729
 
719
730
  //
@@ -800,6 +811,7 @@ var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_tr
800
811
 
801
812
 
802
813
 
814
+
803
815
  var PREFIXCLS = 'mds-modal';
804
816
  /* harmony default export */ var modalvue_type_script_lang_js_ = ({
805
817
  name: 'MdsModal',
@@ -808,7 +820,7 @@ var PREFIXCLS = 'mds-modal';
808
820
  MdsButton: external_button_default.a,
809
821
  mdsTransition: external_transition_default.a
810
822
  },
811
- mixins: [popup_main["b" /* default */]],
823
+ mixins: [popup_main["b" /* default */], locale_default.a],
812
824
  props: {
813
825
  width: {
814
826
  type: [String, Number],
@@ -831,12 +843,10 @@ var PREFIXCLS = 'mds-modal';
831
843
  type: String
832
844
  },
833
845
  okText: {
834
- type: String,
835
- default: '确认'
846
+ type: String
836
847
  },
837
848
  cancelText: {
838
- type: String,
839
- default: '取消'
849
+ type: String
840
850
  },
841
851
  mask: {
842
852
  type: Boolean,
@@ -938,9 +948,14 @@ var PREFIXCLS = 'mds-modal';
938
948
  'border-color': color,
939
949
  background: color
940
950
  };
951
+ },
952
+ dispatchConfirmText: function dispatchConfirmText() {
953
+ return this.okText || this.t('mds.modal.confirmText');
954
+ },
955
+ dispatchCancelText: function dispatchCancelText() {
956
+ return this.cancelText || this.t('mds.modal.cancelText');
941
957
  }
942
958
  },
943
-
944
959
  watch: {
945
960
  visibility: function visibility(newVal, oldVal) {
946
961
  if (newVal === oldVal) {
@@ -967,7 +982,7 @@ var PREFIXCLS = 'mds-modal';
967
982
  _this.$emit('close');
968
983
  _this.$emit('update:visibility', false);
969
984
  };
970
- if (Object(util["g" /* isFunction */])(this.beforeClose)) {
985
+ if (Object(util["h" /* isFunction */])(this.beforeClose)) {
971
986
  this.beforeClose(done);
972
987
  } else {
973
988
  done();
@@ -1043,21 +1058,21 @@ modal.install = function (Vue) {
1043
1058
 
1044
1059
  /***/ }),
1045
1060
 
1046
- /***/ 13:
1061
+ /***/ 14:
1047
1062
  /***/ (function(module, exports) {
1048
1063
 
1049
- module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
1064
+ module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
1050
1065
 
1051
1066
  /***/ }),
1052
1067
 
1053
- /***/ 139:
1068
+ /***/ 142:
1054
1069
  /***/ (function(module, exports) {
1055
1070
 
1056
1071
  // removed by extract-text-webpack-plugin
1057
1072
 
1058
1073
  /***/ }),
1059
1074
 
1060
- /***/ 14:
1075
+ /***/ 15:
1061
1076
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1062
1077
 
1063
1078
  "use strict";
@@ -1282,25 +1297,26 @@ var scrollBarWidth = void 0;
1282
1297
 
1283
1298
  /***/ }),
1284
1299
 
1285
- /***/ 15:
1300
+ /***/ 16:
1286
1301
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1287
1302
 
1288
1303
  "use strict";
1289
1304
  /* unused harmony export noop */
1290
1305
  /* unused harmony export getOffsetLeft */
1291
1306
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getValueByPath; });
1292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return valueEquals; });
1307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return valueEquals; });
1293
1308
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
1294
1309
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
1295
1310
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return coerceTruthyValueToArray; });
1296
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isIE; });
1297
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isEdge; });
1311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isIE; });
1312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isEdge; });
1298
1313
  /* unused harmony export isFirefox */
1299
1314
  /* unused harmony export assert */
1300
1315
  /* unused harmony export escapeRegexpString */
1301
1316
  /* unused harmony export getOffsetWidth */
1302
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isFunction; });
1317
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isFunction; });
1303
1318
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fixBodyScroll; });
1319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwn; });
1304
1320
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1305
1321
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1306
1322
 
@@ -1487,9 +1503,15 @@ function fixBodyScroll(visible) {
1487
1503
  }
1488
1504
  }
1489
1505
 
1506
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1507
+
1508
+ function hasOwn(obj, key) {
1509
+ return hasOwnProperty.call(obj, key);
1510
+ }
1511
+
1490
1512
  /***/ }),
1491
1513
 
1492
- /***/ 195:
1514
+ /***/ 198:
1493
1515
  /***/ (function(module, exports) {
1494
1516
 
1495
1517
  // removed by extract-text-webpack-plugin
@@ -1709,17 +1731,17 @@ if (!vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) {
1709
1731
 
1710
1732
  /***/ }),
1711
1733
 
1712
- /***/ 68:
1734
+ /***/ 7:
1713
1735
  /***/ (function(module, exports) {
1714
1736
 
1715
- module.exports = require("babel-runtime/core-js/number/is-finite");
1737
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
1716
1738
 
1717
1739
  /***/ }),
1718
1740
 
1719
- /***/ 7:
1741
+ /***/ 71:
1720
1742
  /***/ (function(module, exports) {
1721
1743
 
1722
- module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
1744
+ module.exports = require("babel-runtime/core-js/number/is-finite");
1723
1745
 
1724
1746
  /***/ }),
1725
1747
 
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./transition"), require("./button")) : factory(root["Vue"], root["./icon"], root["./transition"], root["./button"]);
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__11__, __WEBPACK_EXTERNAL_MODULE__13__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__14__) {
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 = 107);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 110);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,7 +203,7 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 107:
206
+ /***/ 110:
207
207
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
208
 
209
209
  "use strict";
@@ -211,10 +211,10 @@ function normalizeComponent (
211
211
  __webpack_require__.r(__webpack_exports__);
212
212
 
213
213
  // EXTERNAL MODULE: ./components/style/index.less
214
- var style = __webpack_require__(139);
214
+ var style = __webpack_require__(142);
215
215
 
216
216
  // EXTERNAL MODULE: ./components/notification/style/index.less
217
- var notification_style = __webpack_require__(197);
217
+ var notification_style = __webpack_require__(200);
218
218
 
219
219
  // CONCATENATED MODULE: ./components/notification/style/index.js
220
220
 
@@ -350,11 +350,11 @@ var external_icon_ = __webpack_require__(7);
350
350
  var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
351
351
 
352
352
  // EXTERNAL MODULE: external "./button"
353
- var external_button_ = __webpack_require__(13);
353
+ var external_button_ = __webpack_require__(14);
354
354
  var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
355
355
 
356
356
  // EXTERNAL MODULE: external "./transition"
357
- var external_transition_ = __webpack_require__(11);
357
+ var external_transition_ = __webpack_require__(12);
358
358
  var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_transition_);
359
359
 
360
360
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/notification/notification.vue?vue&type=script&lang=js&
@@ -611,7 +611,7 @@ notification_boxvue_type_template_id_0f7fb0e2_scoped_true_render._withStripped =
611
611
  // CONCATENATED MODULE: ./components/notification/notification-box.vue?vue&type=script&lang=js&
612
612
  /* harmony default export */ var notification_notification_boxvue_type_script_lang_js_ = (notification_boxvue_type_script_lang_js_);
613
613
  // EXTERNAL MODULE: ./components/notification/notification-box.vue?vue&type=style&index=0&id=0f7fb0e2&lang=less&scoped=true&
614
- var notification_boxvue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true_ = __webpack_require__(78);
614
+ var notification_boxvue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true_ = __webpack_require__(81);
615
615
 
616
616
  // CONCATENATED MODULE: ./components/notification/notification-box.vue
617
617
 
@@ -754,45 +754,45 @@ notify.destroy = function () {
754
754
 
755
755
  /***/ }),
756
756
 
757
- /***/ 11:
757
+ /***/ 12:
758
758
  /***/ (function(module, exports) {
759
759
 
760
- module.exports = __WEBPACK_EXTERNAL_MODULE__11__;
760
+ module.exports = __WEBPACK_EXTERNAL_MODULE__12__;
761
761
 
762
762
  /***/ }),
763
763
 
764
- /***/ 13:
764
+ /***/ 14:
765
765
  /***/ (function(module, exports) {
766
766
 
767
- module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
767
+ module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
768
768
 
769
769
  /***/ }),
770
770
 
771
- /***/ 139:
771
+ /***/ 142:
772
772
  /***/ (function(module, exports) {
773
773
 
774
774
  // removed by extract-text-webpack-plugin
775
775
 
776
776
  /***/ }),
777
777
 
778
- /***/ 197:
778
+ /***/ 2:
779
779
  /***/ (function(module, exports) {
780
780
 
781
- // removed by extract-text-webpack-plugin
781
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
782
782
 
783
783
  /***/ }),
784
784
 
785
- /***/ 199:
785
+ /***/ 200:
786
786
  /***/ (function(module, exports) {
787
787
 
788
788
  // removed by extract-text-webpack-plugin
789
789
 
790
790
  /***/ }),
791
791
 
792
- /***/ 2:
792
+ /***/ 202:
793
793
  /***/ (function(module, exports) {
794
794
 
795
- module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
795
+ // removed by extract-text-webpack-plugin
796
796
 
797
797
  /***/ }),
798
798
 
@@ -803,11 +803,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
803
803
 
804
804
  /***/ }),
805
805
 
806
- /***/ 78:
806
+ /***/ 81:
807
807
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
808
808
 
809
809
  "use strict";
810
- /* harmony import */ var _node_modules_extract_text_webpack_plugin_dist_loader_js_ref_4_0_node_modules_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_notification_box_vue_vue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(199);
810
+ /* harmony import */ var _node_modules_extract_text_webpack_plugin_dist_loader_js_ref_4_0_node_modules_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_notification_box_vue_vue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(202);
811
811
  /* harmony import */ var _node_modules_extract_text_webpack_plugin_dist_loader_js_ref_4_0_node_modules_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_notification_box_vue_vue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_extract_text_webpack_plugin_dist_loader_js_ref_4_0_node_modules_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_notification_box_vue_vue_type_style_index_0_id_0f7fb0e2_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
812
812
  /* unused harmony reexport * */
813
813