@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("./_util/proptype"), require("./input"));
3
+ module.exports = factory(require("./_util/proptype"), require("./_mixin/locale"), require("./input"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./_util/proptype", "./input"], factory);
5
+ define(["./_util/proptype", "./_mixin/locale", "./input"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("./_util/proptype"), require("./input")) : factory(root["./_util/proptype"], root["./input"]);
7
+ var a = typeof exports === 'object' ? factory(require("./_util/proptype"), require("./_mixin/locale"), require("./input")) : factory(root["./_util/proptype"], root["./_mixin/locale"], root["./input"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__16__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__17__) {
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 = 95);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 98);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,28 +203,35 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 139:
206
+ /***/ 10:
207
+ /***/ (function(module, exports) {
208
+
209
+ module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
210
+
211
+ /***/ }),
212
+
213
+ /***/ 142:
207
214
  /***/ (function(module, exports) {
208
215
 
209
216
  // removed by extract-text-webpack-plugin
210
217
 
211
218
  /***/ }),
212
219
 
213
- /***/ 16:
220
+ /***/ 17:
214
221
  /***/ (function(module, exports) {
215
222
 
216
- module.exports = __WEBPACK_EXTERNAL_MODULE__16__;
223
+ module.exports = __WEBPACK_EXTERNAL_MODULE__17__;
217
224
 
218
225
  /***/ }),
219
226
 
220
- /***/ 183:
227
+ /***/ 186:
221
228
  /***/ (function(module, exports) {
222
229
 
223
230
  // removed by extract-text-webpack-plugin
224
231
 
225
232
  /***/ }),
226
233
 
227
- /***/ 201:
234
+ /***/ 204:
228
235
  /***/ (function(module, exports) {
229
236
 
230
237
  // removed by extract-text-webpack-plugin
@@ -238,13 +245,13 @@ module.exports = require("babel-runtime/helpers/defineProperty");
238
245
 
239
246
  /***/ }),
240
247
 
241
- /***/ 57:
248
+ /***/ 60:
242
249
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
243
250
 
244
251
  "use strict";
245
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
252
+ /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
246
253
  /* 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__(183);
254
+ /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(186);
248
255
  /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
249
256
 
250
257
 
@@ -258,7 +265,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
258
265
 
259
266
  /***/ }),
260
267
 
261
- /***/ 95:
268
+ /***/ 98:
262
269
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
263
270
 
264
271
  "use strict";
@@ -266,13 +273,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
266
273
  __webpack_require__.r(__webpack_exports__);
267
274
 
268
275
  // EXTERNAL MODULE: ./components/style/index.less
269
- var style = __webpack_require__(139);
276
+ var style = __webpack_require__(142);
270
277
 
271
278
  // EXTERNAL MODULE: ./components/pagination/style/index.less
272
- var pagination_style = __webpack_require__(201);
279
+ var pagination_style = __webpack_require__(204);
273
280
 
274
281
  // EXTERNAL MODULE: ./components/input/style/index.js
275
- var input_style = __webpack_require__(57);
282
+ var input_style = __webpack_require__(60);
276
283
 
277
284
  // CONCATENATED MODULE: ./components/pagination/style/index.js
278
285
 
@@ -303,7 +310,7 @@ var render = function () {
303
310
  ? _c("li", { class: _vm.prefixCls + "-total" }, [
304
311
  _vm._v("\n 共 "),
305
312
  _c("b", [_vm._v(_vm._s(_vm.total))]),
306
- _vm._v(" 条\n "),
313
+ _vm._v(" 条\n\n "),
307
314
  ])
308
315
  : _vm._e(),
309
316
  !_vm.simple &&
@@ -494,11 +501,7 @@ var render = function () {
494
501
  staticClass: "total-seat-right",
495
502
  class: _vm.prefixCls + "-total",
496
503
  },
497
- [
498
- _vm._v("\n 共 "),
499
- _c("b", [_vm._v(_vm._s(_vm.total))]),
500
- _vm._v(" 条\n "),
501
- ]
504
+ [_vm._v("\n " + _vm._s(_vm.dispatchTota) + "\n ")]
502
505
  )
503
506
  : _vm._e(),
504
507
  ],
@@ -541,7 +544,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
541
544
  "div",
542
545
  { class: _vm.prefixCls + "-quick-jumper" },
543
546
  [
544
- _vm._v("\n " + _vm._s(_vm.locale.jump_to) + "\n "),
547
+ _vm._v("\n " + _vm._s(_vm.dispatchJumpTo) + "\n "),
545
548
  _c("mds-input", {
546
549
  attrs: { type: "text" },
547
550
  on: { "press-enter": _vm.handleJump, blur: _vm.blurJump },
@@ -553,7 +556,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
553
556
  expression: "pageText",
554
557
  },
555
558
  }),
556
- _vm._v("\n " + _vm._s(_vm.locale.page) + "\n "),
559
+ _vm._v("\n " + _vm._s(_vm.dispatchPageText) + "\n "),
557
560
  ],
558
561
  1
559
562
  ),
@@ -566,9 +569,13 @@ optionvue_type_template_id_1ad093df_render._withStripped = true
566
569
  // CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=template&id=1ad093df&
567
570
 
568
571
  // EXTERNAL MODULE: external "./input"
569
- var external_input_ = __webpack_require__(16);
572
+ var external_input_ = __webpack_require__(17);
570
573
  var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
571
574
 
575
+ // EXTERNAL MODULE: external "./_mixin/locale"
576
+ var locale_ = __webpack_require__(10);
577
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
578
+
572
579
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/pagination/option.vue?vue&type=script&lang=js&
573
580
  //
574
581
  //
@@ -584,8 +591,10 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
584
591
 
585
592
 
586
593
 
594
+
587
595
  /* harmony default export */ var optionvue_type_script_lang_js_ = ({
588
596
  name: 'MdsPaginationOption',
597
+ mixins: [locale_default.a],
589
598
  props: {
590
599
  calculatePage: {
591
600
  type: Number,
@@ -634,6 +643,14 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
634
643
  currentPage: function currentPage() {
635
644
  this.pageText = this.currentPage;
636
645
  }
646
+ },
647
+ computed: {
648
+ dispatchJumpTo: function dispatchJumpTo() {
649
+ return this.t('mds.pagination.goto');
650
+ },
651
+ dispatchPageText: function dispatchPageText() {
652
+ return this.t('mds.pagination.pageClassifier');
653
+ }
637
654
  }
638
655
  });
639
656
  // CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=script&lang=js&
@@ -681,7 +698,7 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
681
698
  {
682
699
  staticStyle: { width: "120px" },
683
700
  attrs: {
684
- placeholder: "请选择",
701
+ placeholder: _vm.dispatchPlaceholder,
685
702
  value: _vm.newSizeValue,
686
703
  size: "medium",
687
704
  },
@@ -690,8 +707,8 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
690
707
  _vm._l(_vm.pageSizes, function (item) {
691
708
  return _c(
692
709
  "mds-option",
693
- { key: item, attrs: { value: item + "条/页" } },
694
- [_vm._v(_vm._s(item) + "条/页")]
710
+ { key: item, attrs: { value: "" + item + _vm.dispatchPageSize } },
711
+ [_vm._v(_vm._s("" + item + _vm.dispatchPageSize))]
695
712
  )
696
713
  }),
697
714
  1
@@ -722,10 +739,12 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
722
739
  //
723
740
  //
724
741
 
742
+ // import locale from './locale/zh_CN'
725
743
 
726
744
 
727
745
  /* harmony default export */ var changePagevue_type_script_lang_js_ = ({
728
746
  name: 'MdsPaginationOption',
747
+ mixins: [locale_default.a],
729
748
  props: {
730
749
  prefixCls: {
731
750
  type: String,
@@ -744,18 +763,24 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
744
763
  },
745
764
  data: function data() {
746
765
  return {
747
- locale: zh_CN,
748
- sizeValue: this.newSizeValue || this.pageSizes[0] + '条/页'
766
+ // locale,
767
+ sizeValue: this.newSizeValue || this.pageSizes[0] + this.dispatchPageSize
749
768
  };
750
769
  },
751
770
 
752
771
  computed: {
753
772
  newSizeValue: function newSizeValue() {
754
773
  if (this.pageSizes.includes(this.pageSizeNum)) {
755
- return this.pageSizeNum + '条/页';
774
+ return this.pageSizeNum + this.dispatchPageSize;
756
775
  } else {
757
- return this.pageSizes[0] + '条/页';
776
+ return this.pageSizes[0] + this.dispatchPageSize;
758
777
  }
778
+ },
779
+ dispatchPageSize: function dispatchPageSize() {
780
+ return this.t('mds.pagination.pagesize');
781
+ },
782
+ dispatchPlaceholder: function dispatchPlaceholder() {
783
+ return this.t('mds.pagination.placeholder');
759
784
  }
760
785
  },
761
786
  methods: {
@@ -940,6 +965,9 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
940
965
  //
941
966
  //
942
967
  //
968
+ //
969
+ //
970
+
943
971
 
944
972
 
945
973
 
@@ -949,6 +977,7 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
949
977
 
950
978
  /* harmony default export */ var paginationvue_type_script_lang_js_ = ({
951
979
  name: 'MdsPagination',
980
+ mixins: [locale_default.a],
952
981
  props: {
953
982
  controlled: {
954
983
  type: Boolean,
@@ -1020,6 +1049,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
1020
1049
  pageSizesSeat: {
1021
1050
  type: String,
1022
1051
  default: 'left'
1052
+ },
1053
+ totalNum: {
1054
+ type: String
1055
+ },
1056
+ totalPage: {
1057
+ type: String
1023
1058
  }
1024
1059
  },
1025
1060
  data: function data() {
@@ -1095,6 +1130,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
1095
1130
  },
1096
1131
  showJumpPrev: function showJumpPrev() {
1097
1132
  return this.currentPage > 4 && this.calculatePage > 5;
1133
+ },
1134
+ dispatchTotalPage: function dispatchTotalPage() {
1135
+ return this.totalPage || this.t('mds.pagination.totalPage', { total: this.total });
1136
+ },
1137
+ dispatchTota: function dispatchTota() {
1138
+ return this.totalNum || this.t('mds.pagination.total', { total: this.total });
1098
1139
  }
1099
1140
  },
1100
1141
  watch: {