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

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.06f3ab6.woff2 +0 -0
  33. package/dist/font/{iconfont.78779fe.ttf → iconfont.3bffbc2.ttf} +0 -0
  34. package/dist/font/iconfont.dd6d5df.woff +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 +299 -2
  62. package/dist/style/alert.css +299 -2
  63. package/dist/style/anchor.css +299 -2
  64. package/dist/style/avatar.css +299 -2
  65. package/dist/style/badge.css +299 -2
  66. package/dist/style/bordershadow.css +299 -2
  67. package/dist/style/breadcrumb.css +299 -2
  68. package/dist/style/button.css +299 -2
  69. package/dist/style/card.css +299 -2
  70. package/dist/style/carousel.css +299 -2
  71. package/dist/style/checkbox.css +299 -2
  72. package/dist/style/col.css +299 -2
  73. package/dist/style/collapse.css +299 -2
  74. package/dist/style/color.css +299 -2
  75. package/dist/style/datepicker.css +299 -2
  76. package/dist/style/divider.css +299 -2
  77. package/dist/style/drawer.css +299 -2
  78. package/dist/style/dropdown.css +299 -2
  79. package/dist/style/empty.css +299 -2
  80. package/dist/style/font.css +299 -2
  81. package/dist/style/form.css +299 -2
  82. package/dist/style/icon.css +299 -2
  83. package/dist/style/input.css +299 -2
  84. package/dist/style/inputnumber.css +299 -2
  85. package/dist/style/layout.css +299 -2
  86. package/dist/style/list.css +299 -2
  87. package/dist/style/loading.css +299 -2
  88. package/dist/style/menu.css +299 -2
  89. package/dist/style/modal.css +299 -2
  90. package/dist/style/notification.css +299 -2
  91. package/dist/style/pagination.css +299 -2
  92. package/dist/style/popconfirm.css +299 -2
  93. package/dist/style/popover.css +299 -2
  94. package/dist/style/progress.css +299 -2
  95. package/dist/style/radio.css +299 -2
  96. package/dist/style/rate.css +299 -2
  97. package/dist/style/row.css +299 -2
  98. package/dist/style/select.css +299 -2
  99. package/dist/style/slider.css +299 -2
  100. package/dist/style/slottable.css +299 -2
  101. package/dist/style/steps.css +299 -2
  102. package/dist/style/switch.css +299 -2
  103. package/dist/style/table.css +299 -2
  104. package/dist/style/tabs.css +299 -2
  105. package/dist/style/tag.css +299 -2
  106. package/dist/style/text.css +299 -2
  107. package/dist/style/timeline.css +299 -2
  108. package/dist/style/timepicker.css +299 -2
  109. package/dist/style/tooltip.css +299 -2
  110. package/dist/style/tree.css +299 -2
  111. package/dist/style/typography.css +299 -2
  112. package/dist/style/upload.css +299 -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
@@ -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
 
@@ -301,9 +308,7 @@ var render = function () {
301
308
  !_vm.mini &&
302
309
  _vm.totalSeat === "left"
303
310
  ? _c("li", { class: _vm.prefixCls + "-total" }, [
304
- _vm._v("\n "),
305
- _c("b", [_vm._v(_vm._s(_vm.total))]),
306
- _vm._v(" 条\n "),
311
+ _vm._v("\n " + _vm._s(_vm.dispatchTotal) + "\n\n "),
307
312
  ])
308
313
  : _vm._e(),
309
314
  !_vm.simple &&
@@ -494,11 +499,7 @@ var render = function () {
494
499
  staticClass: "total-seat-right",
495
500
  class: _vm.prefixCls + "-total",
496
501
  },
497
- [
498
- _vm._v("\n 共 "),
499
- _c("b", [_vm._v(_vm._s(_vm.total))]),
500
- _vm._v(" 条\n "),
501
- ]
502
+ [_vm._v("\n " + _vm._s(_vm.dispatchTotal) + "\n ")]
502
503
  )
503
504
  : _vm._e(),
504
505
  ],
@@ -541,7 +542,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
541
542
  "div",
542
543
  { class: _vm.prefixCls + "-quick-jumper" },
543
544
  [
544
- _vm._v("\n " + _vm._s(_vm.locale.jump_to) + "\n "),
545
+ _vm._v("\n " + _vm._s(_vm.dispatchJumpTo) + "\n "),
545
546
  _c("mds-input", {
546
547
  attrs: { type: "text" },
547
548
  on: { "press-enter": _vm.handleJump, blur: _vm.blurJump },
@@ -553,7 +554,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
553
554
  expression: "pageText",
554
555
  },
555
556
  }),
556
- _vm._v("\n " + _vm._s(_vm.locale.page) + "\n "),
557
+ _vm._v("\n " + _vm._s(_vm.dispatchPageText) + "\n "),
557
558
  ],
558
559
  1
559
560
  ),
@@ -566,9 +567,13 @@ optionvue_type_template_id_1ad093df_render._withStripped = true
566
567
  // CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=template&id=1ad093df&
567
568
 
568
569
  // EXTERNAL MODULE: external "./input"
569
- var external_input_ = __webpack_require__(16);
570
+ var external_input_ = __webpack_require__(17);
570
571
  var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
571
572
 
573
+ // EXTERNAL MODULE: external "./_mixin/locale"
574
+ var locale_ = __webpack_require__(10);
575
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
576
+
572
577
  // 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
578
  //
574
579
  //
@@ -584,8 +589,10 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
584
589
 
585
590
 
586
591
 
592
+
587
593
  /* harmony default export */ var optionvue_type_script_lang_js_ = ({
588
594
  name: 'MdsPaginationOption',
595
+ mixins: [locale_default.a],
589
596
  props: {
590
597
  calculatePage: {
591
598
  type: Number,
@@ -634,6 +641,14 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
634
641
  currentPage: function currentPage() {
635
642
  this.pageText = this.currentPage;
636
643
  }
644
+ },
645
+ computed: {
646
+ dispatchJumpTo: function dispatchJumpTo() {
647
+ return this.t('mds.pagination.goto');
648
+ },
649
+ dispatchPageText: function dispatchPageText() {
650
+ return this.t('mds.pagination.pageClassifier');
651
+ }
637
652
  }
638
653
  });
639
654
  // CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=script&lang=js&
@@ -681,7 +696,7 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
681
696
  {
682
697
  staticStyle: { width: "120px" },
683
698
  attrs: {
684
- placeholder: "请选择",
699
+ placeholder: _vm.dispatchPlaceholder,
685
700
  value: _vm.newSizeValue,
686
701
  size: "medium",
687
702
  },
@@ -690,8 +705,8 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
690
705
  _vm._l(_vm.pageSizes, function (item) {
691
706
  return _c(
692
707
  "mds-option",
693
- { key: item, attrs: { value: item + "条/页" } },
694
- [_vm._v(_vm._s(item) + "条/页")]
708
+ { key: item, attrs: { value: "" + item + _vm.dispatchPageSize } },
709
+ [_vm._v(_vm._s("" + item + _vm.dispatchPageSize))]
695
710
  )
696
711
  }),
697
712
  1
@@ -722,10 +737,12 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
722
737
  //
723
738
  //
724
739
 
740
+ // import locale from './locale/zh_CN'
725
741
 
726
742
 
727
743
  /* harmony default export */ var changePagevue_type_script_lang_js_ = ({
728
744
  name: 'MdsPaginationOption',
745
+ mixins: [locale_default.a],
729
746
  props: {
730
747
  prefixCls: {
731
748
  type: String,
@@ -744,18 +761,24 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
744
761
  },
745
762
  data: function data() {
746
763
  return {
747
- locale: zh_CN,
748
- sizeValue: this.newSizeValue || this.pageSizes[0] + '条/页'
764
+ // locale,
765
+ sizeValue: this.newSizeValue || this.pageSizes[0] + this.dispatchPageSize
749
766
  };
750
767
  },
751
768
 
752
769
  computed: {
753
770
  newSizeValue: function newSizeValue() {
754
771
  if (this.pageSizes.includes(this.pageSizeNum)) {
755
- return this.pageSizeNum + '条/页';
772
+ return this.pageSizeNum + this.dispatchPageSize;
756
773
  } else {
757
- return this.pageSizes[0] + '条/页';
774
+ return this.pageSizes[0] + this.dispatchPageSize;
758
775
  }
776
+ },
777
+ dispatchPageSize: function dispatchPageSize() {
778
+ return this.t('mds.pagination.pagesize');
779
+ },
780
+ dispatchPlaceholder: function dispatchPlaceholder() {
781
+ return this.t('mds.pagination.placeholder');
759
782
  }
760
783
  },
761
784
  methods: {
@@ -940,6 +963,10 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
940
963
  //
941
964
  //
942
965
  //
966
+ //
967
+ //
968
+ //
969
+
943
970
 
944
971
 
945
972
 
@@ -949,6 +976,7 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
949
976
 
950
977
  /* harmony default export */ var paginationvue_type_script_lang_js_ = ({
951
978
  name: 'MdsPagination',
979
+ mixins: [locale_default.a],
952
980
  props: {
953
981
  controlled: {
954
982
  type: Boolean,
@@ -1020,6 +1048,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
1020
1048
  pageSizesSeat: {
1021
1049
  type: String,
1022
1050
  default: 'left'
1051
+ },
1052
+ totalNum: {
1053
+ type: String
1054
+ },
1055
+ totalPage: {
1056
+ type: String
1023
1057
  }
1024
1058
  },
1025
1059
  data: function data() {
@@ -1095,6 +1129,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
1095
1129
  },
1096
1130
  showJumpPrev: function showJumpPrev() {
1097
1131
  return this.currentPage > 4 && this.calculatePage > 5;
1132
+ },
1133
+ dispatchTotalPage: function dispatchTotalPage() {
1134
+ return this.totalPage || this.t('mds.pagination.totalPage', { total: this.total });
1135
+ },
1136
+ dispatchTotal: function dispatchTotal() {
1137
+ return this.totalNum || this.t('mds.pagination.total', { total: this.total });
1098
1138
  }
1099
1139
  },
1100
1140
  watch: {