@mdsfe/mds-ui 0.3.0-17 → 0.3.0-19

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 (64) hide show
  1. package/dist/_util/iconfont/index.js +1 -1
  2. package/dist/font/iconfont.ba42e6f.woff +0 -0
  3. package/dist/font/{iconfont.fbe81ba.ttf → iconfont.bf5c999.ttf} +0 -0
  4. package/dist/font/iconfont.d8e6666.woff2 +0 -0
  5. package/dist/index.js +1 -1
  6. package/dist/input.js +199 -46
  7. package/dist/mds-ui.min.css +1 -1
  8. package/dist/mds-ui.min.js +68 -10
  9. package/dist/style/affix.css +25 -1
  10. package/dist/style/alert.css +25 -1
  11. package/dist/style/anchor.css +25 -1
  12. package/dist/style/avatar.css +25 -1
  13. package/dist/style/badge.css +25 -1
  14. package/dist/style/bordershadow.css +25 -1
  15. package/dist/style/breadcrumb.css +25 -1
  16. package/dist/style/button.css +25 -1
  17. package/dist/style/card.css +25 -1
  18. package/dist/style/carousel.css +25 -1
  19. package/dist/style/checkbox.css +25 -1
  20. package/dist/style/col.css +25 -1
  21. package/dist/style/collapse.css +25 -1
  22. package/dist/style/color.css +25 -1
  23. package/dist/style/datepicker.css +25 -1
  24. package/dist/style/divider.css +25 -1
  25. package/dist/style/drawer.css +25 -1
  26. package/dist/style/dropdown.css +25 -1
  27. package/dist/style/empty.css +25 -1
  28. package/dist/style/font.css +25 -1
  29. package/dist/style/form.css +25 -1
  30. package/dist/style/icon.css +25 -1
  31. package/dist/style/input.css +45 -7
  32. package/dist/style/inputnumber.css +25 -1
  33. package/dist/style/layout.css +25 -1
  34. package/dist/style/list.css +25 -1
  35. package/dist/style/loading.css +25 -1
  36. package/dist/style/menu.css +25 -1
  37. package/dist/style/modal.css +25 -1
  38. package/dist/style/notification.css +25 -1
  39. package/dist/style/pagination.css +45 -7
  40. package/dist/style/popconfirm.css +25 -1
  41. package/dist/style/popover.css +25 -1
  42. package/dist/style/progress.css +25 -1
  43. package/dist/style/radio.css +25 -1
  44. package/dist/style/rate.css +25 -1
  45. package/dist/style/row.css +25 -1
  46. package/dist/style/select.css +25 -1
  47. package/dist/style/slider.css +25 -1
  48. package/dist/style/slottable.css +25 -1
  49. package/dist/style/steps.css +25 -1
  50. package/dist/style/switch.css +25 -1
  51. package/dist/style/table.css +25 -1
  52. package/dist/style/tabs.css +25 -1
  53. package/dist/style/tag.css +25 -1
  54. package/dist/style/text.css +25 -1
  55. package/dist/style/timeline.css +25 -1
  56. package/dist/style/timepicker.css +25 -1
  57. package/dist/style/tooltip.css +25 -1
  58. package/dist/style/tree.css +25 -1
  59. package/dist/style/typography.css +25 -1
  60. package/dist/style/upload.css +25 -1
  61. package/dist/text.js +199 -46
  62. package/package.json +1 -1
  63. package/dist/font/iconfont.08f1d29.woff +0 -0
  64. package/dist/font/iconfont.6addfa3.woff2 +0 -0
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
@@ -554,7 +554,7 @@ samp {
554
554
  font-display: auto;
555
555
  font-style: normal;
556
556
  /* project id 1921203 */
557
- src: url(/dist/font/iconfont.6addfa3.woff2) format('woff2'), url(/dist/font/iconfont.08f1d29.woff) format('woff'), url(/dist/font/iconfont.fbe81ba.ttf) format('truetype');
557
+ src: url(/dist/font/iconfont.d8e6666.woff2) format('woff2'), url(/dist/font/iconfont.ba42e6f.woff) format('woff'), url(/dist/font/iconfont.bf5c999.ttf) format('truetype');
558
558
  }
559
559
  .mdsicon {
560
560
  display: inline-block;
@@ -4730,6 +4730,30 @@ samp {
4730
4730
  display: inline-block;
4731
4731
  animation: loadingCircle 6s infinite linear;
4732
4732
  }
4733
+ .mdsicon-line-leftarrow:before {
4734
+ content: "\EDCD";
4735
+ }
4736
+ .mdsicon-line-rightarrow:before {
4737
+ content: "\EDCE";
4738
+ }
4739
+ .mdsicon-line-descendingorder:before {
4740
+ content: "\EDCB";
4741
+ }
4742
+ .mdsicon-line-filtrate:before {
4743
+ content: "\EDCC";
4744
+ }
4745
+ .mdsicon-line-button1:before {
4746
+ content: "\EDC7";
4747
+ }
4748
+ .mdsicon-line-ascendingorder:before {
4749
+ content: "\EDC8";
4750
+ }
4751
+ .mdsicon-line-list2:before {
4752
+ content: "\EDC9";
4753
+ }
4754
+ .mdsicon-line-datacard:before {
4755
+ content: "\EDCA";
4756
+ }
4733
4757
  .mdsicon-line_merge:before {
4734
4758
  content: "\EDC6";
4735
4759
  }
package/dist/text.js CHANGED
@@ -720,51 +720,150 @@ var render = function () {
720
720
  "div",
721
721
  { class: _vm.prefixCls + "-content " + (_vm.disabled ? "disable" : "") },
722
722
  [
723
- _c("textarea", {
724
- directives: [
725
- {
726
- name: "model",
727
- rawName: "v-model",
728
- value: _vm.valueData,
729
- expression: "valueData",
730
- },
731
- ],
732
- ref: "textAreaRef",
733
- class: [
734
- _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
735
- _vm.disabled ? "mds-input-disabled" : "",
736
- ],
737
- style: _vm.textareaStyles,
738
- attrs: {
739
- maxlength: _vm.max_length,
740
- minlength: _vm.min_length,
741
- rows: _vm.rows,
742
- placeholder: _vm.placeholder,
743
- disabled: _vm.disabled,
744
- },
745
- domProps: { value: _vm.valueData },
746
- on: {
747
- input: [
748
- function ($event) {
749
- if ($event.target.composing) {
750
- return
751
- }
752
- _vm.valueData = $event.target.value
753
- },
754
- _vm.handleInput,
755
- ],
756
- keypress: _vm.handleKeyDown,
757
- change: _vm.handleChange,
758
- focus: _vm.handleFocus,
759
- blur: _vm.handleBlur,
760
- },
761
- }),
762
- _vm.showLimit && _vm.max_length
763
- ? _c("span", { class: _vm.prefixCls + "-show-limit" }, [
764
- _vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length)),
723
+ _vm.showLimitPosition === "inside"
724
+ ? _c("div", { staticClass: "mds-input-textarea-wrapper" }, [
725
+ _c("textarea", {
726
+ directives: [
727
+ {
728
+ name: "model",
729
+ rawName: "v-model",
730
+ value: _vm.valueData,
731
+ expression: "valueData",
732
+ },
733
+ ],
734
+ ref: "textAreaRef",
735
+ class: [
736
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
737
+ _vm.disabled ? "mds-input-disabled" : "",
738
+ ],
739
+ style: _vm.textareaStyles,
740
+ attrs: {
741
+ maxlength: _vm.max_length,
742
+ minlength: _vm.min_length,
743
+ rows: _vm.rows,
744
+ placeholder: _vm.placeholder,
745
+ disabled: _vm.disabled,
746
+ },
747
+ domProps: { value: _vm.valueData },
748
+ on: {
749
+ input: [
750
+ function ($event) {
751
+ if ($event.target.composing) {
752
+ return
753
+ }
754
+ _vm.valueData = $event.target.value
755
+ },
756
+ _vm.handleInput,
757
+ ],
758
+ keypress: _vm.handleKeyDown,
759
+ change: _vm.handleChange,
760
+ focus: _vm.handleFocus,
761
+ blur: _vm.handleBlur,
762
+ },
763
+ }),
764
+ _vm.max_length
765
+ ? _c(
766
+ "span",
767
+ {
768
+ class: [
769
+ "mds-input-show-limit",
770
+ "mds-input-show-limit--inside",
771
+ ],
772
+ },
773
+ [_vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length))]
774
+ )
775
+ : _vm._e(),
765
776
  ])
766
- : _vm._e(),
767
- ]
777
+ : _vm.showLimitPosition === "outside"
778
+ ? [
779
+ _c("textarea", {
780
+ directives: [
781
+ {
782
+ name: "model",
783
+ rawName: "v-model",
784
+ value: _vm.valueData,
785
+ expression: "valueData",
786
+ },
787
+ ],
788
+ ref: "textAreaRef",
789
+ class: [
790
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
791
+ _vm.disabled ? "mds-input-disabled" : "",
792
+ ],
793
+ style: _vm.textareaStyles,
794
+ attrs: {
795
+ maxlength: _vm.max_length,
796
+ minlength: _vm.min_length,
797
+ rows: _vm.rows,
798
+ placeholder: _vm.placeholder,
799
+ disabled: _vm.disabled,
800
+ },
801
+ domProps: { value: _vm.valueData },
802
+ on: {
803
+ input: [
804
+ function ($event) {
805
+ if ($event.target.composing) {
806
+ return
807
+ }
808
+ _vm.valueData = $event.target.value
809
+ },
810
+ _vm.handleInput,
811
+ ],
812
+ keypress: _vm.handleKeyDown,
813
+ change: _vm.handleChange,
814
+ focus: _vm.handleFocus,
815
+ blur: _vm.handleBlur,
816
+ },
817
+ }),
818
+ _vm.max_length
819
+ ? _c("span", { class: ["mds-input-show-limit"] }, [
820
+ _vm._v(_vm._s(_vm.number) + "/" + _vm._s(_vm.max_length)),
821
+ ])
822
+ : _vm._e(),
823
+ ]
824
+ : [
825
+ _c("textarea", {
826
+ directives: [
827
+ {
828
+ name: "model",
829
+ rawName: "v-model",
830
+ value: _vm.valueData,
831
+ expression: "valueData",
832
+ },
833
+ ],
834
+ ref: "textAreaRef",
835
+ class: [
836
+ _vm.prefixCls + " " + _vm.prefixCls + "-textarea",
837
+ _vm.disabled ? "mds-input-disabled" : "",
838
+ ],
839
+ style: _vm.textareaStyles,
840
+ attrs: {
841
+ maxlength: _vm.max_length,
842
+ minlength: _vm.min_length,
843
+ rows: _vm.rows,
844
+ placeholder: _vm.placeholder,
845
+ disabled: _vm.disabled,
846
+ },
847
+ domProps: { value: _vm.valueData },
848
+ on: {
849
+ input: [
850
+ function ($event) {
851
+ if ($event.target.composing) {
852
+ return
853
+ }
854
+ _vm.valueData = $event.target.value
855
+ },
856
+ _vm.handleInput,
857
+ ],
858
+ keypress: _vm.handleKeyDown,
859
+ change: _vm.handleChange,
860
+ focus: _vm.handleFocus,
861
+ blur: _vm.handleBlur,
862
+ },
863
+ }),
864
+ ],
865
+ ],
866
+ 2
768
867
  )
769
868
  }
770
869
  var staticRenderFns = []
@@ -928,6 +1027,55 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
928
1027
  //
929
1028
  //
930
1029
  //
1030
+ //
1031
+ //
1032
+ //
1033
+ //
1034
+ //
1035
+ //
1036
+ //
1037
+ //
1038
+ //
1039
+ //
1040
+ //
1041
+ //
1042
+ //
1043
+ //
1044
+ //
1045
+ //
1046
+ //
1047
+ //
1048
+ //
1049
+ //
1050
+ //
1051
+ //
1052
+ //
1053
+ //
1054
+ //
1055
+ //
1056
+ //
1057
+ //
1058
+ //
1059
+ //
1060
+ //
1061
+ //
1062
+ //
1063
+ //
1064
+ //
1065
+ //
1066
+ //
1067
+ //
1068
+ //
1069
+ //
1070
+ //
1071
+ //
1072
+ //
1073
+ //
1074
+ //
1075
+ //
1076
+ //
1077
+ //
1078
+ //
931
1079
 
932
1080
 
933
1081
 
@@ -970,8 +1118,8 @@ function clearNextFrameAction(nextFrameId) {
970
1118
  default: 4
971
1119
  },
972
1120
  showLimit: {
973
- type: Boolean,
974
- default: false
1121
+ type: [Boolean, String],
1122
+ default: undefined
975
1123
  },
976
1124
  placeholder: {
977
1125
  type: String,
@@ -1004,6 +1152,11 @@ function clearNextFrameAction(nextFrameId) {
1004
1152
  },
1005
1153
  min_length: function min_length() {
1006
1154
  return this.$attrs.minlength || this.minlength;
1155
+ },
1156
+ showLimitPosition: function showLimitPosition() {
1157
+ if (this.showLimit === 'outside') return 'outside';
1158
+ if (this.showLimit === true || this.showLimit === 'inside') return 'inside';
1159
+ return null; // 不显示
1007
1160
  }
1008
1161
  },
1009
1162
  watch: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdsfe/mds-ui",
3
- "version": "0.3.0-17",
3
+ "version": "0.3.0-19",
4
4
  "description": "A set of enterprise-class Vue UI components.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
Binary file
Binary file