@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
@@ -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 = 108);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 116);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,7 +203,7 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 108:
206
+ /***/ 116:
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__(131);
214
+ var style = __webpack_require__(139);
215
215
 
216
216
  // EXTERNAL MODULE: ./components/typography/style/index.less
217
- var typography_style = __webpack_require__(253);
217
+ var typography_style = __webpack_require__(262);
218
218
 
219
219
  // CONCATENATED MODULE: ./components/typography/style/index.js
220
220
 
@@ -451,14 +451,14 @@ typography.install = function (Vue) {
451
451
 
452
452
  /***/ }),
453
453
 
454
- /***/ 131:
454
+ /***/ 139:
455
455
  /***/ (function(module, exports) {
456
456
 
457
457
  // removed by extract-text-webpack-plugin
458
458
 
459
459
  /***/ }),
460
460
 
461
- /***/ 253:
461
+ /***/ 262:
462
462
  /***/ (function(module, exports) {
463
463
 
464
464
  // removed by extract-text-webpack-plugin
package/dist/upload.js CHANGED
@@ -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 = 81);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 88);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,56 +203,63 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 12:
206
+ /***/ 10:
207
207
  /***/ (function(module, exports) {
208
208
 
209
209
  module.exports = require("babel-runtime/core-js/object/keys");
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 131:
213
+ /***/ 139:
214
214
  /***/ (function(module, exports) {
215
215
 
216
216
  // removed by extract-text-webpack-plugin
217
217
 
218
218
  /***/ }),
219
219
 
220
- /***/ 147:
220
+ /***/ 159:
221
221
  /***/ (function(module, exports) {
222
222
 
223
223
  // removed by extract-text-webpack-plugin
224
224
 
225
225
  /***/ }),
226
226
 
227
- /***/ 19:
227
+ /***/ 23:
228
228
  /***/ (function(module, exports) {
229
229
 
230
- module.exports = require("babel-runtime/helpers/extends");
230
+ module.exports = require("babel-runtime/core-js/get-iterator");
231
231
 
232
232
  /***/ }),
233
233
 
234
- /***/ 20:
234
+ /***/ 26:
235
235
  /***/ (function(module, exports) {
236
236
 
237
- module.exports = require("babel-runtime/core-js/get-iterator");
237
+ module.exports = require("babel-runtime/helpers/extends");
238
238
 
239
239
  /***/ }),
240
240
 
241
- /***/ 52:
241
+ /***/ 57:
242
242
  /***/ (function(module, exports) {
243
243
 
244
244
  module.exports = require("axios");
245
245
 
246
246
  /***/ }),
247
247
 
248
- /***/ 60:
248
+ /***/ 6:
249
+ /***/ (function(module, exports) {
250
+
251
+ module.exports = require("babel-runtime/core-js/object/assign");
252
+
253
+ /***/ }),
254
+
255
+ /***/ 65:
249
256
  /***/ (function(module, exports) {
250
257
 
251
258
  module.exports = require("babel-runtime/core-js/object/values");
252
259
 
253
260
  /***/ }),
254
261
 
255
- /***/ 81:
262
+ /***/ 88:
256
263
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
257
264
 
258
265
  "use strict";
@@ -260,10 +267,10 @@ module.exports = require("babel-runtime/core-js/object/values");
260
267
  __webpack_require__.r(__webpack_exports__);
261
268
 
262
269
  // EXTERNAL MODULE: ./components/style/index.less
263
- var style = __webpack_require__(131);
270
+ var style = __webpack_require__(139);
264
271
 
265
272
  // EXTERNAL MODULE: ./components/upload/style/index.less
266
- var upload_style = __webpack_require__(147);
273
+ var upload_style = __webpack_require__(159);
267
274
 
268
275
  // CONCATENATED MODULE: ./components/upload/style/index.js
269
276
 
@@ -306,6 +313,7 @@ var render = function () {
306
313
  onReUploadList: _vm.onReUploadList,
307
314
  dragable: _vm.dragable,
308
315
  handleDropFile: _vm.handleDropFile,
316
+ preview: _vm.preview,
309
317
  },
310
318
  },
311
319
  [
@@ -327,27 +335,27 @@ render._withStripped = true
327
335
  // CONCATENATED MODULE: ./components/upload/entry.vue?vue&type=template&id=4899ef9f&
328
336
 
329
337
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/keys"
330
- var keys_ = __webpack_require__(12);
338
+ var keys_ = __webpack_require__(10);
331
339
  var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
332
340
 
333
341
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/assign"
334
- var assign_ = __webpack_require__(9);
342
+ var assign_ = __webpack_require__(6);
335
343
  var assign_default = /*#__PURE__*/__webpack_require__.n(assign_);
336
344
 
337
345
  // EXTERNAL MODULE: external "babel-runtime/core-js/get-iterator"
338
- var get_iterator_ = __webpack_require__(20);
346
+ var get_iterator_ = __webpack_require__(23);
339
347
  var get_iterator_default = /*#__PURE__*/__webpack_require__.n(get_iterator_);
340
348
 
341
349
  // EXTERNAL MODULE: external "babel-runtime/core-js/object/values"
342
- var values_ = __webpack_require__(60);
350
+ var values_ = __webpack_require__(65);
343
351
  var values_default = /*#__PURE__*/__webpack_require__.n(values_);
344
352
 
345
353
  // EXTERNAL MODULE: external "babel-runtime/helpers/extends"
346
- var extends_ = __webpack_require__(19);
354
+ var extends_ = __webpack_require__(26);
347
355
  var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
348
356
 
349
357
  // EXTERNAL MODULE: external "axios"
350
- var external_axios_ = __webpack_require__(52);
358
+ var external_axios_ = __webpack_require__(57);
351
359
  var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
352
360
 
353
361
  // CONCATENATED MODULE: ./components/upload/attr-accept.js
@@ -719,10 +727,10 @@ var traverseFileTree_traverseFileTree = function traverseFileTree(files, callbac
719
727
 
720
728
  // console.log('on choose file')
721
729
  // console.log(e.target.files)
722
-
723
730
  var filesLength = e.target.files.length;
724
731
  if (this.limit && filesLength + this.uploadList.length > +this.limit) {
725
732
  this.onExceed && this.onExceed(e.target.files, this.uploadList);
733
+ e.target.value = '';
726
734
  return;
727
735
  }
728
736
 
@@ -745,12 +753,6 @@ var traverseFileTree_traverseFileTree = function traverseFileTree(files, callbac
745
753
  e.target.value = '';
746
754
  }
747
755
  },
748
- /**
749
- * life cycle
750
- */
751
- beforeDestroy: function beforeDestroy() {},
752
- created: function created() {},
753
-
754
756
  computed: {
755
757
  classes: function classes() {
756
758
  var prefixCls = this.prefixCls;
@@ -920,6 +922,7 @@ var upload_listvue_type_template_id_d345f752_render = function () {
920
922
  item: item,
921
923
  index: index,
922
924
  changeModal: _vm.changeModal,
925
+ preview: _vm.preview,
923
926
  },
924
927
  },
925
928
  [
@@ -1042,7 +1045,7 @@ var upload_cardvue_type_template_id_45aa45c9_render = function () {
1042
1045
  },
1043
1046
  },
1044
1047
  [
1045
- _vm.item.status == "done"
1048
+ _vm.item.status == "done" && _vm.preview
1046
1049
  ? _c("mds-icon", {
1047
1050
  class: _vm.prefixCls + "-card-eyes",
1048
1051
  attrs: { type: "line-eye", "data-id": "view" },
@@ -1129,7 +1132,8 @@ upload_cardvue_type_template_id_45aa45c9_render._withStripped = true
1129
1132
  props: {
1130
1133
  handleDelete: Function,
1131
1134
  item: Object,
1132
- changeModal: Function
1135
+ changeModal: Function,
1136
+ preview: Boolean
1133
1137
  },
1134
1138
  data: function data() {
1135
1139
  return {
@@ -1706,6 +1710,7 @@ upload_dragger_component.options.__file = "components/upload/upload-dragger.vue"
1706
1710
  //
1707
1711
  //
1708
1712
  //
1713
+ //
1709
1714
 
1710
1715
 
1711
1716
 
@@ -1724,7 +1729,8 @@ upload_dragger_component.options.__file = "components/upload/upload-dragger.vue"
1724
1729
  onReUploadList: Function,
1725
1730
  dragable: Boolean,
1726
1731
  handleDropFile: Function,
1727
- fileList: Array // 上传的文件列表
1732
+ fileList: Array, // 上传的文件列表
1733
+ preview: Boolean
1728
1734
  },
1729
1735
  data: function data() {
1730
1736
  return {
@@ -1855,6 +1861,7 @@ upload_list_component.options.__file = "components/upload/upload-list.vue"
1855
1861
  //
1856
1862
  //
1857
1863
  //
1864
+ //
1858
1865
 
1859
1866
 
1860
1867
 
@@ -1878,8 +1885,11 @@ upload_list_component.options.__file = "components/upload/upload-list.vue"
1878
1885
  onChange: Function,
1879
1886
  listType: String,
1880
1887
  dragable: Boolean,
1881
- fileList: Array // 上传的文件列表
1882
- },
1888
+ fileList: Array, // 上传的文件列表
1889
+ preview: {
1890
+ type: Boolean,
1891
+ default: true // 是否允许预览
1892
+ } },
1883
1893
  data: function data() {
1884
1894
  return {
1885
1895
  prefixCls: 'mds-upload',
@@ -1913,11 +1923,16 @@ upload_list_component.options.__file = "components/upload/upload-list.vue"
1913
1923
  }
1914
1924
  },
1915
1925
  methods: {
1926
+ clearFiles: function clearFiles() {
1927
+ this.uploadList = [];
1928
+ this.onChange && this.onChange(this.uploadList);
1929
+ },
1916
1930
  onUploadClick: function onUploadClick() {
1917
1931
  this.$refs.uploader.onUploadClick();
1918
1932
  },
1919
1933
  onListChange: function onListChange(list) {
1920
1934
  this.uploadList = list;
1935
+ this.onChange && this.onChange(this.uploadList);
1921
1936
  },
1922
1937
  onCancelList: function onCancelList(list) {
1923
1938
  this.$refs.uploader.cancelUploadByList(list);
@@ -1977,13 +1992,6 @@ entry.install = function (Vue) {
1977
1992
 
1978
1993
  /* harmony default export */ var components_upload = __webpack_exports__["default"] = (entry);
1979
1994
 
1980
- /***/ }),
1981
-
1982
- /***/ 9:
1983
- /***/ (function(module, exports) {
1984
-
1985
- module.exports = require("babel-runtime/core-js/object/assign");
1986
-
1987
1995
  /***/ })
1988
1996
 
1989
1997
  /******/ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdsfe/mds-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.9-rc.1",
4
4
  "description": "A set of enterprise-class Vue UI components.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -53,7 +53,6 @@
53
53
  "babel-cli": "^6.26.0",
54
54
  "babel-core": "^6.26.0",
55
55
  "babel-eslint": "^8.2.6",
56
- "babel-helper-vue-jsx-merge-props": "^2.0.3",
57
56
  "babel-jest": "^21.0.2",
58
57
  "babel-loader": "^7.1.5",
59
58
  "babel-plugin-dynamic-import-node": "^2.3.0",
@@ -102,6 +101,7 @@
102
101
  "typescript": "^3.7.2",
103
102
  "uppercamelcase": "^3.0.0",
104
103
  "url-loader": "^0.5.9",
104
+ "vue": "2.6.11",
105
105
  "vue-clipboard2": "^0.3.0",
106
106
  "vue-jest": "^3.0.5",
107
107
  "vue-loader": "^15.7.0",
@@ -109,7 +109,7 @@
109
109
  "vue-router": "^2.7.0",
110
110
  "vue-server-renderer": "2.6.8",
111
111
  "vue-style-loader": "^3.0.1",
112
- "vue-template-compiler": "2.6.8",
112
+ "vue-template-compiler": "2.6.11",
113
113
  "webpack": "^4.29.6",
114
114
  "webpack-bundle-analyzer": "^3.1.0",
115
115
  "webpack-cli": "^3.2.3",
@@ -128,13 +128,17 @@
128
128
  "dependencies": {
129
129
  "async-validator": "^4.0.2",
130
130
  "axios": "^0.19.2",
131
+ "babel-helper-vue-jsx-merge-props": "^2.0.3",
131
132
  "babel-runtime": "6.x",
133
+ "conventional-changelog-cli": "^2.2.2",
132
134
  "lodash.debounce": "^4.0.8",
133
135
  "moment": "^2.24.0",
134
136
  "popper.js": "^1.14.7",
135
137
  "resize-observer-polyfill": "^1.5.1",
136
- "throttle-debounce": "^2.1.0",
137
- "vue": "2.6.8"
138
+ "throttle-debounce": "^2.1.0"
139
+ },
140
+ "peerDependencies": {
141
+ "vue": "^2.6.11"
138
142
  },
139
143
  "config": {
140
144
  "commitizen": {