@vtx/components 3.1.2 → 3.1.4

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 (197) hide show
  1. package/CHANGELOG.md +998 -0
  2. package/README.md +19 -19
  3. package/lib/_util/filterSpecialCharacters.js +6 -6
  4. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  5. package/lib/_util/getComponentProps.js +1 -1
  6. package/lib/_util/getComponentProps.js.map +1 -1
  7. package/lib/_util/getUrlParam.js.map +1 -1
  8. package/lib/_util/isFunction.js.map +1 -1
  9. package/lib/_util/isObject.js.map +1 -1
  10. package/lib/_util/useColSize.js.map +1 -1
  11. package/lib/_util/useInterval.js.map +1 -1
  12. package/lib/_util/useSet.js +2 -2
  13. package/lib/_util/useSet.js.map +1 -1
  14. package/lib/config.js.map +1 -1
  15. package/lib/index.js +44 -44
  16. package/lib/index.js.map +1 -1
  17. package/lib/vtx-color-picker/index.js +2 -2
  18. package/lib/vtx-color-picker/index.js.map +1 -1
  19. package/lib/vtx-color-picker/style/css.js.map +1 -1
  20. package/lib/vtx-color-picker/style/index.js.map +1 -1
  21. package/lib/vtx-color-picker/style/index.less +12 -12
  22. package/lib/vtx-combogrid/Combogrid.js +4 -4
  23. package/lib/vtx-combogrid/Combogrid.js.map +1 -1
  24. package/lib/vtx-combogrid/index.js +2 -2
  25. package/lib/vtx-combogrid/index.js.map +1 -1
  26. package/lib/vtx-combogrid/style/css.js.map +1 -1
  27. package/lib/vtx-combogrid/style/index.js.map +1 -1
  28. package/lib/vtx-combogrid/style/index.less +29 -29
  29. package/lib/vtx-datagrid/Alert.js.map +1 -1
  30. package/lib/vtx-datagrid/ColumnSetting.js +1 -1
  31. package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
  32. package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
  33. package/lib/vtx-datagrid/index.js +4 -4
  34. package/lib/vtx-datagrid/index.js.map +1 -1
  35. package/lib/vtx-datagrid/renderColumnButtons.js +1 -1
  36. package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
  37. package/lib/vtx-datagrid/style/css.js.map +1 -1
  38. package/lib/vtx-datagrid/style/index.js.map +1 -1
  39. package/lib/vtx-datagrid/style/index.less +166 -166
  40. package/lib/vtx-date-picker/QdatePicker.js +2 -2
  41. package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
  42. package/lib/vtx-date-picker/generatePicker.js +11 -11
  43. package/lib/vtx-date-picker/generatePicker.js.map +1 -1
  44. package/lib/vtx-date-picker/index.js.map +1 -1
  45. package/lib/vtx-date-picker/style/css.js.map +1 -1
  46. package/lib/vtx-date-picker/style/index.js.map +1 -1
  47. package/lib/vtx-date-picker/style/index.less +38 -38
  48. package/lib/vtx-editor/index.js +2 -2
  49. package/lib/vtx-editor/index.js.map +1 -1
  50. package/lib/vtx-editor/style/css.js.map +1 -1
  51. package/lib/vtx-editor/style/index.js.map +1 -1
  52. package/lib/vtx-editor/style/index.less +8 -8
  53. package/lib/vtx-ellipsis-text/index.js +3 -3
  54. package/lib/vtx-ellipsis-text/index.js.map +1 -1
  55. package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
  56. package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
  57. package/lib/vtx-ellipsis-text/style/index.less +13 -13
  58. package/lib/vtx-export/index.js +8 -8
  59. package/lib/vtx-export/index.js.map +1 -1
  60. package/lib/vtx-export/style/css.js.map +1 -1
  61. package/lib/vtx-export/style/index.js.map +1 -1
  62. package/lib/vtx-export/style/index.less +6 -6
  63. package/lib/vtx-form-layout/Card.js +1 -1
  64. package/lib/vtx-form-layout/Card.js.map +1 -1
  65. package/lib/vtx-form-layout/Divider.js.map +1 -1
  66. package/lib/vtx-form-layout/FormItem.js +2 -2
  67. package/lib/vtx-form-layout/FormItem.js.map +1 -1
  68. package/lib/vtx-form-layout/Pane.js.map +1 -1
  69. package/lib/vtx-form-layout/Row.js.map +1 -1
  70. package/lib/vtx-form-layout/context.js.map +1 -1
  71. package/lib/vtx-form-layout/demo/Modal.less +43 -43
  72. package/lib/vtx-form-layout/index.js.map +1 -1
  73. package/lib/vtx-form-layout/style/css.js.map +1 -1
  74. package/lib/vtx-form-layout/style/index.js.map +1 -1
  75. package/lib/vtx-form-layout/style/index.less +211 -211
  76. package/lib/vtx-image/Image.js +1 -1
  77. package/lib/vtx-image/Image.js.map +1 -1
  78. package/lib/vtx-image/Preview.js +3 -3
  79. package/lib/vtx-image/Preview.js.map +1 -1
  80. package/lib/vtx-image/PreviewGroup.js +2 -2
  81. package/lib/vtx-image/PreviewGroup.js.map +1 -1
  82. package/lib/vtx-image/index.js +1 -1
  83. package/lib/vtx-image/index.js.map +1 -1
  84. package/lib/vtx-image/style/css.js.map +1 -1
  85. package/lib/vtx-image/style/index.js.map +1 -1
  86. package/lib/vtx-image/style/index.less +63 -63
  87. package/lib/vtx-import/index.js +2 -2
  88. package/lib/vtx-import/index.js.map +1 -1
  89. package/lib/vtx-import/result.js +1 -1
  90. package/lib/vtx-import/result.js.map +1 -1
  91. package/lib/vtx-import/style/css.js.map +1 -1
  92. package/lib/vtx-import/style/index.js.map +1 -1
  93. package/lib/vtx-import/style/index.less +8 -8
  94. package/lib/vtx-input/TextArea.js +2 -2
  95. package/lib/vtx-input/TextArea.js.map +1 -1
  96. package/lib/vtx-input/index.js +4 -4
  97. package/lib/vtx-input/index.js.map +1 -1
  98. package/lib/vtx-input/style/css.js.map +1 -1
  99. package/lib/vtx-input/style/index.js.map +1 -1
  100. package/lib/vtx-input/style/index.less +24 -24
  101. package/lib/vtx-input/useLength.js.map +1 -1
  102. package/lib/vtx-modal/Title.js.map +1 -1
  103. package/lib/vtx-modal/index.js +5 -5
  104. package/lib/vtx-modal/index.js.map +1 -1
  105. package/lib/vtx-modal/style/css.js.map +1 -1
  106. package/lib/vtx-modal/style/index.js.map +1 -1
  107. package/lib/vtx-modal/style/index.less +95 -95
  108. package/lib/vtx-page-layout/Basic.js +2 -2
  109. package/lib/vtx-page-layout/Basic.js.map +1 -1
  110. package/lib/vtx-page-layout/Content.js +2 -2
  111. package/lib/vtx-page-layout/Content.js.map +1 -1
  112. package/lib/vtx-page-layout/Pane.js.map +1 -1
  113. package/lib/vtx-page-layout/TableLayout.js +13 -13
  114. package/lib/vtx-page-layout/TableLayout.js.map +1 -1
  115. package/lib/vtx-page-layout/TableWrap.js +2 -2
  116. package/lib/vtx-page-layout/TableWrap.js.map +1 -1
  117. package/lib/vtx-page-layout/container.js +12 -12
  118. package/lib/vtx-page-layout/container.js.map +1 -1
  119. package/lib/vtx-page-layout/index.js.map +1 -1
  120. package/lib/vtx-page-layout/style/css.js.map +1 -1
  121. package/lib/vtx-page-layout/style/index.js.map +1 -1
  122. package/lib/vtx-page-layout/style/index.less +138 -138
  123. package/lib/vtx-rps-frame/index.js +3 -3
  124. package/lib/vtx-rps-frame/index.js.map +1 -1
  125. package/lib/vtx-rps-frame/style/css.js.map +1 -1
  126. package/lib/vtx-rps-frame/style/index.js.map +1 -1
  127. package/lib/vtx-rps-frame/style/index.less +8 -8
  128. package/lib/vtx-scrollable-row/index.js +4 -4
  129. package/lib/vtx-scrollable-row/index.js.map +1 -1
  130. package/lib/vtx-scrollable-row/style/css.js.map +1 -1
  131. package/lib/vtx-scrollable-row/style/index.js.map +1 -1
  132. package/lib/vtx-scrollable-row/style/index.less +113 -113
  133. package/lib/vtx-search/VtxCol.js +2 -2
  134. package/lib/vtx-search/VtxCol.js.map +1 -1
  135. package/lib/vtx-search/VtxRow.js.map +1 -1
  136. package/lib/vtx-search/index.js +3 -3
  137. package/lib/vtx-search/index.js.map +1 -1
  138. package/lib/vtx-search/style/css.js.map +1 -1
  139. package/lib/vtx-search/style/index.js.map +1 -1
  140. package/lib/vtx-search/style/index.less +83 -83
  141. package/lib/vtx-search-map-input/index.js +2 -2
  142. package/lib/vtx-search-map-input/index.js.map +1 -1
  143. package/lib/vtx-search-map-input/style/css.js.map +1 -1
  144. package/lib/vtx-search-map-input/style/index.js.map +1 -1
  145. package/lib/vtx-select/index.js +4 -4
  146. package/lib/vtx-select/index.js.map +1 -1
  147. package/lib/vtx-select/style/css.js.map +1 -1
  148. package/lib/vtx-select/style/index.js.map +1 -1
  149. package/lib/vtx-select/style/index.less +68 -68
  150. package/lib/vtx-signature/index.js +1 -1
  151. package/lib/vtx-signature/index.js.map +1 -1
  152. package/lib/vtx-signature/style/css.js.map +1 -1
  153. package/lib/vtx-signature/style/index.js.map +1 -1
  154. package/lib/vtx-signature/style/index.less +33 -33
  155. package/lib/vtx-split-pane/Pane.js +3 -3
  156. package/lib/vtx-split-pane/Pane.js.map +1 -1
  157. package/lib/vtx-split-pane/Resizer.js +4 -4
  158. package/lib/vtx-split-pane/Resizer.js.map +1 -1
  159. package/lib/vtx-split-pane/SplitPane.js +5 -5
  160. package/lib/vtx-split-pane/SplitPane.js.map +1 -1
  161. package/lib/vtx-split-pane/index.js.map +1 -1
  162. package/lib/vtx-split-pane/style/css.js.map +1 -1
  163. package/lib/vtx-split-pane/style/index.js.map +1 -1
  164. package/lib/vtx-split-pane/style/index.less +60 -60
  165. package/lib/vtx-statistics-column/Back.js +1 -1
  166. package/lib/vtx-statistics-column/Back.js.map +1 -1
  167. package/lib/vtx-statistics-column/Item.js +3 -3
  168. package/lib/vtx-statistics-column/Item.js.map +1 -1
  169. package/lib/vtx-statistics-column/Total.js +3 -3
  170. package/lib/vtx-statistics-column/Total.js.map +1 -1
  171. package/lib/vtx-statistics-column/context.js.map +1 -1
  172. package/lib/vtx-statistics-column/index.js.map +1 -1
  173. package/lib/vtx-statistics-column/style/css.js.map +1 -1
  174. package/lib/vtx-statistics-column/style/index.js.map +1 -1
  175. package/lib/vtx-statistics-column/style/index.less +59 -59
  176. package/lib/vtx-time-picker/index.js +1 -1
  177. package/lib/vtx-time-picker/index.js.map +1 -1
  178. package/lib/vtx-time-picker/style/css.js.map +1 -1
  179. package/lib/vtx-time-picker/style/index.js.map +1 -1
  180. package/lib/vtx-upload/FilePreview.js +2 -2
  181. package/lib/vtx-upload/FilePreview.js.map +1 -1
  182. package/lib/vtx-upload/index.js +5 -5
  183. package/lib/vtx-upload/index.js.map +1 -1
  184. package/lib/vtx-upload/style/css.js.map +1 -1
  185. package/lib/vtx-upload/style/index.js.map +1 -1
  186. package/lib/vtx-upload/style/index.less +61 -61
  187. package/lib/vtx-ztree/index.js +10 -10
  188. package/lib/vtx-ztree/index.js.map +1 -1
  189. package/lib/vtx-ztree/style/css.js.map +1 -1
  190. package/lib/vtx-ztree/style/index.js.map +1 -1
  191. package/lib/vtx-ztree/style/index.less +30 -30
  192. package/lib/vtx-ztree-select/index.js +8 -8
  193. package/lib/vtx-ztree-select/index.js.map +1 -1
  194. package/lib/vtx-ztree-select/style/css.js.map +1 -1
  195. package/lib/vtx-ztree-select/style/index.js.map +1 -1
  196. package/lib/vtx-ztree-select/style/index.less +74 -74
  197. package/package.json +123 -123
@@ -1,63 +1,63 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
-
3
- @prefix-cls: vtx-image;
4
- @min-height: 36px;
5
- @aspectFit-background: #595959;
6
-
7
- .center {
8
- position: absolute;
9
- top: 50%;
10
- left: 50%;
11
- -ms-transform: translate(-50%, -50%);
12
- -o-transform: translate(-50%, -50%);
13
- -moz-transform: translate(-50%, -50%);
14
- -webkit-transform: translate(-50%, -50%);
15
- transform: translate(-50%, -50%);
16
- }
17
-
18
- .@{prefix-cls} {
19
- &-aspectFit {
20
- position: relative;
21
- height: 100%;
22
- min-height: @min-height;
23
- background: @aspectFit-background;
24
- img {
25
- .center();
26
- max-width: 100%;
27
- max-height: 100%;
28
- }
29
- }
30
- &-preview {
31
- img {
32
- cursor: pointer;
33
- }
34
- }
35
- &-nodata,
36
- &-error {
37
- position: relative;
38
- height: 100%;
39
- min-height: @min-height;
40
- background: @table-expanded-row-bg;
41
- border: @border-width-base @border-style-base @border-color-split;
42
- cursor: default;
43
- p {
44
- .center();
45
- color: @text-color-secondary;
46
- }
47
- }
48
- }
49
- .@{prefix-cls} when(@theme=dark) {
50
- &-nodata,
51
- &-error {
52
- position: relative;
53
- height: 100%;
54
- min-height: @min-height;
55
- background: @aspectFit-background;
56
- border: @border-width-base @border-style-base @border-color-split;
57
- cursor: default;
58
- p {
59
- .center();
60
- color: @text-color-secondary;
61
- }
62
- }
63
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
3
+ @prefix-cls: vtx-image;
4
+ @min-height: 36px;
5
+ @aspectFit-background: #595959;
6
+
7
+ .center {
8
+ position: absolute;
9
+ top: 50%;
10
+ left: 50%;
11
+ -ms-transform: translate(-50%, -50%);
12
+ -o-transform: translate(-50%, -50%);
13
+ -moz-transform: translate(-50%, -50%);
14
+ -webkit-transform: translate(-50%, -50%);
15
+ transform: translate(-50%, -50%);
16
+ }
17
+
18
+ .@{prefix-cls} {
19
+ &-aspectFit {
20
+ position: relative;
21
+ height: 100%;
22
+ min-height: @min-height;
23
+ background: @aspectFit-background;
24
+ img {
25
+ .center();
26
+ max-width: 100%;
27
+ max-height: 100%;
28
+ }
29
+ }
30
+ &-preview {
31
+ img {
32
+ cursor: pointer;
33
+ }
34
+ }
35
+ &-nodata,
36
+ &-error {
37
+ position: relative;
38
+ height: 100%;
39
+ min-height: @min-height;
40
+ background: @table-expanded-row-bg;
41
+ border: @border-width-base @border-style-base @border-color-split;
42
+ cursor: default;
43
+ p {
44
+ .center();
45
+ color: @text-color-secondary;
46
+ }
47
+ }
48
+ }
49
+ .@{prefix-cls} when(@theme=dark) {
50
+ &-nodata,
51
+ &-error {
52
+ position: relative;
53
+ height: 100%;
54
+ min-height: @min-height;
55
+ background: @aspectFit-background;
56
+ border: @border-width-base @border-style-base @border-color-split;
57
+ cursor: default;
58
+ p {
59
+ .center();
60
+ color: @text-color-secondary;
61
+ }
62
+ }
63
+ }
@@ -23,9 +23,9 @@ var _getUrlParam2 = _interopRequireDefault(require("@vtx/utils/lib/getUrlParam")
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
 
30
30
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
31
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-import/index.jsx"],"names":["token","VtxImport","props","fileForm","fileInput","iframe","useFormData","window","FormData","uploading","visible","fileKey","accept","resultVisible","resultData","modalWidth","columns","title","dataIndex","key","state","setState","getPostURL","postUrl","uploadURL","postData","postArray","k","undefined","push","encodeURIComponent","length","join","closeModal","value","close","uploadSuccess","data","afterUpload","parseData","JSON","parse","Array","isArray","map","item","index","messages","filter","result","message","error","msg","templateURL","modalProps","className","onCancel","maskClosable","footer","open","request","XMLHttpRequest","setRequestHeader","onreadystatechange","e","target","readyState","response","fmd","append","files","send","info","resultProps","dataSource","hideVisible","children","dom","display","propTypes","PropTypes","bool","string","object","func","number","array"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AACA,mBAAkB,+BAAlB;AAAA,IAAQA,KAAR,gBAAQA,KAAR;;AACA,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;AACtB,gBAA0B,yBAAO;AAC7BC,IAAAA,QAAQ,EAAE,IADmB;AACb;AAChBC,IAAAA,SAAS,EAAE,IAFkB;AAEZ;AACjBC,IAAAA,MAAM,EAAE,IAHqB;AAGf;AACdC,IAAAA,WAAW,EAAEC,MAAM,CAACC,QAAP,GAAkB,IAAlB,GAAyB,KAJT;AAIgB;AAC7CC,IAAAA,SAAS,EAAE,KALkB;AAKX;AAClBC,IAAAA,OAAO,EAAER,KAAK,CAACQ,OAAN,IAAiB,KANG;AAO7BC,IAAAA,OAAO,EAAET,KAAK,CAACS,OAAN,IAAiB,MAPG;AAQ7BC,IAAAA,MAAM,EACFV,KAAK,CAACU,MAAN,IACA,qGAVyB;AAW7BC,IAAAA,aAAa,EAAE,KAXc;AAWP;AACtBC,IAAAA,UAAU,EAAE,EAZiB;AAYb;AAChBC,IAAAA,UAAU,EAAEb,KAAK,CAACa,UAAN,IAAoB,GAbH;AAc7BC,IAAAA,OAAO,EAAEd,KAAK,CAACc,OAAN,IAAiB,CACtB;AACIC,MAAAA,KAAK,EAAE,IADX;AAEIC,MAAAA,SAAS,EAAE,SAFf;AAGIC,MAAAA,GAAG,EAAE;AAHT,KADsB,EAMtB;AACIF,MAAAA,KAAK,EAAE,MADX;AAEIC,MAAAA,SAAS,EAA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,GAAJ,EAASzD,KAAK,CAAChB,SAAN,GAAkByE,GAAlB;AACZ;AANL,IATJ,CAFJ,eAoBI;AACI,IAAA,IAAI,EAAC,KADT;AAEI,IAAA,KAAK,EAAE;AAAEC,MAAAA,OAAO,EAAE;AAAX,KAFX;AAGI,IAAA,GAAG,EAAE,aAAAD,GAAG,EAAI;AACR,UAAIA,GAAJ,EAASzD,KAAK,CAACf,MAAN,GAAewE,GAAf;AACZ;AALL,IApBJ,EA2BKzD,KAAK,CAACP,aAAN,iBAAuB,gCAAC,kBAAD,EAAqB4D,WAArB,CA3B5B,CADJ;AA+BH;;AACDxE,SAAS,CAAC8E,SAAV,GAAsB;AAClBrE,EAAAA,OAAO,EAAEsE,sBAAUC,IADD;AAElB5B,EAAAA,WAAW,EAAE2B,sBAAUE,MAFL;AAGlB1D,EAAAA,SAAS,EAAEwD,sBAAUE,MAHH;AAIlBzD,EAAAA,QAAQ,EAAEuD,sBAAUG,MAJF;AAKlBxE,EAAAA,OAAO,EAAEqE,sBAAUE,MALD;AAMlBtE,EAAAA,MAAM,EAAEoE,sBAAUE,MANA;AAOlB/C,EAAAA,KAAK,EAAE6C,sBAAUI,IAPC;AAQlB9C,EAAAA,WAAW,EAAE0C,sBAAUI,IARL;AASlBrE,EAAAA,UAAU,EAAEiE,sBAAUK,MATJ;AAUlBrE,EAAAA,OAAO,EAAEgE,sBAAUM,KAVD;AAWlBV,EAAAA,QAAQ,EAAEI,sBAAUG;AAXF,CAAtB;eAaelF,S","sourcesContent":["import React from 'react';\nimport Modal from 'antd/lib/modal';\nimport Button from 'antd/lib/button';\nimport message from 'antd/lib/message';\nimport PropTypes from 'prop-types';\nimport useSet from '../_util/useSet';\nimport VtxImportResult from './result';\nimport getUrlParam from '@vtx/utils/lib/getUrlParam';\nconst { token } = getUrlParam();\nfunction VtxImport(props) {\n const [state, setState] = useSet({\n fileForm: null, // form表单\n fileInput: null, // 保存上传的文件\n iframe: null, // form表单提交之后跳转的\n useFormData: window.FormData ? true : false, // 是否查看\n uploading: false, // 表单提交的状态\n visible: props.visible || false,\n fileKey: props.fileKey || 'file',\n accept:\n props.accept ||\n 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',\n resultVisible: false, // 导入结果查看弹窗\n resultData: [], // 导入结果查看\n modalWidth: props.modalWidth || 800,\n columns: props.columns || [\n {\n title: '行号',\n dataIndex: 'lineNum',\n key: 'lineNum',\n },\n {\n title: '错误说明',\n dataIndex: 'messages',\n key: 'messages',\n },\n ],\n });\n // 获取上传地址(拼接参数)\n const getPostURL = () => {\n const postUrl = props.uploadURL;\n const postData = props.postData || {};\n const postArray = [];\n for (const k in postData) {\n if (postData[k] !== undefined && postData[k] !== null && postData[k] !== '') {\n postArray.push(`${k}=${encodeURIComponent(postData[k])}`);\n }\n }\n return postArray.length > 0 ? `${postUrl}?${postArray.join('&')}` : postUrl;\n };\n const closeModal = () => {\n state.fileInput.value = '';\n if (typeof props.close === 'function') {\n props.close();\n } else {\n setState({\n visible: !state.visible,\n });\n }\n };\n // 上传之后的回调 - 展示报错信息\n const uploadSuccess = data => {\n state.fileInput.value = '';\n setState({\n uploading: false,\n });\n if (typeof props.afterUpload === 'function') {\n afterUpload(data);\n }\n const parseData = JSON.parse(data);\n if (Array.isArray(parseData?.data)) {\n setState({\n resultVisible: true,\n resultData: parseData.data\n .map((item, index) => ({\n ...item,\n key: index,\n messages: item.messages.join(','),\n }))\n .filter(item => item.messages.length !== 0),\n });\n } else {\n // 新增其他错误提示\n if (parseData.result !== 0) {\n message.error(parseData?.msg || '服务器异常');\n }\n }\n };\n const { templateURL, uploadURL, afterUpload } = props;\n const modalProps = {\n className: 'vtx-import-modal',\n visible: state.visible,\n title: '导入',\n onCancel: () => closeModal(),\n maskClosable: false,\n footer: [\n templateURL ? (\n <Button\n key=\"downloadTemple\"\n onClick={() => {\n window.open(templateURL);\n }}\n >\n 下载模板\n </Button>\n ) : null,\n <Button\n key=\"uploadSubmit\"\n type=\"primary\"\n loading={state.uploading}\n onClick={() => {\n const postUrl = getPostURL();\n if (state.fileInput.value) {\n setState({\n uploading: true,\n });\n if (state.useFormData) {\n const request = new XMLHttpRequest();\n request.open('POST', postUrl);\n request.setRequestHeader('Authorization', token ? `Bear ${token}` : '');\n request.setRequestHeader('access_token', token ? `${token}` : '');\n request.onreadystatechange = e => {\n if (e.target.readyState == 4) {\n uploadSuccess(e.target.response);\n }\n };\n const fmd = new FormData();\n fmd.append(state.fileKey, state.fileInput.files[0]);\n request.send(fmd);\n }\n } else {\n message.info('请选择需要上传的文件');\n }\n }}\n >\n 上传\n </Button>,\n <Button\n key=\"closeWindow\"\n onClick={() => {\n closeModal();\n }}\n >\n 关闭\n </Button>,\n ],\n };\n const resultProps = {\n visible: state.resultVisible,\n dataSource: state.resultData,\n columns: state.columns,\n hideVisible: () => {\n setState({\n resultVisible: false,\n });\n },\n modalWidth: state.modalWidth,\n };\n return (\n <Modal {...modalProps}>\n {props.children}\n <form\n encType=\"multipart/form-data\"\n method=\"post\"\n target=\"tmp\"\n action={uploadURL}\n ref={dom => {\n if (dom) state.fileForm = dom;\n }}\n >\n <input\n type=\"file\"\n name={state.fileKey}\n accept={state.accept}\n ref={dom => {\n if (dom) state.fileInput = dom;\n }}\n />\n </form>\n <iframe\n name=\"tmp\"\n style={{ display: 'none' }}\n ref={dom => {\n if (dom) state.iframe = dom;\n }}\n ></iframe>\n {state.resultVisible && <VtxImportResult {...resultProps} />}\n </Modal>\n );\n}\nVtxImport.propTypes = {\n visible: PropTypes.bool,\n templateURL: PropTypes.string,\n uploadURL: PropTypes.string,\n postData: PropTypes.object,\n fileKey: PropTypes.string,\n accept: PropTypes.string,\n close: PropTypes.func,\n afterUpload: PropTypes.func,\n modalWidth: PropTypes.number,\n columns: PropTypes.array,\n children: PropTypes.object,\n};\nexport default VtxImport;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["getUrlParam","token","VtxImport","props","useSet","fileForm","fileInput","iframe","useFormData","window","FormData","uploading","visible","fileKey","accept","resultVisible","resultData","modalWidth","columns","title","dataIndex","key","state","setState","getPostURL","postUrl","uploadURL","postData","postArray","k","undefined","push","encodeURIComponent","length","join","closeModal","value","close","uploadSuccess","data","afterUpload","parseData","JSON","parse","Array","isArray","map","item","index","messages","filter","result","message","error","msg","templateURL","modalProps","className","onCancel","maskClosable","footer","open","request","XMLHttpRequest","setRequestHeader","onreadystatechange","e","target","readyState","response","fmd","append","files","send","info","resultProps","dataSource","hideVisible","children","dom","display","propTypes","PropTypes","bool","string","object","func","number","array"],"sources":["vtx-import/index.jsx"],"sourcesContent":["import React from 'react';\r\nimport Modal from 'antd/lib/modal';\r\nimport Button from 'antd/lib/button';\r\nimport message from 'antd/lib/message';\r\nimport PropTypes from 'prop-types';\r\nimport useSet from '../_util/useSet';\r\nimport VtxImportResult from './result';\r\nimport getUrlParam from '@vtx/utils/lib/getUrlParam';\r\nconst { token } = getUrlParam();\r\nfunction VtxImport(props) {\r\n const [state, setState] = useSet({\r\n fileForm: null, // form表单\r\n fileInput: null, // 保存上传的文件\r\n iframe: null, // form表单提交之后跳转的\r\n useFormData: window.FormData ? true : false, // 是否查看\r\n uploading: false, // 表单提交的状态\r\n visible: props.visible || false,\r\n fileKey: props.fileKey || 'file',\r\n accept:\r\n props.accept ||\r\n 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',\r\n resultVisible: false, // 导入结果查看弹窗\r\n resultData: [], // 导入结果查看\r\n modalWidth: props.modalWidth || 800,\r\n columns: props.columns || [\r\n {\r\n title: '行号',\r\n dataIndex: 'lineNum',\r\n key: 'lineNum',\r\n },\r\n {\r\n title: '错误说明',\r\n dataIndex: 'messages',\r\n key: 'messages',\r\n },\r\n ],\r\n });\r\n // 获取上传地址(拼接参数)\r\n const getPostURL = () => {\r\n const postUrl = props.uploadURL;\r\n const postData = props.postData || {};\r\n const postArray = [];\r\n for (const k in postData) {\r\n if (postData[k] !== undefined && postData[k] !== null && postData[k] !== '') {\r\n postArray.push(`${k}=${encodeURIComponent(postData[k])}`);\r\n }\r\n }\r\n return postArray.length > 0 ? `${postUrl}?${postArray.join('&')}` : postUrl;\r\n };\r\n const closeModal = () => {\r\n state.fileInput.value = '';\r\n if (typeof props.close === 'function') {\r\n props.close();\r\n } else {\r\n setState({\r\n visible: !state.visible,\r\n });\r\n }\r\n };\r\n // 上传之后的回调 - 展示报错信息\r\n const uploadSuccess = data => {\r\n state.fileInput.value = '';\r\n setState({\r\n uploading: false,\r\n });\r\n if (typeof props.afterUpload === 'function') {\r\n afterUpload(data);\r\n }\r\n const parseData = JSON.parse(data);\r\n if (Array.isArray(parseData?.data)) {\r\n setState({\r\n resultVisible: true,\r\n resultData: parseData.data\r\n .map((item, index) => ({\r\n ...item,\r\n key: index,\r\n messages: item.messages.join(','),\r\n }))\r\n .filter(item => item.messages.length !== 0),\r\n });\r\n } else {\r\n // 新增其他错误提示\r\n if (parseData.result !== 0) {\r\n message.error(parseData?.msg || '服务器异常');\r\n }\r\n }\r\n };\r\n const { templateURL, uploadURL, afterUpload } = props;\r\n const modalProps = {\r\n className: 'vtx-import-modal',\r\n visible: state.visible,\r\n title: '导入',\r\n onCancel: () => closeModal(),\r\n maskClosable: false,\r\n footer: [\r\n templateURL ? (\r\n <Button\r\n key=\"downloadTemple\"\r\n onClick={() => {\r\n window.open(templateURL);\r\n }}\r\n >\r\n 下载模板\r\n </Button>\r\n ) : null,\r\n <Button\r\n key=\"uploadSubmit\"\r\n type=\"primary\"\r\n loading={state.uploading}\r\n onClick={() => {\r\n const postUrl = getPostURL();\r\n if (state.fileInput.value) {\r\n setState({\r\n uploading: true,\r\n });\r\n if (state.useFormData) {\r\n const request = new XMLHttpRequest();\r\n request.open('POST', postUrl);\r\n request.setRequestHeader('Authorization', token ? `Bear ${token}` : '');\r\n request.setRequestHeader('access_token', token ? `${token}` : '');\r\n request.onreadystatechange = e => {\r\n if (e.target.readyState == 4) {\r\n uploadSuccess(e.target.response);\r\n }\r\n };\r\n const fmd = new FormData();\r\n fmd.append(state.fileKey, state.fileInput.files[0]);\r\n request.send(fmd);\r\n }\r\n } else {\r\n message.info('请选择需要上传的文件');\r\n }\r\n }}\r\n >\r\n 上传\r\n </Button>,\r\n <Button\r\n key=\"closeWindow\"\r\n onClick={() => {\r\n closeModal();\r\n }}\r\n >\r\n 关闭\r\n </Button>,\r\n ],\r\n };\r\n const resultProps = {\r\n visible: state.resultVisible,\r\n dataSource: state.resultData,\r\n columns: state.columns,\r\n hideVisible: () => {\r\n setState({\r\n resultVisible: false,\r\n });\r\n },\r\n modalWidth: state.modalWidth,\r\n };\r\n return (\r\n <Modal {...modalProps}>\r\n {props.children}\r\n <form\r\n encType=\"multipart/form-data\"\r\n method=\"post\"\r\n target=\"tmp\"\r\n action={uploadURL}\r\n ref={dom => {\r\n if (dom) state.fileForm = dom;\r\n }}\r\n >\r\n <input\r\n type=\"file\"\r\n name={state.fileKey}\r\n accept={state.accept}\r\n ref={dom => {\r\n if (dom) state.fileInput = dom;\r\n }}\r\n />\r\n </form>\r\n <iframe\r\n name=\"tmp\"\r\n style={{ display: 'none' }}\r\n ref={dom => {\r\n if (dom) state.iframe = dom;\r\n }}\r\n ></iframe>\r\n {state.resultVisible && <VtxImportResult {...resultProps} />}\r\n </Modal>\r\n );\r\n}\r\nVtxImport.propTypes = {\r\n visible: PropTypes.bool,\r\n templateURL: PropTypes.string,\r\n uploadURL: PropTypes.string,\r\n postData: PropTypes.object,\r\n fileKey: PropTypes.string,\r\n accept: PropTypes.string,\r\n close: PropTypes.func,\r\n afterUpload: PropTypes.func,\r\n modalWidth: PropTypes.number,\r\n columns: PropTypes.array,\r\n children: PropTypes.object,\r\n};\r\nexport default VtxImport;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AACA,mBAAkB,IAAAA,wBAAA,GAAlB;AAAA,IAAQC,KAAR,gBAAQA,KAAR;;A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F,S"}
@@ -19,7 +19,7 @@ var _vtxDatagrid = _interopRequireDefault(require("../vtx-datagrid"));
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
21
 
22
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
 
24
24
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
25
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-import/result.jsx"],"names":["VtxImportResult","props","visible","dataSource","columns","modalWidth","state","modalProps","bodyStyle","backgroundColor","title","onCancel","hideVisible","width","maskClosable","footer","newTableProps","startIndex","size","headFootHeight","pagination","autoFit","maxHeight","overflow","propTypes","PropTypes","bool","array","number","func"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAEA,SAASA,eAAT,CAAyBC,KAAzB,EAAgC;AAC5B,gBAAgB,yBAAO;AACnBC,IAAAA,OAAO,EAAED,KAAK,CAACC,OAAN,IAAiB,KADP;AAEnBC,IAAAA,UAAU,EAAEF,KAAK,CAACE,UAAN,IAAoB,EAFb;AAGnBC,IAAAA,OAAO,EAAEH,KAAK,CAACG,OAHI;AAInBC,IAAAA,UAAU,EAAEJ,KAAK,CAACI;AAJC,GAAP,CAAhB;AAAA;AAAA,MAAOC,KAAP;;AAMA,MAAMC,UAAU,GAAG;AACfC,IAAAA,SAAS,EAAE;AACPC,MAAAA,eAAe,EAAE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BvB,EAAAA,OAAO,EAAEqB,sBAAUE,KAHK;AAIxBtB,EAAAA,UAAU,EAAEoB,sBAAUG,MAJE;AAKxBhB,EAAAA,WAAW,EAAEa,sBAAUI;AALC,CAA5B;eAOe7B,e","sourcesContent":["import React from 'react';\nimport Modal from 'antd/lib/modal';\nimport Button from 'antd/lib/button';\nimport PropTypes from 'prop-types';\nimport useSet from '../_util/useSet';\nimport VtxDatagrid from '../vtx-datagrid';\n\nfunction VtxImportResult(props) {\n const [state] = useSet({\n visible: props.visible || false,\n dataSource: props.dataSource || [],\n columns: props.columns,\n modalWidth: props.modalWidth,\n });\n const modalProps = {\n bodyStyle: {\n backgroundColor: '#f8f8f8',\n },\n visible: state.visible,\n title: '导入结果',\n onCancel: () => {\n if (typeof props.hideVisible === 'function') {\n props.hideVisible();\n }\n },\n width: state.modalWidth,\n maskClosable: false,\n footer: [\n <Button\n key=\"closeWindow\"\n onClick={() => {\n if (typeof props.hideVisible === 'function') {\n props.hideVisible();\n }\n }}\n >\n 关闭\n </Button>,\n ],\n };\n const newTableProps = {\n columns: state.columns,\n dataSource: state.dataSource,\n startIndex: 1,\n size: 'small',\n headFootHeight: 50,\n pagination: false,\n autoFit: false,\n };\n return (\n <Modal {...modalProps}>\n <div style={{ maxHeight: 600, width: '100%', overflow: 'auto' }}>\n <VtxDatagrid toolbar={false} {...newTableProps} />\n </div>\n </Modal>\n );\n}\nVtxImportResult.propTypes = {\n visible: PropTypes.bool,\n dataSource: PropTypes.array,\n columns: PropTypes.array,\n modalWidth: PropTypes.number,\n hideVisible: PropTypes.func,\n};\nexport default VtxImportResult;\n"],"file":"result.js"}
1
+ {"version":3,"file":"result.js","names":["VtxImportResult","props","useSet","visible","dataSource","columns","modalWidth","state","modalProps","bodyStyle","backgroundColor","title","onCancel","hideVisible","width","maskClosable","footer","newTableProps","startIndex","size","headFootHeight","pagination","autoFit","maxHeight","overflow","propTypes","PropTypes","bool","array","number","func"],"sources":["vtx-import/result.jsx"],"sourcesContent":["import React from 'react';\r\nimport Modal from 'antd/lib/modal';\r\nimport Button from 'antd/lib/button';\r\nimport PropTypes from 'prop-types';\r\nimport useSet from '../_util/useSet';\r\nimport VtxDatagrid from '../vtx-datagrid';\r\n\r\nfunction VtxImportResult(props) {\r\n const [state] = useSet({\r\n visible: props.visible || false,\r\n dataSource: props.dataSource || [],\r\n columns: props.columns,\r\n modalWidth: props.modalWidth,\r\n });\r\n const modalProps = {\r\n bodyStyle: {\r\n backgroundColor: '#f8f8f8',\r\n },\r\n visible: state.visible,\r\n title: '导入结果',\r\n onCancel: () => {\r\n if (typeof props.hideVisible === 'function') {\r\n props.hideVisible();\r\n }\r\n },\r\n width: state.modalWidth,\r\n maskClosable: false,\r\n footer: [\r\n <Button\r\n key=\"closeWindow\"\r\n onClick={() => {\r\n if (typeof props.hideVisible === 'function') {\r\n props.hideVisible();\r\n }\r\n }}\r\n >\r\n 关闭\r\n </Button>,\r\n ],\r\n };\r\n const newTableProps = {\r\n columns: state.columns,\r\n dataSource: state.dataSource,\r\n startIndex: 1,\r\n size: 'small',\r\n headFootHeight: 50,\r\n pagination: false,\r\n autoFit: false,\r\n };\r\n return (\r\n <Modal {...modalProps}>\r\n <div style={{ maxHeight: 600, width: '100%', overflow: 'auto' }}>\r\n <VtxDatagrid toolbar={false} {...newTableProps} />\r\n </div>\r\n </Modal>\r\n );\r\n}\r\nVtxImportResult.propTypes = {\r\n visible: PropTypes.bool,\r\n dataSource: PropTypes.array,\r\n columns: PropTypes.array,\r\n modalWidth: PropTypes.number,\r\n hideVisible: PropTypes.func,\r\n};\r\nexport default VtxImportResult;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAEA,SAASA,eAAT,CAAyBC,KAAzB,EAAgC;EAC5B,cAAgB,IAAAC,mBAAA,EAAO;IACnBC,OAAO,EAAEF,KAAK,CAACE,OAAN,IAAiB,KADP;IAEnBC,UAAU,EAAEH,KAAK,CAACG,U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vB,UAAU,EAAEsB,qBAAA,CAAUE,KAFE;EAGxBvB,OAAO,EAAEqB,qBAAA,CAAUE,KAHK;EAIxBtB,UAAU,EAAEoB,qBAAA,CAAUG,MAJE;EAKxBhB,WAAW,EAAEa,qBAAA,CAAUI;AALC,CAA5B;eAOe9B,e"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-import/style/index.js"],"names":[],"mappings":";;AAAA;;AACA;;AACA;;AACA","sourcesContent":["import 'antd/lib/modal/style';\nimport 'antd/lib/button/style';\nimport 'antd/lib/message/style';\nimport './index.less';\n"],"file":"css.js"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-import/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport 'antd/lib/button/style';\r\nimport 'antd/lib/message/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-import/style/index.js"],"names":[],"mappings":";;AAAA;;AACA;;AACA;;AACA","sourcesContent":["import 'antd/lib/modal/style';\nimport 'antd/lib/button/style';\nimport 'antd/lib/message/style';\nimport './index.less';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-import/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport 'antd/lib/button/style';\r\nimport 'antd/lib/message/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
@@ -1,8 +1,8 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
- @prefix-cls: vtx-datagrid;
3
-
4
- .@{prefix-cls} when(@theme=default) {
5
- &-modal {
6
- background-color: '#f8f8f8';
7
- }
8
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+ @prefix-cls: vtx-datagrid;
3
+
4
+ .@{prefix-cls} when(@theme=default) {
5
+ &-modal {
6
+ background-color: '#f8f8f8';
7
+ }
8
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
26
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
27
 
28
28
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
29
29
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-input/TextArea.jsx"],"names":["TextArea","props","ref","maxLength","showCount","placeholder","rest","len","value","render","propTypes","PropTypes","number","string","bool"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,gBAAG,uBAAW,UAACC,KAAD,EAAQC,GAAR,EAAgB;AACxC,yBAA4ED,KAA5E,CAAQE,SAAR;AAAA,MAAQA,SAAR,iCAAoB,GAApB;AAAA,yBAA4EF,KAA5E,CAAyBG,SAAzB;AAAA,MAAyBA,SAAzB,iCAAqC,IAArC;AAAA,2BAA4EH,KAA5E,CAA2CI,WAA3C;AAAA,MAA2CA,WAA3C,mCAAyD,KAAzD;AAAA,MAAmEC,IAAnE,4BAA4EL,KAA5E;;AACA,MAAMM,GAAG,GAAG,2BAAUN,KAAK,CAACO,KAAhB,EAAuB;AAAEJ,IAAAA,SAAS,EAATA;AAAF,GAAvB,CAAZ;;AAEA,MAAIK,MAAM,gBACN,gCAAC,iBAAD,CAAO,QAAP;AAAgB,IAAA,WAAW,EAAEJ,WAA7B;AAA0C,IAAA,SAAS,EAAEF;AAArD,KAAoEG,IAApE;AAA0E,IAAA,GAAG,EAAEJ;AAA/E,KADJ;;AAIAE,EAAAA,SAAS,IACL,WAAWH,KADf,KAEKQ,MAAM,gBACH;AAAK,IAAA,SAAS,EAAC,oBAAf;AAAoC,4BAAeF,GAAf,cAAsBJ,SAAtB;AAApC,KACKM,MADL,CAHR;AAOA,SAAOA,MAAP;AACH,CAhBgB,CAAjB;eAkBeT,Q;;AAEfA,QAAQ,CAACU,SAAT,GAAqB;AACjBP,EAAAA,SAAS,EAAEQ,sBAAUC,MADJ;AAEjBJ,EAAAA,KAAK,EAAEG,sBAAUE,MAFA;AAGjBT,EAAAA,SAAS,EAAEO,sBAAUG,IAHJ;AAIjBT,EAAAA,WAAW,EAAEM,sBAAUE;AAJN,CAArB","sourcesContent":["import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport Input from 'antd/lib/input';\nimport useLength from './useLength';\n\nconst TextArea = forwardRef((props, ref) => {\n const { maxLength = 200, showCount = true, placeholder = '请输入', ...rest } = props;\n const len = useLength(props.value, { showCount });\n\n let render = (\n <Input.TextArea placeholder={placeholder} maxLength={maxLength} {...rest} ref={ref} />\n );\n\n showCount &&\n 'value' in props &&\n (render = (\n <div className=\"vtx-input-textarea\" data-count={`${len}/${maxLength}`}>\n {render}\n </div>\n ));\n return render;\n});\n\nexport default TextArea;\n\nTextArea.propTypes = {\n maxLength: PropTypes.number,\n value: PropTypes.string,\n showCount: PropTypes.bool,\n placeholder: PropTypes.string,\n};\n"],"file":"TextArea.js"}
1
+ {"version":3,"file":"TextArea.js","names":["TextArea","forwardRef","props","ref","maxLength","showCount","placeholder","rest","len","useLength","value","render","propTypes","PropTypes","number","string","bool"],"sources":["vtx-input/TextArea.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Input from 'antd/lib/input';\r\nimport useLength from './useLength';\r\n\r\nconst TextArea = forwardRef((props, ref) => {\r\n const { maxLength = 200, showCount = true, placeholder = '请输入', ...rest } = props;\r\n const len = useLength(props.value, { showCount });\r\n\r\n let render = (\r\n <Input.TextArea placeholder={placeholder} maxLength={maxLength} {...rest} ref={ref} />\r\n );\r\n\r\n showCount &&\r\n 'value' in props &&\r\n (render = (\r\n <div className=\"vtx-input-textarea\" data-count={`${len}/${maxLength}`}>\r\n {render}\r\n </div>\r\n ));\r\n return render;\r\n});\r\n\r\nexport default TextArea;\r\n\r\nTextArea.propTypes = {\r\n maxLength: PropTypes.number,\r\n value: PropTypes.string,\r\n showCount: PropTypes.bool,\r\n placeholder: PropTypes.string,\r\n};\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,gBAAG,IAAAC,iBAAA,EAAW,UAACC,KAAD,EAAQC,GAAR,EAAgB;EACxC,uBAA4ED,KAA5E,CAAQE,SAAR;EAAA,IAAQA,SAAR,iCAAoB,GAApB;EAAA,uBAA4EF,KAA5E,CAAyBG,SAAzB;EAAA,IAAyBA,SAAzB,iCAAqC,IAArC;EAAA,yBAA4EH,KAA5E,CAA2CI,WAA3C;EAAA,IAA2CA,WAA3C,mCAAyD,KAAzD;EAAA,IAAmEC,IAAnE,4BAA4EL,KAA5E;;EACA,IAAMM,GAAG,GAAG,IAAAC,qBAAA,EAAUP,KAAK,CAACQ,KAAhB,EAAuB;IAAEL,SAAS,EAATA;EAAF,CAAvB,CAAZ;;EAEA,IAAIM,MAAM,gBACN,gCAAC,iBAAD,CAAO,QAAP;IAAgB,WAAW,EAAEL,WAA7B;IAA0C,SAAS,EAAEF;EAArD,GAAoEG,IAApE;IAA0E,GAAG,EAAEJ;EAA/E,GADJ;;EAIAE,SAAS,IACL,WAAWH,KADf,KAEKS,MAAM,gBACH;IAAK,SAAS,EAAC,oBAAf;IAAoC,wBAAeH,GAAf,cAAsBJ,SAAtB;EAApC,GACKO,MADL,CAHR;EAOA,OAAOA,MAAP;AACH,CAhBgB,CAAjB;eAkBeX,Q;;AAEfA,QAAQ,CAACY,SAAT,GAAqB;EACjBR,SAAS,EAAES,qBAAA,CAAUC,MADJ;EAEjBJ,KAAK,EAAEG,qBAAA,CAAUE,MAFA;EAGjBV,SAAS,EAAEQ,qBAAA,CAAUG,IAHJ;EAIjBV,WAAW,EAAEO,qBAAA,CAAUE;AAJN,CAArB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -31,11 +31,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
31
31
 
32
32
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
33
 
34
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
34
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
35
35
 
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
36
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
37
 
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
38
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
39
 
40
40
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
41
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-input/index.jsx"],"names":["VtxInput","props","ref","showCount","maxLength","specialCharactersFilter","trim","onChange","onBlur","placeholder","rest","len","value","newProps","e","target","$e","suffix","propTypes","PropTypes","number","string","bool","func","oneOfType","object","Search","Input","Group","Password","TextArea"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,gBAAG,uBAAW,UAACC,KAAD,EAAQC,GAAR,EAAgB;AACxC,MACIC,SADJ,GASIF,KATJ,CACIE,SADJ;AAAA,yBASIF,KATJ,CAEIG,SAFJ;AAAA,MAEIA,SAFJ,iCAEgB,EAFhB;AAAA,8BASIH,KATJ,CAGII,uBAHJ;AAAA,MAGIA,uBAHJ,sCAG8B,IAH9B;AAAA,oBASIJ,KATJ,CAIIK,IAJJ;AAAA,MAIIA,IAJJ,4BAIW,IAJX;AAAA,MAKIC,QALJ,GASIN,KATJ,CAKIM,QALJ;AAAA,MAMIC,OANJ,GASIP,KATJ,CAMIO,MANJ;AAAA,2BASIP,KATJ,CAOIQ,WAPJ;AAAA,MAOIA,WAPJ,mCAOkB,KAPlB;AAAA,MAQOC,IARP,4BASIT,KATJ;;AAWA,MAAMU,GAAG,GAAG,2BAAUV,KAAK,CAACW,KAAhB,EAAuB;AAAET,IAAAA,SAAS,EAATA;AAAF,GAAvB,CAAZ;;AAEA,MAAIU,QAAQ;AACRX,IAAAA,GAAG,EAAHA,GADQ;AAERE,IAAAA,SAAS,EAATA,SAFQ;AAGRK,IAAAA,WAAW,EAAXA,WAHQ;AAIRD,IAAAA,MAJQ,kBAIDM,CAJC,EAIE;AACN,UAAIF,KAAK,GAAGE,CAAC,CAACC,MAAF,CAASH,KAArB;AACA,UAAII,EAAE,GAAGF,CAAT;;AACA,UAAIR,IAAJ,EAAU;AACNM,QAAAA,KAAK,GAAGA,KAAK,CAACN,IAAN,EAAR;AACH;;AACD,UAAID,uBAAuB,IAAIO,KAA/B,EAAsC;AAClCI,QAAAA,EAAE,GAAG,wBAAUF,CAAV,CAAL;AACAE,QAAAA,EAAE,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import cloneDeep from 'lodash.clonedeep';\nimport TextArea from './TextArea';\nimport useLength from './useLength';\nimport getComponentProps from '../_util/getComponentProps';\nimport filterSpecialCharacters from '../_util/filterSpecialCharacters';\n\nconst VtxInput = forwardRef((props, ref) => {\n const {\n showCount,\n maxLength = 32,\n specialCharactersFilter = true,\n trim = true,\n onChange,\n onBlur,\n placeholder = '请输入',\n ...rest\n } = props;\n\n const len = useLength(props.value, { showCount });\n\n let newProps = {\n ref,\n maxLength,\n placeholder,\n onBlur(e) {\n let value = e.target.value;\n let $e = e;\n if (trim) {\n value = value.trim();\n }\n if (specialCharactersFilter && value) {\n $e = cloneDeep(e);\n $e.target.value = filterSpecialCharacters(\n value,\n getComponentProps(specialCharactersFilter),\n );\n onChange && onChange($e);\n }\n onBlur && onBlur($e);\n },\n onChange,\n ...rest,\n };\n\n showCount &&\n 'value' in props &&\n (newProps = {\n suffix: `${len}/${maxLength}`,\n ...newProps,\n });\n\n return <Input {...newProps} autoComplete=\"off\" />;\n});\n\nVtxInput.propTypes = {\n maxLength: PropTypes.number,\n value: PropTypes.string,\n showCount: PropTypes.bool,\n onChange: PropTypes.func,\n onBlur: PropTypes.func,\n placeholder: PropTypes.string,\n trim: PropTypes.bool,\n specialCharactersFilter: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),\n};\n\nVtxInput.Search = Input.Search;\nVtxInput.Group = Input.Group;\nVtxInput.Password = Input.Password;\nVtxInput.TextArea = TextArea;\n\nexport default VtxInput;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["VtxInput","forwardRef","props","ref","showCount","maxLength","specialCharactersFilter","trim","onChange","onBlur","placeholder","rest","len","useLength","value","newProps","e","target","$e","cloneDeep","filterSpecialCharacters","getComponentProps","suffix","propTypes","PropTypes","number","string","bool","func","oneOfType","object","Search","Input","Group","Password","TextArea"],"sources":["vtx-input/index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Input from 'antd/lib/input';\r\nimport cloneDeep from 'lodash.clonedeep';\r\nimport TextArea from './TextArea';\r\nimport useLength from './useLength';\r\nimport getComponentProps from '../_util/getComponentProps';\r\nimport filterSpecialCharacters from '../_util/filterSpecialCharacters';\r\n\r\nconst VtxInput = forwardRef((props, ref) => {\r\n const {\r\n showCount,\r\n maxLength = 32,\r\n specialCharactersFilter = true,\r\n trim = true,\r\n onChange,\r\n onBlur,\r\n placeholder = '请输入',\r\n ...rest\r\n } = props;\r\n\r\n const len = useLength(props.value, { showCount });\r\n\r\n let newProps = {\r\n ref,\r\n maxLength,\r\n placeholder,\r\n onBlur(e) {\r\n let value = e.target.value;\r\n let $e = e;\r\n if (trim) {\r\n value = value.trim();\r\n }\r\n if (specialCharactersFilter && value) {\r\n $e = cloneDeep(e);\r\n $e.target.value = filterSpecialCharacters(\r\n value,\r\n getComponentProps(specialCharactersFilter),\r\n );\r\n onChange && onChange($e);\r\n }\r\n onBlur && onBlur($e);\r\n },\r\n onChange,\r\n ...rest,\r\n };\r\n\r\n showCount &&\r\n 'value' in props &&\r\n (newProps = {\r\n suffix: `${len}/${maxLength}`,\r\n ...newProps,\r\n });\r\n\r\n return <Input {...newProps} autoComplete=\"off\" />;\r\n});\r\n\r\nVtxInput.propTypes = {\r\n maxLength: PropTypes.number,\r\n value: PropTypes.string,\r\n showCount: PropTypes.bool,\r\n onChange: PropTypes.func,\r\n onBlur: PropTypes.func,\r\n placeholder: PropTypes.string,\r\n trim: PropTypes.bool,\r\n specialCharactersFilter: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),\r\n};\r\n\r\nVtxInput.Search = Input.Search;\r\nVtxInput.Group = Input.Group;\r\nVtxInput.Password = Input.Password;\r\nVtxInput.TextArea = TextArea;\r\n\r\nexport default VtxInput;\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,gBAAG,IAAAC,iBAAA,E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EAARA;EApBQ,GAqBLG,IArBK,CAAZ;;EAwBAP,SAAS,IACL,WAAWF,KADf,KAEKa,QAAQ;IACLO,MAAM,YAAKV,GAAL,cAAYP,SAAZ;EADD,GAEFU,QAFE,CAFb;EAOA,oBAAO,gCAAC,iBAAD,eAAWA,QAAX;IAAqB,YAAY,EAAC;EAAlC,GAAP;AACH,CA9CgB,CAAjB;AAgDAf,QAAQ,CAACuB,SAAT,GAAqB;EACjBlB,SAAS,EAAEmB,qBAAA,CAAUC,MADJ;EAEjBX,KAAK,EAAEU,qBAAA,CAAUE,MAFA;EAGjBtB,SAAS,EAAEoB,qBAAA,CAAUG,IAHJ;EAIjBnB,QAAQ,EAAEgB,qBAAA,CAAUI,IAJH;EAKjBnB,MAAM,EAAEe,qBAAA,CAAUI,IALD;EAMjBlB,WAAW,EAAEc,qBAAA,CAAUE,MANN;EAOjBnB,IAAI,EAAEiB,qBAAA,CAAUG,IAPC;EAQjBrB,uBAAuB,EAAEkB,qBAAA,CAAUK,SAAV,CAAoB,CAACL,qBAAA,CAAUG,IAAX,EAAiBH,qBAAA,CAAUM,MAA3B,CAApB;AARR,CAArB;AAWA9B,QAAQ,CAAC+B,MAAT,GAAkBC,iBAAA,CAAMD,MAAxB;AACA/B,QAAQ,CAACiC,KAAT,GAAiBD,iBAAA,CAAMC,KAAvB;AACAjC,QAAQ,CAACkC,QAAT,GAAoBF,iBAAA,CAAME,QAA1B;AACAlC,QAAQ,CAACmC,QAAT,GAAoBA,oBAApB;eAEenC,Q"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-input/style/index.js"],"names":[],"mappings":";;AAAA;;AACA","sourcesContent":["import 'antd/lib/input/style';\nimport './index.less';\n"],"file":"css.js"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-input/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-input/style/index.js"],"names":[],"mappings":";;AAAA;;AACA","sourcesContent":["import 'antd/lib/input/style';\nimport './index.less';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-input/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA"}
@@ -1,24 +1,24 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
-
3
- .vtx-input-textarea {
4
- position: relative;
5
- &::after {
6
- position: absolute;
7
- right: 12px;
8
- bottom: 8px;
9
- color: @text-color-secondary;
10
- line-height: @line-height-base;
11
- white-space: nowrap;
12
- content: attr(data-count);
13
- pointer-events: none;
14
- }
15
- }
16
- .ant-input {
17
- resize: none;
18
- }
19
- .ant-input-affix-wrapper .ant-input-suffix {
20
- color: @text-color-secondary;
21
- }
22
- .ant-input-affix-wrapper .ant-input:not(:last-child) {
23
- padding-right: 48px;
24
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
3
+ .vtx-input-textarea {
4
+ position: relative;
5
+ &::after {
6
+ position: absolute;
7
+ right: 12px;
8
+ bottom: 8px;
9
+ color: @text-color-secondary;
10
+ line-height: @line-height-base;
11
+ white-space: nowrap;
12
+ content: attr(data-count);
13
+ pointer-events: none;
14
+ }
15
+ }
16
+ .ant-input {
17
+ resize: none;
18
+ }
19
+ .ant-input-affix-wrapper .ant-input-suffix {
20
+ color: @text-color-secondary;
21
+ }
22
+ .ant-input-affix-wrapper .ant-input:not(:last-child) {
23
+ padding-right: 48px;
24
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-input/useLength.js"],"names":["useLength","val","showCount","len","setLen","String","length"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,GAAkC;AAAA,MAAjCC,GAAiC,uEAA3B,EAA2B;;AAAA,iFAAP,EAAO;AAAA,MAArBC,SAAqB,QAArBA,SAAqB;;AAChD,kBAAsB,qBAAS,CAAT,CAAtB;AAAA;AAAA,MAAOC,GAAP;AAAA,MAAYC,MAAZ;;AACA,wBAAU,YAAM;AACZF,IAAAA,SAAS,IAAIE,MAAM,CAACC,MAAM,CAACJ,GAAD,aAACA,GAAD,cAACA,GAAD,GAAQ,EAAR,CAAN,CAAkBK,MAAnB,CAAnB;AACH,GAFD,EAEG,CAACL,GAAD,CAFH;AAGA,SAAOE,GAAP;AACH,CAND;;eAQeH,S","sourcesContent":["import { useState, useEffect } from 'react';\n\nconst useLength = (val = '', { showCount } = {}) => {\n const [len, setLen] = useState(0);\n useEffect(() => {\n showCount && setLen(String(val ?? '').length);\n }, [val]);\n return len;\n};\n\nexport default useLength;\n"],"file":"useLength.js"}
1
+ {"version":3,"file":"useLength.js","names":["useLength","val","showCount","useState","len","setLen","useEffect","String","length"],"sources":["vtx-input/useLength.js"],"sourcesContent":["import { useState, useEffect } from 'react';\r\n\r\nconst useLength = (val = '', { showCount } = {}) => {\r\n const [len, setLen] = useState(0);\r\n useEffect(() => {\r\n showCount && setLen(String(val ?? '').length);\r\n }, [val]);\r\n return len;\r\n};\r\n\r\nexport default useLength;\r\n"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,GAAkC;EAAA,IAAjCC,GAAiC,uEAA3B,EAA2B;;EAAA,+EAAP,EAAO;EAAA,IAArBC,SAAqB,QAArBA,SAAqB;;EAChD,gBAAsB,IAAAC,eAAA,EAAS,CAAT,CAAtB;EAAA;EAAA,IAAOC,GAAP;EAAA,IAAYC,MAAZ;;EACA,IAAAC,gBAAA,EAAU,YAAM;IACZJ,SAAS,IAAIG,MAAM,CAACE,MAAM,CAACN,GAAD,aAACA,GAAD,cAACA,GAAD,GAAQ,EAAR,CAAN,CAAkBO,MAAnB,CAAnB;EACH,CAFD,EAEG,CAACP,GAAD,CAFH;EAGA,OAAOG,GAAP;AACH,CAND;;eAQeJ,S"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-modal/Title.jsx"],"names":["Title","props","text","subtitle","propTypes","PropTypes","oneOfType","string","node"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEA,SAASA,KAAT,CAAeC,KAAf,EAAsB;AAClB,MAAQC,IAAR,GAA2BD,KAA3B,CAAQC,IAAR;AAAA,MAAcC,QAAd,GAA2BF,KAA3B,CAAcE,QAAd;AACA,sBACI;AAAK,IAAA,SAAS,EAAC;AAAf,kBACI;AAAM,IAAA,SAAS,EAAC;AAAhB,KAAyCD,IAAzC,CADJ,EAEKC,QAAQ,iBAAI;AAAM,IAAA,SAAS,EAAC;AAAhB,KAA6CA,QAA7C,CAFjB,CADJ;AAMH;;AAEDH,KAAK,CAACI,SAAN,GAAkB;AACdF,EAAAA,IAAI,EAAEG,sBAAUC,SAAV,CAAoB,CAACD,sBAAUE,MAAX,EAAmBF,sBAAUG,IAA7B,CAApB,CADQ;AAEdL,EAAAA,QAAQ,EAAEE,sBAAUC,SAAV,CAAoB,CAACD,sBAAUE,MAAX,EAAmBF,sBAAUG,IAA7B,CAApB;AAFI,CAAlB;eAKeR,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction Title(props) {\n const { text, subtitle } = props;\n return (\n <div className=\"vtx-modal-header-title\">\n <span className=\"vtx-modal-header-text\">{text}</span>\n {subtitle && <span className=\"vtx-modal-header-subtitle\">{subtitle}</span>}\n </div>\n );\n}\n\nTitle.propTypes = {\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n};\n\nexport default Title;\n"],"file":"Title.js"}
1
+ {"version":3,"file":"Title.js","names":["Title","props","text","subtitle","propTypes","PropTypes","oneOfType","string","node"],"sources":["vtx-modal/Title.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nfunction Title(props) {\r\n const { text, subtitle } = props;\r\n return (\r\n <div className=\"vtx-modal-header-title\">\r\n <span className=\"vtx-modal-header-text\">{text}</span>\r\n {subtitle && <span className=\"vtx-modal-header-subtitle\">{subtitle}</span>}\r\n </div>\r\n );\r\n}\r\n\r\nTitle.propTypes = {\r\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\r\n subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\r\n};\r\n\r\nexport default Title;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEA,SAASA,KAAT,CAAeC,KAAf,EAAsB;EAClB,IAAQC,IAAR,GAA2BD,KAA3B,CAAQC,IAAR;EAAA,IAAcC,QAAd,GAA2BF,KAA3B,CAAcE,QAAd;EACA,oBACI;IAAK,SAAS,EAAC;EAAf,gBACI;IAAM,SAAS,EAAC;EAAhB,GAAyCD,IAAzC,CADJ,EAEKC,QAAQ,iBAAI;IAAM,SAAS,EAAC;EAAhB,GAA6CA,QAA7C,CAFjB,CADJ;AAMH;;AAEDH,KAAK,CAACI,SAAN,GAAkB;EACdF,IAAI,EAAEG,qBAAA,CAAUC,SAAV,CAAoB,CAACD,qBAAA,CAAUE,MAAX,EAAmBF,qBAAA,CAAUG,IAA7B,CAApB,CADQ;EAEdL,QAAQ,EAAEE,qBAAA,CAAUC,SAAV,CAAoB,CAACD,qBAAA,CAAUE,MAAX,EAAmBF,qBAAA,CAAUG,IAA7B,CAApB;AAFI,CAAlB;eAKeR,K"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -33,9 +33,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
33
 
34
34
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
35
 
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
36
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
37
 
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
38
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
39
 
40
40
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
41
 
@@ -162,8 +162,8 @@ function VtxModal(props) {
162
162
  setFullScreen(initFullScreen);
163
163
  }
164
164
  };
165
- /*
166
- *重写title,加入对话框全屏功能
165
+ /*
166
+ *重写title,加入对话框全屏功能
167
167
  */
168
168
 
169
169
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-modal/index.jsx"],"names":["initDragArg","init_x","init_y","x_move","y_move","documentMouseMove","documentMouseUp","initFullScreen","isFull","className","VtxModal","props","fullScreen","setFullScreen","dragArg","setDragArg","classId","Date","getTime","Math","random","wrapClassName","closable","title","maximize","onModalResize","moveable","timer","setTimeout","el","document","getElementsByClassName","option","height","window","getComputedStyle","clearTimeout","visible","modalHead","current","style","cursor","onmousedown","startDrag","e","preventDefault","onmouseup","onmousemove","clientX","clientY","prev","onCancel","renderTitle","paddingRight","fullScreenClass","bodyStyle","maxHeight","innerHeight","transformStyle","transform","newProps","maskClosable","destroyOnClose","width","children","info","Modal","success","error","warning","confirm","propTypes","PropTypes","bool","string","oneOfType","element","func","object","node","Title","size","xsmall","small","middle","large"],"mappings":";;;;;;;;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,WAAW,GAAG;AAChBC,EAAAA,MAAM,EAAE,CADQ;AAEhBC,EAAAA,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ADC;AAETC,EAAAA,KAAK,EAAE,GAFE;AAGTC,EAAAA,MAAM,EAAE,GAHC;AAITC,EAAAA,KAAK,EAAE;AAJE,CAAb;AAOA3E,QAAQ,CAACuE,IAAT,GAAgBA,IAAhB;eAEevE,Q","sourcesContent":["/*\n * @Author: chenxinyu\n * @Date: 2021-03-24 21:47:52\n * @LastEditors: your name\n * @LastEditTime: 2022-01-15 22:13:58\n * @Description: 对话框组件\n * @FilePath: \\react-components\\components\\vtx-modal\\index.jsx\n */\nimport React, { useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport useUpdateEffect from 'ahooks/es/useUpdateEffect';\nimport useSetState from 'ahooks/es/useSetState';\nimport CloseOutlined from '@ant-design/icons/CloseOutlined';\nimport FullscreenExitOutlined from '@ant-design/icons/FullscreenExitOutlined';\nimport FullscreenOutlined from '@ant-design/icons/FullscreenOutlined';\nimport classnames from 'classnames';\nimport Modal from 'antd/lib/modal';\nimport Title from './Title';\n\n// 对话框位置初始参数\nconst initDragArg = {\n init_x: 0,\n init_y: 0,\n x_move: 0,\n y_move: 0,\n documentMouseMove: null,\n documentMouseUp: null,\n};\n\n// 全屏参数\nconst initFullScreen = {\n isFull: false,\n className: '',\n};\n\nfunction VtxModal(props) {\n const [fullScreen, setFullScreen] = useSetState(initFullScreen); // 是否是全屏状态\n const [dragArg, setDragArg] = useSetState(initDragArg); // 拖动配置\n const classId = useRef(new Date().getTime() + Math.random());\n\n let {\n wrapClassName = '',\n closable = true, // 是否显示右上角关闭按钮\n title = '', // 对话框title\n maximize = false, // 是否显示对话框全屏按钮\n onModalResize, // 对话框全屏回调\n moveable = false, // 对话框是否允许拖动\n } = props;\n\n // 监听对话框大小变化回调(忽略首次执行)\n useUpdateEffect(() => {\n const timer = setTimeout(() => {\n if (onModalResize && typeof onModalResize === 'function') {\n const el = document.getElementsByClassName('ant-modal-body')[0];\n const option = {\n height: window.getComputedStyle(el).height,\n isFull: fullScreen.isFull,\n };\n onModalResize(option);\n }\n }, 100);\n return () => clearTimeout(timer);\n }, [fullScreen.isFull]);\n\n // 拖拽\n useEffect(() => {\n if (props.visible && moveable) {\n const timer = setTimeout(() => {\n const modalHead = document\n .getElementsByClassName(classId.current)?.[0]\n ?.getElementsByClassName('ant-modal-header')?.[0];\n if (modalHead) {\n modalHead.style.cursor = 'move';\n modalHead.onmousedown = startDrag;\n }\n }, 200);\n return () => clearTimeout(timer);\n }\n });\n\n const startDrag = e => {\n e.preventDefault();\n // 全屏模式下禁止拖拽\n if (!fullScreen.isFull) {\n setDragArg({\n documentMouseUp: document.onmouseup,\n documentMouseMove: document.onmousemove,\n init_x: e.clientX - dragArg.x_move,\n init_y: e.clientY - dragArg.y_move,\n });\n document.onmousemove = e => {\n setDragArg(prev => ({\n x_move: e.clientX - prev.init_x,\n y_move: e.clientY - prev.init_y,\n }));\n };\n document.onmouseup = () => {\n document.onmousemove = dragArg.documentMouseMove;\n document.onmouseup = dragArg.documentMouseUp;\n };\n }\n };\n\n // 关闭对话框,初始化位置\n const onCancel = () => {\n if (props.onCancel && typeof props.onCancel === 'function') {\n props.onCancel();\n // TODO 关闭弹框会闪一下,待解决\n setDragArg(initDragArg);\n setFullScreen(initFullScreen);\n }\n };\n\n /*\n *重写title,加入对话框全屏功能\n */\n title = (function renderTitle() {\n return (\n <div className=\"vtx-modal-title\" style={{ paddingRight: closable ? '32px' : '0px' }}>\n <div className=\"vtx-modal-title_name\">{title}</div>\n {maximize ? (\n <div className=\"vtx-modal-maximizeIcon\">\n <p\n onClick={() => {\n let fullScreenClass = '';\n if (!fullScreen.isFull) {\n fullScreenClass = 'vtx-modal-maxClass';\n }\n setFullScreen({\n isFull: !fullScreen.isFull,\n className: fullScreenClass,\n });\n }}\n >\n {fullScreen.isFull ? (\n <FullscreenExitOutlined />\n ) : (\n <FullscreenOutlined />\n )}\n </p>\n </div>\n ) : null}\n {closable ? (\n <div className=\"vtx-modal-close\">\n <p onClick={onCancel}>\n {/* <Icon type=\"close\" /> */}\n <CloseOutlined />\n </p>\n </div>\n ) : (\n ''\n )}\n </div>\n );\n })();\n\n let bodyStyle = {\n ...props.bodyStyle,\n };\n\n /* 限制最大高度 */\n if (!fullScreen.isFull) {\n bodyStyle = {\n maxHeight: `${window.innerHeight * 0.7}px`,\n ...bodyStyle,\n };\n }\n\n const transformStyle = {\n transform: `translate(${dragArg.x_move}px,${dragArg.y_move}px)`,\n };\n\n const newProps = {\n maskClosable: false,\n destroyOnClose: true,\n width: 700,\n ...props,\n closable: false,\n title,\n wrapClassName: classnames(\n 'vtx-modal',\n wrapClassName,\n fullScreen.className,\n classId.current,\n ),\n bodyStyle,\n onCancel,\n style: {\n ...props.style,\n ...(fullScreen.isFull ? {} : transformStyle),\n },\n };\n\n return <Modal {...newProps}>{props.children}</Modal>;\n}\n\nVtxModal.info = Modal.info;\nVtxModal.success = Modal.success;\nVtxModal.error = Modal.error;\nVtxModal.warning = Modal.warning;\nVtxModal.confirm = Modal.confirm;\n\nVtxModal.propTypes = {\n visible: PropTypes.bool,\n wrapClassName: PropTypes.string,\n closable: PropTypes.bool,\n title: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),\n maximize: PropTypes.bool,\n onModalResize: PropTypes.func,\n moveable: PropTypes.bool,\n onCancel: PropTypes.func,\n bodyStyle: PropTypes.object,\n style: PropTypes.object,\n children: PropTypes.node,\n};\n\nVtxModal.Title = Title;\n\nconst size = {\n xsmall: 392,\n small: 500,\n middle: 744,\n large: 1096,\n};\n\nVtxModal.size = size;\n\nexport default VtxModal;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["initDragArg","init_x","init_y","x_move","y_move","documentMouseMove","documentMouseUp","initFullScreen","isFull","className","VtxModal","props","useSetState","fullScreen","setFullScreen","dragArg","setDragArg","classId","useRef","Date","getTime","Math","random","wrapClassName","closable","title","maximize","onModalResize","moveable","useUpdateEffect","timer","setTimeout","el","document","getElementsByClassName","option","height","window","getComputedStyle","clearTimeout","useEffect","visible","modalHead","current","style","cursor","onmousedown","startDrag","e","preventDefault","onmouseup","onmousemove","clientX","clientY","prev","onCancel","renderTitle","paddingRight","fullScreenClass","bodyStyle","maxHeight","innerHeight","transformStyle","transform","newProps","maskClosable","destroyOnClose","width","classnames","children","info","Modal","success","error","warning","confirm","propTypes","PropTypes","bool","string","oneOfType","element","func","object","node","Title","size","xsmall","small","middle","large"],"sources":["vtx-modal/index.jsx"],"sourcesContent":["/*\r\n * @Author: chenxinyu\r\n * @Date: 2021-03-24 21:47:52\r\n * @LastEditors: your name\r\n * @LastEditTime: 2022-01-15 22:13:58\r\n * @Description: 对话框组件\r\n * @FilePath: \\react-components\\components\\vtx-modal\\index.jsx\r\n */\r\nimport React, { useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport useUpdateEffect from 'ahooks/es/useUpdateEffect';\r\nimport useSetState from 'ahooks/es/useSetState';\r\nimport CloseOutlined from '@ant-design/icons/CloseOutlined';\r\nimport FullscreenExitOutlined from '@ant-design/icons/FullscreenExitOutlined';\r\nimport FullscreenOutlined from '@ant-design/icons/FullscreenOutlined';\r\nimport classnames from 'classnames';\r\nimport Modal from 'antd/lib/modal';\r\nimport Title from './Title';\r\n\r\n// 对话框位置初始参数\r\nconst initDragArg = {\r\n init_x: 0,\r\n init_y: 0,\r\n x_move: 0,\r\n y_move: 0,\r\n documentMouseMove: null,\r\n documentMouseUp: null,\r\n};\r\n\r\n// 全屏参数\r\nconst initFullScreen = {\r\n isFull: false,\r\n className: '',\r\n};\r\n\r\nfunction VtxModal(props) {\r\n const [fullScreen, setFullScreen] = useSetState(initFullScreen); // 是否是全屏状态\r\n const [dragArg, setDragArg] = useSetState(initDragArg); // 拖动配置\r\n const classId = useRef(new Date().getTime() + Math.random());\r\n\r\n let {\r\n wrapClassName = '',\r\n closable = true, // 是否显示右上角关闭按钮\r\n title = '', // 对话框title\r\n maximize = false, // 是否显示对话框全屏按钮\r\n onModalResize, // 对话框全屏回调\r\n moveable = false, // 对话框是否允许拖动\r\n } = props;\r\n\r\n // 监听对话框大小变化回调(忽略首次执行)\r\n useUpdateEffect(() => {\r\n const timer = setTimeout(() => {\r\n if (onModalResize && typeof onModalResize === 'function') {\r\n const el = document.getElementsByClassName('ant-modal-body')[0];\r\n const option = {\r\n height: window.getComputedStyle(el).height,\r\n isFull: fullScreen.isFull,\r\n };\r\n onModalResize(option);\r\n }\r\n }, 100);\r\n return () => clearTimeout(timer);\r\n }, [fullScreen.isFull]);\r\n\r\n // 拖拽\r\n useEffect(() => {\r\n if (props.visible && moveable) {\r\n const timer = setTimeout(() => {\r\n const modalHead = document\r\n .getElementsByClassName(classId.current)?.[0]\r\n ?.getElementsByClassName('ant-modal-header')?.[0];\r\n if (modalHead) {\r\n modalHead.style.cursor = 'move';\r\n modalHead.onmousedown = startDrag;\r\n }\r\n }, 200);\r\n return () => clearTimeout(timer);\r\n }\r\n });\r\n\r\n const startDrag = e => {\r\n e.preventDefault();\r\n // 全屏模式下禁止拖拽\r\n if (!fullScreen.isFull) {\r\n setDragArg({\r\n documentMouseUp: document.onmouseup,\r\n documentMouseMove: document.onmousemove,\r\n init_x: e.clientX - dragArg.x_move,\r\n init_y: e.clientY - dragArg.y_move,\r\n });\r\n document.onmousemove = e => {\r\n setDragArg(prev => ({\r\n x_move: e.clientX - prev.init_x,\r\n y_move: e.clientY - prev.init_y,\r\n }));\r\n };\r\n document.onmouseup = () => {\r\n document.onmousemove = dragArg.documentMouseMove;\r\n document.onmouseup = dragArg.documentMouseUp;\r\n };\r\n }\r\n };\r\n\r\n // 关闭对话框,初始化位置\r\n const onCancel = () => {\r\n if (props.onCancel && typeof props.onCancel === 'function') {\r\n props.onCancel();\r\n // TODO 关闭弹框会闪一下,待解决\r\n setDragArg(initDragArg);\r\n setFullScreen(initFullScreen);\r\n }\r\n };\r\n\r\n /*\r\n *重写title,加入对话框全屏功能\r\n */\r\n title = (function renderTitle() {\r\n return (\r\n <div className=\"vtx-modal-title\" style={{ paddingRight: closable ? '32px' : '0px' }}>\r\n <div className=\"vtx-modal-title_name\">{title}</div>\r\n {maximize ? (\r\n <div className=\"vtx-modal-maximizeIcon\">\r\n <p\r\n onClick={() => {\r\n let fullScreenClass = '';\r\n if (!fullScreen.isFull) {\r\n fullScreenClass = 'vtx-modal-maxClass';\r\n }\r\n setFullScreen({\r\n isFull: !fullScreen.isFull,\r\n className: fullScreenClass,\r\n });\r\n }}\r\n >\r\n {fullScreen.isFull ? (\r\n <FullscreenExitOutlined />\r\n ) : (\r\n <FullscreenOutlined />\r\n )}\r\n </p>\r\n </div>\r\n ) : null}\r\n {closable ? (\r\n <div className=\"vtx-modal-close\">\r\n <p onClick={onCancel}>\r\n {/* <Icon type=\"close\" /> */}\r\n <CloseOutlined />\r\n </p>\r\n </div>\r\n ) : (\r\n ''\r\n )}\r\n </div>\r\n );\r\n })();\r\n\r\n let bodyStyle = {\r\n ...props.bodyStyle,\r\n };\r\n\r\n /* 限制最大高度 */\r\n if (!fullScreen.isFull) {\r\n bodyStyle = {\r\n maxHeight: `${window.innerHeight * 0.7}px`,\r\n ...bodyStyle,\r\n };\r\n }\r\n\r\n const transformStyle = {\r\n transform: `translate(${dragArg.x_move}px,${dragArg.y_move}px)`,\r\n };\r\n\r\n const newProps = {\r\n maskClosable: false,\r\n destroyOnClose: true,\r\n width: 700,\r\n ...props,\r\n closable: false,\r\n title,\r\n wrapClassName: classnames(\r\n 'vtx-modal',\r\n wrapClassName,\r\n fullScreen.className,\r\n classId.current,\r\n ),\r\n bodyStyle,\r\n onCancel,\r\n style: {\r\n ...props.style,\r\n ...(fullScreen.isFull ? {} : transformStyle),\r\n },\r\n };\r\n\r\n return <Modal {...newProps}>{props.children}</Modal>;\r\n}\r\n\r\nVtxModal.info = Modal.info;\r\nVtxModal.success = Modal.success;\r\nVtxModal.error = Modal.error;\r\nVtxModal.warning = Modal.warning;\r\nVtxModal.confirm = Modal.confirm;\r\n\r\nVtxModal.propTypes = {\r\n visible: PropTypes.bool,\r\n wrapClassName: PropTypes.string,\r\n closable: PropTypes.bool,\r\n title: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),\r\n maximize: PropTypes.bool,\r\n onModalResize: PropTypes.func,\r\n moveable: PropTypes.bool,\r\n onCancel: PropTypes.func,\r\n bodyStyle: PropTypes.object,\r\n style: PropTypes.object,\r\n children: PropTypes.node,\r\n};\r\n\r\nVtxModal.Title = Title;\r\n\r\nconst size = {\r\n xsmall: 392,\r\n small: 500,\r\n middle: 744,\r\n large: 1096,\r\n};\r\n\r\nVtxModal.size = size;\r\n\r\nexport default VtxModal;\r\n"],"mappings":";;;;;;;;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,WAAW,GAAG;EAChBC,MAAM,EAAE,CADQ;EAEhBC,MAAM,EAAE,CAFQ;EAGhBC,MAAM,EAAE,CAHQ;EAIhBC,MAAM,EAAE,CAJQ;EAKhBC,iBAAiB,EAAE,IALH;EAMhBC,eAAe,EAAE;AAND,CAApB,C,CASA;;AACA,IAAMC,cAAc,GAAG;EACnBC,MAAM,EAAE,KADW;EAEnBC,SAAS,EAAE;AAFQ,CAAvB;;AAKA,SAASC,QAAT,CAAkBC,KAAlB,EAAyB;EACrB,mBAAoC,IAAAC,wBAAA,EAAYL,cAAZ,CAApC;EAAA;EAAA,IAAOM,UAAP;EAAA,IAAmBC,aAAnB,oBADqB,CAC4C;;;EACjE,oBAA8B,IAAAF,wBAAA,EAAYZ,WAAZ,CAA9B;EAAA;EAAA,IAAOe,OAAP;EAAA,IAAgBC,UAAhB,oBAFqB,CAEmC;;;EACxD,IAAMC,OAAO,GAAG,IAAAC,aAAA,EAAO,IAAIC,IAAJ,GAAWC,OAAX,KAAuBC,IAAI,CAACC,MAAL,EAA9B,CAAhB;EAEA,2BAOIX,KAPJ,CACIY,aADJ;EAAA,IACIA,aADJ,qCACoB,EADpB;EAAA,sBAOIZ,KAPJ,CAEIa,QAFJ;EAAA,IAE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Q,EAAEsB,qBAAA,CAAUK,IARH;EASjBvB,SAAS,EAAEkB,qBAAA,CAAUM,MATJ;EAUjBvC,KAAK,EAAEiC,qBAAA,CAAUM,MAVA;EAWjBd,QAAQ,EAAEQ,qBAAA,CAAUO;AAXH,CAArB;AAcA1E,QAAQ,CAAC2E,KAAT,GAAiBA,iBAAjB;AAEA,IAAMC,IAAI,GAAG;EACTC,MAAM,EAAE,GADC;EAETC,KAAK,EAAE,GAFE;EAGTC,MAAM,EAAE,GAHC;EAITC,KAAK,EAAE;AAJE,CAAb;AAOAhF,QAAQ,CAAC4E,IAAT,GAAgBA,IAAhB;eAEe5E,Q"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-modal/style/index.js"],"names":[],"mappings":";;AAAA;;AACA","sourcesContent":["import 'antd/lib/modal/style';\nimport './index.less';\n"],"file":"css.js"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-modal/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-modal/style/index.js"],"names":[],"mappings":";;AAAA;;AACA","sourcesContent":["import 'antd/lib/modal/style';\nimport './index.less';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-modal/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA"}