@mdsfe/mds-ui 0.3.0-2 → 0.3.0-20

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 (107) hide show
  1. package/CHANGELOG.md +1013 -0
  2. package/dist/_util/iconfont/index.js +7 -7
  3. package/dist/anchor.js +2 -2
  4. package/dist/bordershadow.js +2 -2
  5. package/dist/breadcrumb.js +2 -2
  6. package/dist/card.js +2 -2
  7. package/dist/carousel.js +18 -18
  8. package/dist/cascader.js +26 -26
  9. package/dist/cascaderpanel.js +30 -30
  10. package/dist/checkbox.js +6 -6
  11. package/dist/col.js +10 -10
  12. package/dist/collapse.js +2 -2
  13. package/dist/datepicker.js +644 -222
  14. package/dist/divider.js +2 -2
  15. package/dist/drawer.js +17 -17
  16. package/dist/dropdown.js +6 -6
  17. package/dist/empty.js +11 -11
  18. package/dist/font/iconfont.ba42e6f.woff +0 -0
  19. package/dist/font/{iconfont.36c3afe.ttf → iconfont.bf5c999.ttf} +0 -0
  20. package/dist/font/iconfont.d8e6666.woff2 +0 -0
  21. package/dist/form.js +8 -8
  22. package/dist/index.js +1 -1
  23. package/dist/input.js +207 -54
  24. package/dist/inputnumber.js +4 -4
  25. package/dist/list.js +2 -2
  26. package/dist/loading.js +2 -2
  27. package/dist/mds-ui.min.css +1 -1
  28. package/dist/mds-ui.min.js +2037 -912
  29. package/dist/menu.js +23 -4
  30. package/dist/message.js +12 -12
  31. package/dist/modal.js +8 -8
  32. package/dist/notification.js +6 -6
  33. package/dist/pagination.js +17 -13
  34. package/dist/popconfirm.js +13 -13
  35. package/dist/popover.js +20 -20
  36. package/dist/radio.js +14 -14
  37. package/dist/rate.js +8 -8
  38. package/dist/row.js +10 -10
  39. package/dist/select.js +31 -31
  40. package/dist/slider.js +2 -2
  41. package/dist/slottable.js +19 -19
  42. package/dist/style/affix.css +382 -1
  43. package/dist/style/alert.css +382 -1
  44. package/dist/style/anchor.css +382 -1
  45. package/dist/style/avatar.css +382 -1
  46. package/dist/style/badge.css +382 -1
  47. package/dist/style/bordershadow.css +382 -1
  48. package/dist/style/breadcrumb.css +382 -1
  49. package/dist/style/button.css +382 -1
  50. package/dist/style/card.css +382 -1
  51. package/dist/style/carousel.css +382 -1
  52. package/dist/style/checkbox.css +382 -1
  53. package/dist/style/col.css +382 -1
  54. package/dist/style/collapse.css +382 -1
  55. package/dist/style/color.css +382 -1
  56. package/dist/style/datepicker.css +442 -1
  57. package/dist/style/divider.css +382 -1
  58. package/dist/style/drawer.css +382 -1
  59. package/dist/style/dropdown.css +382 -1
  60. package/dist/style/empty.css +382 -1
  61. package/dist/style/font.css +382 -1
  62. package/dist/style/form.css +382 -1
  63. package/dist/style/icon.css +382 -1
  64. package/dist/style/input.css +402 -7
  65. package/dist/style/inputnumber.css +382 -1
  66. package/dist/style/layout.css +382 -1
  67. package/dist/style/list.css +382 -1
  68. package/dist/style/loading.css +382 -1
  69. package/dist/style/menu.css +382 -1
  70. package/dist/style/modal.css +382 -1
  71. package/dist/style/notification.css +382 -1
  72. package/dist/style/pagination.css +402 -7
  73. package/dist/style/popconfirm.css +382 -1
  74. package/dist/style/popover.css +382 -1
  75. package/dist/style/progress.css +382 -1
  76. package/dist/style/radio.css +382 -1
  77. package/dist/style/rate.css +382 -1
  78. package/dist/style/row.css +382 -1
  79. package/dist/style/select.css +382 -1
  80. package/dist/style/slider.css +382 -1
  81. package/dist/style/slottable.css +382 -1
  82. package/dist/style/steps.css +382 -1
  83. package/dist/style/switch.css +382 -1
  84. package/dist/style/table.css +382 -1
  85. package/dist/style/tabs.css +382 -1
  86. package/dist/style/tag.css +382 -1
  87. package/dist/style/text.css +382 -1
  88. package/dist/style/timeline.css +382 -1
  89. package/dist/style/timepicker.css +382 -1
  90. package/dist/style/tooltip.css +382 -1
  91. package/dist/style/transfer.css +105 -0
  92. package/dist/style/tree.css +382 -1
  93. package/dist/style/typography.css +382 -1
  94. package/dist/style/upload.css +382 -1
  95. package/dist/switch.js +4 -4
  96. package/dist/table.js +27 -27
  97. package/dist/text.js +207 -54
  98. package/dist/timeline.js +2 -2
  99. package/dist/timepicker.js +32 -32
  100. package/dist/tooltip.js +19 -19
  101. package/dist/transfer.js +976 -22
  102. package/dist/tree.js +26 -26
  103. package/dist/typography.js +2 -2
  104. package/dist/upload.js +11 -11
  105. package/package.json +2 -1
  106. package/dist/font/iconfont.50be7d0.woff2 +0 -0
  107. package/dist/font/iconfont.f586f3d.woff +0 -0
package/dist/input.js CHANGED
@@ -1,10 +1,10 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./icon"), require("./_util/proptype"), require("./_mixin/emitter"), require("./button"));
3
+ module.exports = factory(require("./icon"), require("./_util/proptype"), require("./button"), require("./_mixin/emitter"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./icon", "./_util/proptype", "./_mixin/emitter", "./button"], factory);
5
+ define(["./icon", "./_util/proptype", "./button", "./_mixin/emitter"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("./icon"), require("./_util/proptype"), require("./_mixin/emitter"), require("./button")) : factory(root["./icon"], root["./_util/proptype"], root["./_mixin/emitter"], root["./button"]);
7
+ var a = typeof exports === 'object' ? factory(require("./icon"), require("./_util/proptype"), require("./button"), require("./_mixin/emitter")) : factory(root["./icon"], root["./_util/proptype"], root["./button"], root["./_mixin/emitter"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
10
  })(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__14__) {
@@ -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 = 109);
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
- /***/ 109:
206
+ /***/ 110:
207
207
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
208
 
209
209
  "use strict";
@@ -225,7 +225,7 @@ var external_icon_ = __webpack_require__(7);
225
225
  var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
226
226
 
227
227
  // EXTERNAL MODULE: external "./_mixin/emitter"
228
- var emitter_ = __webpack_require__(13);
228
+ var emitter_ = __webpack_require__(14);
229
229
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
230
230
 
231
231
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/input/input.vue?vue&type=script&lang=js&
@@ -548,7 +548,7 @@ if (false) { var api; }
548
548
  component.options.__file = "components/input/input.vue"
549
549
  /* harmony default export */ var input = (component.exports);
550
550
  // EXTERNAL MODULE: external "./button"
551
- var external_button_ = __webpack_require__(14);
551
+ var external_button_ = __webpack_require__(13);
552
552
  var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
553
553
 
554
554
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/input/search.vue?vue&type=script&lang=js&
@@ -851,51 +851,150 @@ var render = function () {
851
851
  "div",
852
852
  { class: _vm.prefixCls + "-content " + (_vm.disabled ? "disable" : "") },
853
853
  [
854
- _c("textarea", {
855
- directives: [
856
- {
857
- name: "model",
858
- rawName: "v-model",
859
- value: _vm.valueData,
860
- expression: "valueData",
861
- },
862
- ],
863
- ref: "textAreaRef",
864
- class: [
865
- _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
866
- _vm.disabled ? "mds-input-disabled" : "",
867
- ],
868
- style: _vm.textareaStyles,
869
- attrs: {
870
- maxlength: _vm.max_length,
871
- minlength: _vm.min_length,
872
- rows: _vm.rows,
873
- placeholder: _vm.placeholder,
874
- disabled: _vm.disabled,
875
- },
876
- domProps: { value: _vm.valueData },
877
- on: {
878
- input: [
879
- function ($event) {
880
- if ($event.target.composing) {
881
- return
882
- }
883
- _vm.valueData = $event.target.value
884
- },
885
- _vm.handleInput,
886
- ],
887
- keypress: _vm.handleKeyDown,
888
- change: _vm.handleChange,
889
- focus: _vm.handleFocus,
890
- blur: _vm.handleBlur,
891
- },
892
- }),
893
- _vm.showLimit && _vm.max_length
894
- ? _c("span", { class: _vm.prefixCls + "-show-limit" }, [
895
- _vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length)),
854
+ _vm.showLimitPosition === "inside"
855
+ ? _c("div", { staticClass: "mds-input-textarea-wrapper" }, [
856
+ _c("textarea", {
857
+ directives: [
858
+ {
859
+ name: "model",
860
+ rawName: "v-model",
861
+ value: _vm.valueData,
862
+ expression: "valueData",
863
+ },
864
+ ],
865
+ ref: "textAreaRef",
866
+ class: [
867
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
868
+ _vm.disabled ? "mds-input-disabled" : "",
869
+ ],
870
+ style: _vm.textareaStyles,
871
+ attrs: {
872
+ maxlength: _vm.max_length,
873
+ minlength: _vm.min_length,
874
+ rows: _vm.rows,
875
+ placeholder: _vm.placeholder,
876
+ disabled: _vm.disabled,
877
+ },
878
+ domProps: { value: _vm.valueData },
879
+ on: {
880
+ input: [
881
+ function ($event) {
882
+ if ($event.target.composing) {
883
+ return
884
+ }
885
+ _vm.valueData = $event.target.value
886
+ },
887
+ _vm.handleInput,
888
+ ],
889
+ keypress: _vm.handleKeyDown,
890
+ change: _vm.handleChange,
891
+ focus: _vm.handleFocus,
892
+ blur: _vm.handleBlur,
893
+ },
894
+ }),
895
+ _vm.max_length
896
+ ? _c(
897
+ "span",
898
+ {
899
+ class: [
900
+ "mds-input-show-limit",
901
+ "mds-input-show-limit--inside",
902
+ ],
903
+ },
904
+ [_vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length))]
905
+ )
906
+ : _vm._e(),
896
907
  ])
897
- : _vm._e(),
898
- ]
908
+ : _vm.showLimitPosition === "outside"
909
+ ? [
910
+ _c("textarea", {
911
+ directives: [
912
+ {
913
+ name: "model",
914
+ rawName: "v-model",
915
+ value: _vm.valueData,
916
+ expression: "valueData",
917
+ },
918
+ ],
919
+ ref: "textAreaRef",
920
+ class: [
921
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
922
+ _vm.disabled ? "mds-input-disabled" : "",
923
+ ],
924
+ style: _vm.textareaStyles,
925
+ attrs: {
926
+ maxlength: _vm.max_length,
927
+ minlength: _vm.min_length,
928
+ rows: _vm.rows,
929
+ placeholder: _vm.placeholder,
930
+ disabled: _vm.disabled,
931
+ },
932
+ domProps: { value: _vm.valueData },
933
+ on: {
934
+ input: [
935
+ function ($event) {
936
+ if ($event.target.composing) {
937
+ return
938
+ }
939
+ _vm.valueData = $event.target.value
940
+ },
941
+ _vm.handleInput,
942
+ ],
943
+ keypress: _vm.handleKeyDown,
944
+ change: _vm.handleChange,
945
+ focus: _vm.handleFocus,
946
+ blur: _vm.handleBlur,
947
+ },
948
+ }),
949
+ _vm.max_length
950
+ ? _c("span", { class: ["mds-input-show-limit"] }, [
951
+ _vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length)),
952
+ ])
953
+ : _vm._e(),
954
+ ]
955
+ : [
956
+ _c("textarea", {
957
+ directives: [
958
+ {
959
+ name: "model",
960
+ rawName: "v-model",
961
+ value: _vm.valueData,
962
+ expression: "valueData",
963
+ },
964
+ ],
965
+ ref: "textAreaRef",
966
+ class: [
967
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
968
+ _vm.disabled ? "mds-input-disabled" : "",
969
+ ],
970
+ style: _vm.textareaStyles,
971
+ attrs: {
972
+ maxlength: _vm.max_length,
973
+ minlength: _vm.min_length,
974
+ rows: _vm.rows,
975
+ placeholder: _vm.placeholder,
976
+ disabled: _vm.disabled,
977
+ },
978
+ domProps: { value: _vm.valueData },
979
+ on: {
980
+ input: [
981
+ function ($event) {
982
+ if ($event.target.composing) {
983
+ return
984
+ }
985
+ _vm.valueData = $event.target.value
986
+ },
987
+ _vm.handleInput,
988
+ ],
989
+ keypress: _vm.handleKeyDown,
990
+ change: _vm.handleChange,
991
+ focus: _vm.handleFocus,
992
+ blur: _vm.handleBlur,
993
+ },
994
+ }),
995
+ ],
996
+ ],
997
+ 2
899
998
  )
900
999
  }
901
1000
  var staticRenderFns = []
@@ -1028,7 +1127,7 @@ function calculateNodeHeight(uiTextNode) {
1028
1127
  return { height: height + 'px', minHeight: minHeight + 'px', maxHeight: maxHeight + 'px', overflowY: overflowY };
1029
1128
  }
1030
1129
  // EXTERNAL MODULE: external "./_mixin/emitter"
1031
- var emitter_ = __webpack_require__(13);
1130
+ var emitter_ = __webpack_require__(14);
1032
1131
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1033
1132
 
1034
1133
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/input/textarea.vue?vue&type=script&lang=js&
@@ -1059,6 +1158,55 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1059
1158
  //
1060
1159
  //
1061
1160
  //
1161
+ //
1162
+ //
1163
+ //
1164
+ //
1165
+ //
1166
+ //
1167
+ //
1168
+ //
1169
+ //
1170
+ //
1171
+ //
1172
+ //
1173
+ //
1174
+ //
1175
+ //
1176
+ //
1177
+ //
1178
+ //
1179
+ //
1180
+ //
1181
+ //
1182
+ //
1183
+ //
1184
+ //
1185
+ //
1186
+ //
1187
+ //
1188
+ //
1189
+ //
1190
+ //
1191
+ //
1192
+ //
1193
+ //
1194
+ //
1195
+ //
1196
+ //
1197
+ //
1198
+ //
1199
+ //
1200
+ //
1201
+ //
1202
+ //
1203
+ //
1204
+ //
1205
+ //
1206
+ //
1207
+ //
1208
+ //
1209
+ //
1062
1210
 
1063
1211
 
1064
1212
 
@@ -1101,8 +1249,8 @@ function clearNextFrameAction(nextFrameId) {
1101
1249
  default: 4
1102
1250
  },
1103
1251
  showLimit: {
1104
- type: Boolean,
1105
- default: false
1252
+ type: [Boolean, String],
1253
+ default: undefined
1106
1254
  },
1107
1255
  placeholder: {
1108
1256
  type: String,
@@ -1135,6 +1283,11 @@ function clearNextFrameAction(nextFrameId) {
1135
1283
  },
1136
1284
  min_length: function min_length() {
1137
1285
  return this.$attrs.minlength || this.minlength;
1286
+ },
1287
+ showLimitPosition: function showLimitPosition() {
1288
+ if (this.showLimit === 'outside') return 'outside';
1289
+ if (this.showLimit === true || this.showLimit === 'inside') return 'inside';
1290
+ return null; // 不显示
1138
1291
  }
1139
1292
  },
1140
1293
  watch: {
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("./icon"), require("./_mixin/emitter"), require("./input")) : factory(root["./icon"], root["./_mixin/emitter"], 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__7__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__17__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__14__, __WEBPACK_EXTERNAL_MODULE__17__) {
11
11
  return /******/ (function(modules) { // webpackBootstrap
12
12
  /******/ // The module cache
13
13
  /******/ var installedModules = {};
@@ -396,7 +396,7 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
396
396
  }
397
397
  });
398
398
  // EXTERNAL MODULE: external "./_mixin/emitter"
399
- var emitter_ = __webpack_require__(13);
399
+ var emitter_ = __webpack_require__(14);
400
400
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
401
401
 
402
402
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/inputnumber/inputnumber.vue?vue&type=script&lang=js&
@@ -670,10 +670,10 @@ inputnumber.install = function (Vue) {
670
670
 
671
671
  /***/ }),
672
672
 
673
- /***/ 13:
673
+ /***/ 14:
674
674
  /***/ (function(module, exports) {
675
675
 
676
- module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
676
+ module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
677
677
 
678
678
  /***/ }),
679
679
 
package/dist/list.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 = 113);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 114);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ({
@@ -203,7 +203,7 @@ function normalizeComponent (
203
203
 
204
204
  /***/ }),
205
205
 
206
- /***/ 113:
206
+ /***/ 114:
207
207
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
208
 
209
209
  "use strict";
package/dist/loading.js CHANGED
@@ -214,7 +214,7 @@ __webpack_require__.r(__webpack_exports__);
214
214
  var style = __webpack_require__(142);
215
215
 
216
216
  // EXTERNAL MODULE: ./components/loading/style/index.less
217
- var loading_style = __webpack_require__(277);
217
+ var loading_style = __webpack_require__(279);
218
218
 
219
219
  // CONCATENATED MODULE: ./components/loading/style/index.js
220
220
 
@@ -432,7 +432,7 @@ loading.install = function (Vue) {
432
432
 
433
433
  /***/ }),
434
434
 
435
- /***/ 277:
435
+ /***/ 279:
436
436
  /***/ (function(module, exports) {
437
437
 
438
438
  // removed by extract-text-webpack-plugin