@mdsfe/mds-ui 0.2.0 → 0.2.9-rc.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 (131) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/README.md +9 -9
  3. package/dist/_mixin/popper.js +1 -0
  4. package/dist/_util/_popper/dom-helper.js +284 -0
  5. package/dist/_util/_popper/popper-mixin.js +35 -0
  6. package/dist/_util/_popper/popper.js +1267 -0
  7. package/dist/_util/_popper/popup/popup-main.js +224 -0
  8. package/dist/_util/_popper/popup/popup-manager.js +205 -0
  9. package/dist/_util/_popper/vue-popper.js +204 -0
  10. package/dist/_util/popup/index.js +1 -1
  11. package/dist/_util/tree/node.js +2 -0
  12. package/dist/_util/tree/tree.js +65 -21
  13. package/dist/_util/util.js +29 -1
  14. package/dist/affix.js +18 -18
  15. package/dist/anchor.js +18 -18
  16. package/dist/avatar.js +17 -17
  17. package/dist/backtop.js +19 -19
  18. package/dist/badge.js +21 -21
  19. package/dist/bordershadow.js +20 -9
  20. package/dist/breadcrumb.js +18 -18
  21. package/dist/button.js +21 -21
  22. package/dist/card.js +18 -18
  23. package/dist/carousel.js +76 -76
  24. package/dist/cascader.js +4980 -0
  25. package/dist/cascaderpanel.js +645 -603
  26. package/dist/checkbox.js +23 -23
  27. package/dist/col.js +14 -14
  28. package/dist/collapse.js +6 -6
  29. package/dist/color.js +6 -6
  30. package/dist/datepicker.js +2487 -266
  31. package/dist/divider.js +19 -19
  32. package/dist/drawer.js +787 -37
  33. package/dist/dropdown.js +150 -104
  34. package/dist/empty.js +19 -19
  35. package/dist/font/iconfont.28359fa.ttf +0 -0
  36. package/dist/font/iconfont.486e3d3.woff2 +0 -0
  37. package/dist/font/iconfont.675049e.woff +0 -0
  38. package/dist/font.js +6 -6
  39. package/dist/form.js +28 -26
  40. package/dist/icon.js +55 -47
  41. package/dist/index.js +1 -1
  42. package/dist/input.js +65 -49
  43. package/dist/inputnumber.js +59 -39
  44. package/dist/layout.js +25 -25
  45. package/dist/list.js +17 -17
  46. package/dist/loading.js +21 -8
  47. package/dist/mds-ui.min.css +3 -3
  48. package/dist/mds-ui.min.js +19183 -15407
  49. package/dist/menu.js +31 -31
  50. package/dist/message.js +773 -24
  51. package/dist/modal.js +1146 -307
  52. package/dist/notification.js +27 -27
  53. package/dist/pagination.js +78 -55
  54. package/dist/popconfirm.js +36 -36
  55. package/dist/popover.js +2778 -48
  56. package/dist/progress.js +107 -65
  57. package/dist/radio.js +56 -54
  58. package/dist/rate.js +67 -59
  59. package/dist/row.js +14 -14
  60. package/dist/select.js +847 -503
  61. package/dist/slider.js +25 -25
  62. package/dist/slottable.js +2663 -129
  63. package/dist/steps.js +18 -18
  64. package/dist/style/affix.css +224 -2
  65. package/dist/style/anchor.css +224 -2
  66. package/dist/style/avatar.css +224 -2
  67. package/dist/style/badge.css +224 -2
  68. package/dist/style/bordershadow.css +236 -59
  69. package/dist/style/breadcrumb.css +224 -2
  70. package/dist/style/button.css +234 -5
  71. package/dist/style/card.css +224 -2
  72. package/dist/style/carousel.css +224 -2
  73. package/dist/style/cascader.css +214 -0
  74. package/dist/style/cascaderpanel.css +13 -16
  75. package/dist/style/checkbox.css +230 -8
  76. package/dist/style/col.css +225 -3
  77. package/dist/style/collapse.css +224 -2
  78. package/dist/style/color.css +224 -2
  79. package/dist/style/datepicker.css +236 -2
  80. package/dist/style/divider.css +227 -2
  81. package/dist/style/drawer.css +224 -2
  82. package/dist/style/dropdown.css +234 -5
  83. package/dist/style/empty.css +224 -2
  84. package/dist/style/font.css +226 -4
  85. package/dist/style/form.css +224 -2
  86. package/dist/style/icon.css +226 -3
  87. package/dist/style/input.css +231 -5
  88. package/dist/style/inputnumber.css +224 -2
  89. package/dist/style/layout.css +224 -2
  90. package/dist/style/list.css +224 -2
  91. package/dist/style/loading.css +2527 -2
  92. package/dist/style/menu.css +340 -129
  93. package/dist/style/message.css +1 -4
  94. package/dist/style/modal.css +247 -25
  95. package/dist/style/notification.css +224 -2
  96. package/dist/style/pagination.css +236 -7
  97. package/dist/style/popconfirm.css +334 -180
  98. package/dist/style/popover.css +324 -177
  99. package/dist/style/progress.css +226 -3
  100. package/dist/style/radio.css +225 -3
  101. package/dist/style/rate.css +226 -3
  102. package/dist/style/row.css +225 -3
  103. package/dist/style/select.css +240 -12
  104. package/dist/style/slider.css +224 -2
  105. package/dist/style/slottable.css +350 -149
  106. package/dist/style/steps.css +224 -2
  107. package/dist/style/switch.css +224 -2
  108. package/dist/style/table.css +458 -314
  109. package/dist/style/tabs.css +225 -18
  110. package/dist/style/tag.css +224 -2
  111. package/dist/style/text.css +224 -2
  112. package/dist/style/timeline.css +224 -2
  113. package/dist/style/timepicker.css +231 -6
  114. package/dist/style/tooltip.css +340 -129
  115. package/dist/style/tree.css +228 -6
  116. package/dist/style/typography.css +224 -2
  117. package/dist/style/upload.css +224 -2
  118. package/dist/switch.js +20 -20
  119. package/dist/table.js +3071 -201
  120. package/dist/tabs.js +24 -22
  121. package/dist/tag.js +17 -23
  122. package/dist/text.js +38 -22
  123. package/dist/timeline.js +14 -14
  124. package/dist/timepicker.js +3063 -172
  125. package/dist/tooltip.js +2550 -27
  126. package/dist/transfer.js +28 -28
  127. package/dist/transition.js +6 -6
  128. package/dist/tree.js +316 -171
  129. package/dist/typography.js +6 -6
  130. package/dist/upload.js +46 -38
  131. package/package.json +9 -5
package/dist/radio.js CHANGED
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("./_util/proptype"), require("./_mixin/emitter")) : factory(root["./_util/proptype"], root["./_mixin/emitter"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__6__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__12__) {
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 = 103);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,49 +203,7 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 1:
207
- /***/ (function(module, exports) {
208
-
209
- module.exports = require("babel-runtime/helpers/defineProperty");
210
-
211
- /***/ }),
212
-
213
- /***/ 131:
214
- /***/ (function(module, exports) {
215
-
216
- // removed by extract-text-webpack-plugin
217
-
218
- /***/ }),
219
-
220
- /***/ 197:
221
- /***/ (function(module, exports) {
222
-
223
- // removed by extract-text-webpack-plugin
224
-
225
- /***/ }),
226
-
227
- /***/ 3:
228
- /***/ (function(module, exports) {
229
-
230
- module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
231
-
232
- /***/ }),
233
-
234
- /***/ 6:
235
- /***/ (function(module, exports) {
236
-
237
- module.exports = __WEBPACK_EXTERNAL_MODULE__6__;
238
-
239
- /***/ }),
240
-
241
- /***/ 8:
242
- /***/ (function(module, exports) {
243
-
244
- module.exports = require("babel-runtime/helpers/typeof");
245
-
246
- /***/ }),
247
-
248
- /***/ 95:
206
+ /***/ 103:
249
207
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
250
208
 
251
209
  "use strict";
@@ -253,10 +211,10 @@ module.exports = require("babel-runtime/helpers/typeof");
253
211
  __webpack_require__.r(__webpack_exports__);
254
212
 
255
213
  // EXTERNAL MODULE: ./components/style/index.less
256
- var style = __webpack_require__(131);
214
+ var style = __webpack_require__(139);
257
215
 
258
216
  // EXTERNAL MODULE: ./components/radio/style/index.less
259
- var radio_style = __webpack_require__(197);
217
+ var radio_style = __webpack_require__(207);
260
218
 
261
219
  // CONCATENATED MODULE: ./components/radio/style/index.js
262
220
 
@@ -298,7 +256,7 @@ radiovue_type_template_id_0cfde37c_render._withStripped = true
298
256
  // CONCATENATED MODULE: ./components/radio/radio.vue?vue&type=template&id=0cfde37c&
299
257
 
300
258
  // EXTERNAL MODULE: external "babel-runtime/helpers/defineProperty"
301
- var defineProperty_ = __webpack_require__(1);
259
+ var defineProperty_ = __webpack_require__(3);
302
260
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
303
261
 
304
262
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/radio/radio.vue?vue&type=script&lang=js&
@@ -507,14 +465,14 @@ groupvue_type_template_id_23243800_render._withStripped = true
507
465
  // CONCATENATED MODULE: ./components/radio/group.vue?vue&type=template&id=23243800&
508
466
 
509
467
  // EXTERNAL MODULE: external "babel-runtime/helpers/typeof"
510
- var typeof_ = __webpack_require__(8);
468
+ var typeof_ = __webpack_require__(9);
511
469
  var typeof_default = /*#__PURE__*/__webpack_require__.n(typeof_);
512
470
 
513
471
  // EXTERNAL MODULE: external "./_util/proptype"
514
- var proptype_ = __webpack_require__(3);
472
+ var proptype_ = __webpack_require__(7);
515
473
 
516
474
  // EXTERNAL MODULE: external "./_mixin/emitter"
517
- var emitter_ = __webpack_require__(6);
475
+ var emitter_ = __webpack_require__(12);
518
476
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
519
477
 
520
478
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/radio/group.vue?vue&type=script&lang=js&
@@ -595,16 +553,18 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
595
553
  this.initValueList();
596
554
  if (val === this.value) {
597
555
  this.$nextTick(function () {
598
- _this.change(val);
556
+ _this.change(val, true);
599
557
  });
600
558
  }
601
559
  },
602
- change: function change(val) {
560
+ change: function change(val, firstRenderFlag) {
603
561
  // 在子组件调用,点击子组件,当其父组件为groupRadio时,会出发此事件
604
562
  this.currentValue = val;
605
563
  this.judge();
606
564
  this.$emit('input', val);
607
- this.$emit('change', this.currentValue);
565
+ if (!firstRenderFlag) {
566
+ this.$emit('change', this.currentValue);
567
+ }
608
568
  this.dispatch('MdsFormItem', 'formItemChange', val);
609
569
  },
610
570
  initValueList: function initValueList() {
@@ -754,6 +714,48 @@ radio_radio.install = function (Vue) {
754
714
  };
755
715
  /* harmony default export */ var components_radio = __webpack_exports__["default"] = (radio_radio);
756
716
 
717
+ /***/ }),
718
+
719
+ /***/ 12:
720
+ /***/ (function(module, exports) {
721
+
722
+ module.exports = __WEBPACK_EXTERNAL_MODULE__12__;
723
+
724
+ /***/ }),
725
+
726
+ /***/ 139:
727
+ /***/ (function(module, exports) {
728
+
729
+ // removed by extract-text-webpack-plugin
730
+
731
+ /***/ }),
732
+
733
+ /***/ 207:
734
+ /***/ (function(module, exports) {
735
+
736
+ // removed by extract-text-webpack-plugin
737
+
738
+ /***/ }),
739
+
740
+ /***/ 3:
741
+ /***/ (function(module, exports) {
742
+
743
+ module.exports = require("babel-runtime/helpers/defineProperty");
744
+
745
+ /***/ }),
746
+
747
+ /***/ 7:
748
+ /***/ (function(module, exports) {
749
+
750
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
751
+
752
+ /***/ }),
753
+
754
+ /***/ 9:
755
+ /***/ (function(module, exports) {
756
+
757
+ module.exports = require("babel-runtime/helpers/typeof");
758
+
757
759
  /***/ })
758
760
 
759
761
  /******/ });