@vtx/components 3.1.30 → 3.1.32

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 (251) hide show
  1. package/CHANGELOG.md +1325 -0
  2. package/lib/_util/filterSpecialCharacters.js +43 -54
  3. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  4. package/lib/_util/getComponentProps.js +3 -0
  5. package/lib/_util/getComponentProps.js.map +1 -1
  6. package/lib/_util/getUrlParam.js +6 -0
  7. package/lib/_util/getUrlParam.js.map +1 -1
  8. package/lib/_util/isFunction.js +1 -0
  9. package/lib/_util/isFunction.js.map +1 -1
  10. package/lib/_util/isObject.js +1 -0
  11. package/lib/_util/isObject.js.map +1 -1
  12. package/lib/_util/useColSize.js +10 -1
  13. package/lib/_util/useColSize.js.map +1 -1
  14. package/lib/_util/useInterval.js +3 -0
  15. package/lib/_util/useInterval.js.map +1 -1
  16. package/lib/_util/useSet.js +32 -14
  17. package/lib/_util/useSet.js.map +1 -1
  18. package/lib/config.js.map +1 -1
  19. package/lib/index.js +26 -0
  20. package/lib/index.js.map +1 -1
  21. package/lib/vtx-color-picker/index.js +21 -5
  22. package/lib/vtx-color-picker/index.js.map +1 -1
  23. package/lib/vtx-color-picker/style/css.js +2 -0
  24. package/lib/vtx-color-picker/style/css.js.map +1 -1
  25. package/lib/vtx-color-picker/style/index.js +2 -0
  26. package/lib/vtx-color-picker/style/index.js.map +1 -1
  27. package/lib/vtx-combogrid/Combogrid.js +74 -34
  28. package/lib/vtx-combogrid/Combogrid.js.map +1 -1
  29. package/lib/vtx-combogrid/index.js +45 -20
  30. package/lib/vtx-combogrid/index.js.map +1 -1
  31. package/lib/vtx-combogrid/style/css.js +7 -0
  32. package/lib/vtx-combogrid/style/css.js.map +1 -1
  33. package/lib/vtx-combogrid/style/index.js +7 -0
  34. package/lib/vtx-combogrid/style/index.js.map +1 -1
  35. package/lib/vtx-datagrid/Alert.js +11 -3
  36. package/lib/vtx-datagrid/Alert.js.map +1 -1
  37. package/lib/vtx-datagrid/ColumnSetting.js +44 -19
  38. package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
  39. package/lib/vtx-datagrid/ResizeableTitle.js +13 -2
  40. package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
  41. package/lib/vtx-datagrid/index.js +142 -77
  42. package/lib/vtx-datagrid/index.js.map +1 -1
  43. package/lib/vtx-datagrid/renderColumnButtons.js +35 -5
  44. package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
  45. package/lib/vtx-datagrid/style/css.js +10 -0
  46. package/lib/vtx-datagrid/style/css.js.map +1 -1
  47. package/lib/vtx-datagrid/style/index.css +0 -3
  48. package/lib/vtx-datagrid/style/index.js +10 -0
  49. package/lib/vtx-datagrid/style/index.js.map +1 -1
  50. package/lib/vtx-datagrid/style/index.less +1 -1
  51. package/lib/vtx-date-picker/QdatePicker.js +46 -16
  52. package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
  53. package/lib/vtx-date-picker/generatePicker.js +47 -6
  54. package/lib/vtx-date-picker/generatePicker.js.map +1 -1
  55. package/lib/vtx-date-picker/index.js +5 -0
  56. package/lib/vtx-date-picker/index.js.map +1 -1
  57. package/lib/vtx-date-picker/style/css.js +1 -0
  58. package/lib/vtx-date-picker/style/css.js.map +1 -1
  59. package/lib/vtx-date-picker/style/index.js +1 -0
  60. package/lib/vtx-date-picker/style/index.js.map +1 -1
  61. package/lib/vtx-editor/index.js +23 -5
  62. package/lib/vtx-editor/index.js.map +1 -1
  63. package/lib/vtx-editor/style/css.js +1 -0
  64. package/lib/vtx-editor/style/css.js.map +1 -1
  65. package/lib/vtx-editor/style/index.js +1 -0
  66. package/lib/vtx-editor/style/index.js.map +1 -1
  67. package/lib/vtx-ellipsis-text/index.js +20 -6
  68. package/lib/vtx-ellipsis-text/index.js.map +1 -1
  69. package/lib/vtx-ellipsis-text/style/css.js +1 -0
  70. package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
  71. package/lib/vtx-ellipsis-text/style/index.js +1 -0
  72. package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
  73. package/lib/vtx-export/index.js +58 -25
  74. package/lib/vtx-export/index.js.map +1 -1
  75. package/lib/vtx-export/style/css.js +5 -0
  76. package/lib/vtx-export/style/css.js.map +1 -1
  77. package/lib/vtx-export/style/index.js +5 -0
  78. package/lib/vtx-export/style/index.js.map +1 -1
  79. package/lib/vtx-form-layout/Card.js +26 -5
  80. package/lib/vtx-form-layout/Card.js.map +1 -1
  81. package/lib/vtx-form-layout/Divider.js +8 -0
  82. package/lib/vtx-form-layout/Divider.js.map +1 -1
  83. package/lib/vtx-form-layout/FormItem.js +30 -8
  84. package/lib/vtx-form-layout/FormItem.js.map +1 -1
  85. package/lib/vtx-form-layout/Pane.js +7 -2
  86. package/lib/vtx-form-layout/Pane.js.map +1 -1
  87. package/lib/vtx-form-layout/Row.js +6 -0
  88. package/lib/vtx-form-layout/Row.js.map +1 -1
  89. package/lib/vtx-form-layout/context.js +2 -0
  90. package/lib/vtx-form-layout/context.js.map +1 -1
  91. package/lib/vtx-form-layout/index.js +22 -8
  92. package/lib/vtx-form-layout/index.js.map +1 -1
  93. package/lib/vtx-form-layout/style/css.js +7 -0
  94. package/lib/vtx-form-layout/style/css.js.map +1 -1
  95. package/lib/vtx-form-layout/style/index.js +7 -0
  96. package/lib/vtx-form-layout/style/index.js.map +1 -1
  97. package/lib/vtx-image/Image.js +98 -59
  98. package/lib/vtx-image/Image.js.map +1 -1
  99. package/lib/vtx-image/Preview.js +51 -20
  100. package/lib/vtx-image/Preview.js.map +1 -1
  101. package/lib/vtx-image/PreviewGroup.js +40 -11
  102. package/lib/vtx-image/PreviewGroup.js.map +1 -1
  103. package/lib/vtx-image/index.js +6 -0
  104. package/lib/vtx-image/index.js.map +1 -1
  105. package/lib/vtx-image/style/css.js +1 -0
  106. package/lib/vtx-image/style/css.js.map +1 -1
  107. package/lib/vtx-image/style/index.css +19 -0
  108. package/lib/vtx-image/style/index.js +1 -0
  109. package/lib/vtx-image/style/index.js.map +1 -1
  110. package/lib/vtx-image/style/index.less +76 -63
  111. package/lib/vtx-import/index.js +72 -37
  112. package/lib/vtx-import/index.js.map +1 -1
  113. package/lib/vtx-import/result.js +24 -7
  114. package/lib/vtx-import/result.js.map +1 -1
  115. package/lib/vtx-import/style/css.js +3 -0
  116. package/lib/vtx-import/style/css.js.map +1 -1
  117. package/lib/vtx-import/style/index.js +3 -0
  118. package/lib/vtx-import/style/index.js.map +1 -1
  119. package/lib/vtx-import2/CheckResult.js +6 -0
  120. package/lib/vtx-import2/CheckResult.js.map +1 -1
  121. package/lib/vtx-import2/Content.js +25 -4
  122. package/lib/vtx-import2/Content.js.map +1 -1
  123. package/lib/vtx-import2/DownloadSvg.js +4 -0
  124. package/lib/vtx-import2/DownloadSvg.js.map +1 -1
  125. package/lib/vtx-import2/ImportResult.js +11 -5
  126. package/lib/vtx-import2/ImportResult.js.map +1 -1
  127. package/lib/vtx-import2/UploadSvg.js +4 -0
  128. package/lib/vtx-import2/UploadSvg.js.map +1 -1
  129. package/lib/vtx-import2/index.js +92 -38
  130. package/lib/vtx-import2/index.js.map +1 -1
  131. package/lib/vtx-import2/style/css.js +3 -0
  132. package/lib/vtx-import2/style/css.js.map +1 -1
  133. package/lib/vtx-import2/style/index.js +3 -0
  134. package/lib/vtx-import2/style/index.js.map +1 -1
  135. package/lib/vtx-input/TextArea.js +22 -6
  136. package/lib/vtx-input/TextArea.js.map +1 -1
  137. package/lib/vtx-input/index.js +37 -11
  138. package/lib/vtx-input/index.js.map +1 -1
  139. package/lib/vtx-input/style/css.js +1 -0
  140. package/lib/vtx-input/style/css.js.map +1 -1
  141. package/lib/vtx-input/style/index.js +1 -0
  142. package/lib/vtx-input/style/index.js.map +1 -1
  143. package/lib/vtx-input/useLength.js +16 -4
  144. package/lib/vtx-input/useLength.js.map +1 -1
  145. package/lib/vtx-modal/Title.js +6 -1
  146. package/lib/vtx-modal/Title.js.map +1 -1
  147. package/lib/vtx-modal/index.js +70 -30
  148. package/lib/vtx-modal/index.js.map +1 -1
  149. package/lib/vtx-modal/style/css.js +1 -0
  150. package/lib/vtx-modal/style/css.js.map +1 -1
  151. package/lib/vtx-modal/style/index.js +1 -0
  152. package/lib/vtx-modal/style/index.js.map +1 -1
  153. package/lib/vtx-page-layout/Basic.js +6 -2
  154. package/lib/vtx-page-layout/Basic.js.map +1 -1
  155. package/lib/vtx-page-layout/Content.js +19 -7
  156. package/lib/vtx-page-layout/Content.js.map +1 -1
  157. package/lib/vtx-page-layout/Pane.js +10 -2
  158. package/lib/vtx-page-layout/Pane.js.map +1 -1
  159. package/lib/vtx-page-layout/TableLayout.js +47 -17
  160. package/lib/vtx-page-layout/TableLayout.js.map +1 -1
  161. package/lib/vtx-page-layout/TableWrap.js +15 -3
  162. package/lib/vtx-page-layout/TableWrap.js.map +1 -1
  163. package/lib/vtx-page-layout/container.js +34 -4
  164. package/lib/vtx-page-layout/container.js.map +1 -1
  165. package/lib/vtx-page-layout/index.js +8 -0
  166. package/lib/vtx-page-layout/index.js.map +1 -1
  167. package/lib/vtx-rps-frame/index.js +44 -21
  168. package/lib/vtx-rps-frame/index.js.map +1 -1
  169. package/lib/vtx-scrollable-row/index.js +57 -19
  170. package/lib/vtx-scrollable-row/index.js.map +1 -1
  171. package/lib/vtx-search/VtxCol.js +21 -0
  172. package/lib/vtx-search/VtxCol.js.map +1 -1
  173. package/lib/vtx-search/VtxRow.js +12 -6
  174. package/lib/vtx-search/VtxRow.js.map +1 -1
  175. package/lib/vtx-search/index.js +93 -40
  176. package/lib/vtx-search/index.js.map +1 -1
  177. package/lib/vtx-search/style/css.js +4 -0
  178. package/lib/vtx-search/style/css.js.map +1 -1
  179. package/lib/vtx-search/style/index.js +4 -0
  180. package/lib/vtx-search/style/index.js.map +1 -1
  181. package/lib/vtx-search-map-input/index.js +73 -42
  182. package/lib/vtx-search-map-input/index.js.map +1 -1
  183. package/lib/vtx-search-map-input/style/css.js +2 -0
  184. package/lib/vtx-search-map-input/style/css.js.map +1 -1
  185. package/lib/vtx-search-map-input/style/index.js +2 -0
  186. package/lib/vtx-search-map-input/style/index.js.map +1 -1
  187. package/lib/vtx-select/index.js +65 -20
  188. package/lib/vtx-select/index.js.map +1 -1
  189. package/lib/vtx-select/style/css.js +8 -0
  190. package/lib/vtx-select/style/css.js.map +1 -1
  191. package/lib/vtx-select/style/index.js +8 -0
  192. package/lib/vtx-select/style/index.js.map +1 -1
  193. package/lib/vtx-signature/index.js +28 -14
  194. package/lib/vtx-signature/index.js.map +1 -1
  195. package/lib/vtx-signature/style/css.js +2 -0
  196. package/lib/vtx-signature/style/css.js.map +1 -1
  197. package/lib/vtx-signature/style/index.js +2 -0
  198. package/lib/vtx-signature/style/index.js.map +1 -1
  199. package/lib/vtx-split-pane/Pane.js +14 -2
  200. package/lib/vtx-split-pane/Pane.js.map +1 -1
  201. package/lib/vtx-split-pane/Resizer.js +29 -9
  202. package/lib/vtx-split-pane/Resizer.js.map +1 -1
  203. package/lib/vtx-split-pane/SplitPane.js +94 -39
  204. package/lib/vtx-split-pane/SplitPane.js.map +1 -1
  205. package/lib/vtx-split-pane/index.js +4 -0
  206. package/lib/vtx-split-pane/index.js.map +1 -1
  207. package/lib/vtx-split-pane/style/css.js +3 -0
  208. package/lib/vtx-split-pane/style/css.js.map +1 -1
  209. package/lib/vtx-split-pane/style/index.js +3 -0
  210. package/lib/vtx-split-pane/style/index.js.map +1 -1
  211. package/lib/vtx-statistics-column/Back.js +7 -1
  212. package/lib/vtx-statistics-column/Back.js.map +1 -1
  213. package/lib/vtx-statistics-column/Item.js +22 -5
  214. package/lib/vtx-statistics-column/Item.js.map +1 -1
  215. package/lib/vtx-statistics-column/Total.js +22 -5
  216. package/lib/vtx-statistics-column/Total.js.map +1 -1
  217. package/lib/vtx-statistics-column/context.js +2 -0
  218. package/lib/vtx-statistics-column/context.js.map +1 -1
  219. package/lib/vtx-statistics-column/index.js +16 -0
  220. package/lib/vtx-statistics-column/index.js.map +1 -1
  221. package/lib/vtx-time-picker/index.js +16 -3
  222. package/lib/vtx-time-picker/index.js.map +1 -1
  223. package/lib/vtx-upload/FilePreview.js +28 -9
  224. package/lib/vtx-upload/FilePreview.js.map +1 -1
  225. package/lib/vtx-upload/index.js +138 -67
  226. package/lib/vtx-upload/index.js.map +1 -1
  227. package/lib/vtx-upload/style/css.js +5 -0
  228. package/lib/vtx-upload/style/css.js.map +1 -1
  229. package/lib/vtx-upload/style/index.js +5 -0
  230. package/lib/vtx-upload/style/index.js.map +1 -1
  231. package/lib/vtx-wang-editor/index.js +66 -27
  232. package/lib/vtx-wang-editor/index.js.map +1 -1
  233. package/lib/vtx-wang-editor/style/css.js +1 -0
  234. package/lib/vtx-wang-editor/style/css.js.map +1 -1
  235. package/lib/vtx-wang-editor/style/index.js +1 -0
  236. package/lib/vtx-wang-editor/style/index.js.map +1 -1
  237. package/lib/vtx-wang-editor/wangEditorUtil.js +88 -30
  238. package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -1
  239. package/lib/vtx-ztree/index.js +101 -49
  240. package/lib/vtx-ztree/index.js.map +1 -1
  241. package/lib/vtx-ztree/style/css.js +1 -0
  242. package/lib/vtx-ztree/style/css.js.map +1 -1
  243. package/lib/vtx-ztree/style/index.js +1 -0
  244. package/lib/vtx-ztree/style/index.js.map +1 -1
  245. package/lib/vtx-ztree-select/index.js +99 -43
  246. package/lib/vtx-ztree-select/index.js.map +1 -1
  247. package/lib/vtx-ztree-select/style/css.js +3 -0
  248. package/lib/vtx-ztree-select/style/css.js.map +1 -1
  249. package/lib/vtx-ztree-select/style/index.js +3 -0
  250. package/lib/vtx-ztree-select/style/index.js.map +1 -1
  251. package/package.json +126 -126
@@ -4,18 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = filterSpecialCharacters;
7
+
7
8
  var _lodash = _interopRequireDefault(require("lodash.difference"));
9
+
8
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
9
12
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
13
+
10
14
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
+
11
16
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
+
12
18
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
+
13
20
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
+
14
22
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
+
15
24
  function isNotEmpty(value) {
16
25
  return Array.isArray(value) && value.length > 0;
17
26
  }
18
-
19
27
  /**
20
28
  * 过滤特殊字符
21
29
  * @param {String} value 值
@@ -23,68 +31,49 @@ function isNotEmpty(value) {
23
31
  * @param {Array} [option.include] 新增
24
32
  * @param {Array} [option.exclude] 排除
25
33
  */
34
+
35
+
26
36
  function filterSpecialCharacters(value) {
27
37
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
28
- _ref$include = _ref.include,
29
- include = _ref$include === void 0 ? [] : _ref$include,
30
- _ref$exclude = _ref.exclude,
31
- exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
38
+ _ref$include = _ref.include,
39
+ include = _ref$include === void 0 ? [] : _ref$include,
40
+ _ref$exclude = _ref.exclude,
41
+ exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
42
+
32
43
  // 特殊符号,- _ 排除
33
- var specialCharacter = [
34
- // 小括号
35
- '(', ')', '', '',
36
- // 中括号
37
- '\\[', '\\]', '[', ']',
38
- // 大括号
39
- '{', '}', '{', '}',
40
- // 方头括号
41
- '', '】',
42
- // 尖括号
43
- '<', '>',
44
- // 书名号
45
- '', '',
46
- // 斜杠
47
- '/',
48
- // 反斜杠
49
- '\\\\',
50
- // 逗号
51
- ',', '',
52
- // 句号
53
- '.', '',
54
- // 冒号
55
- ':', '',
56
- // 分号
57
- ';', ';',
58
- // 顿号
59
- '、',
60
- // 破折号
61
- '——',
62
- // 感叹号
63
- '!', '!',
64
- // 问号
65
- '?', '?',
66
- // 加减等于
67
- '+', '=',
68
- // 单引号
69
- "'", '‘', '’',
70
- // 双引号
71
- '"', '“', '”',
72
- // 金钱
73
- '$', '¥',
74
- // 百分号
75
- '%', '%',
76
- // 其它
77
- '@', '#', '`', '~', '*', '^', '……', '|', '&'];
78
-
79
- // 新增
44
+ var specialCharacter = [// 小括号
45
+ '(', ')', '(', ')', // 中括号
46
+ '\\[', '\\]', '', '', // 大括号
47
+ '{', '}', '{', '}', // 方头括号
48
+ '', '', // 尖括号
49
+ '<', '>', // 书名号
50
+ '', '', // 斜杠
51
+ '/', // 反斜杠
52
+ '\\\\', // 逗号
53
+ ',', ',', // 句号
54
+ '.', '', // 冒号
55
+ ':', ':', // 分号
56
+ ';', '', // 顿号
57
+ '、', // 破折号
58
+ '——', // 感叹号
59
+ '!', '!', // 问号
60
+ '?', '?', // 加减等于
61
+ '+', '=', // 单引号
62
+ "'", '‘', '', // 双引号
63
+ '"', '“', '”', // 金钱
64
+ '$', '', // 百分号
65
+ '%', '%', // 其它
66
+ '@', '#', '`', '~', '*', '^', '……', '|', '&']; // 新增
67
+
80
68
  if (isNotEmpty(include)) {
81
69
  specialCharacter = Array.from(new Set([].concat(_toConsumableArray(specialCharacter), _toConsumableArray(include))));
82
- }
70
+ } // 移除
71
+
83
72
 
84
- // 移除
85
73
  if (isNotEmpty(exclude)) {
86
74
  specialCharacter = (0, _lodash["default"])(specialCharacter, exclude);
87
75
  }
76
+
88
77
  return value.replace(new RegExp("[".concat(specialCharacter.join(''), "]"), 'g'), '');
89
78
  }
90
79
  //# sourceMappingURL=filterSpecialCharacters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filterSpecialCharacters.js","names":["isNotEmpty","value","Array","isArray","length","filterSpecialCharacters","include","exclude","specialCharacter","from","Set","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\n\nfunction isNotEmpty(value) {\n return Array.isArray(value) && value.length > 0;\n}\n\n/**\n * 过滤特殊字符\n * @param {String} value 值\n * @param {Object} option\n * @param {Array} [option.include] 新增\n * @param {Array} [option.exclude] 排除\n */\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\n // 特殊符号,- _ 排除\n let specialCharacter = [\n // 小括号\n '(',\n ')',\n '(',\n ')',\n // 中括号\n '\\\\[',\n '\\\\]',\n '[',\n ']',\n // 大括号\n '{',\n '}',\n '{',\n '}',\n // 方头括号\n '【',\n '】',\n // 尖括号\n '<',\n '>',\n // 书名号\n '《',\n '》',\n // 斜杠\n '/',\n // 反斜杠\n '\\\\\\\\',\n // 逗号\n ',',\n ',',\n // 句号\n '.',\n '。',\n // 冒号\n ':',\n ':',\n // 分号\n ';',\n ';',\n // 顿号\n '、',\n // 破折号\n '——',\n // 感叹号\n '!',\n '!',\n // 问号\n '?',\n '?',\n // 加减等于\n '+',\n '=',\n // 单引号\n \"'\",\n '‘',\n '’',\n // 双引号\n '\"',\n '“',\n '”',\n // 金钱\n '$',\n '¥',\n // 百分号\n '%',\n '%',\n // 其它\n '@',\n '#',\n '`',\n '~',\n '*',\n '^',\n '……',\n '|',\n '&',\n ];\n\n // 新增\n if (isNotEmpty(include)) {\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\n }\n\n // 移除\n if (isNotEmpty(exclude)) {\n specialCharacter = difference(specialCharacter, exclude);\n }\n\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\n}\n"],"mappings":";;;;;;AAAA;AAA2C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE3C,SAASA,UAAU,CAACC,KAAK,EAAE;EACvB,OAAOC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,IAAIA,KAAK,CAACG,MAAM,GAAG,CAAC;AACnD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,uBAAuB,CAACJ,KAAK,EAAuC;EAAA,+EAAJ,CAAC,CAAC;IAAA,oBAAjCK,OAAO;IAAPA,OAAO,6BAAG,EAAE;IAAA,oBAAEC,OAAO;IAAPA,OAAO,6BAAG,EAAE;EAC/E;EACA,IAAIC,gBAAgB,GAAG;EACnB;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,KAAK,EACL,KAAK,EACL,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG;EACH;EACA,MAAM;EACN;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG;EACH;EACA,IAAI;EACJ;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,GAAG,CACN;;EAED;EACA,IAAIR,UAAU,CAACM,OAAO,CAAC,EAAE;IACrBE,gBAAgB,GAAGN,KAAK,CAACO,IAAI,CAAC,IAAIC,GAAG,8BAAKF,gBAAgB,sBAAKF,OAAO,GAAE,CAAC;EAC7E;;EAEA;EACA,IAAIN,UAAU,CAACO,OAAO,CAAC,EAAE;IACrBC,gBAAgB,GAAG,IAAAG,kBAAU,EAACH,gBAAgB,EAAED,OAAO,CAAC;EAC5D;EAEA,OAAON,KAAK,CAACW,OAAO,CAAC,IAAIC,MAAM,YAAKL,gBAAgB,CAACM,IAAI,CAAC,EAAE,CAAC,QAAK,GAAG,CAAC,EAAE,EAAE,CAAC;AAC/E"}
1
+ {"version":3,"file":"filterSpecialCharacters.js","names":["isNotEmpty","value","Array","isArray","length","filterSpecialCharacters","include","exclude","specialCharacter","from","Set","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\n\nfunction isNotEmpty(value) {\n return Array.isArray(value) && value.length > 0;\n}\n\n/**\n * 过滤特殊字符\n * @param {String} value 值\n * @param {Object} option\n * @param {Array} [option.include] 新增\n * @param {Array} [option.exclude] 排除\n */\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\n // 特殊符号,- _ 排除\n let specialCharacter = [\n // 小括号\n '(',\n ')',\n '(',\n ')',\n // 中括号\n '\\\\[',\n '\\\\]',\n '[',\n ']',\n // 大括号\n '{',\n '}',\n '{',\n '}',\n // 方头括号\n '【',\n '】',\n // 尖括号\n '<',\n '>',\n // 书名号\n '《',\n '》',\n // 斜杠\n '/',\n // 反斜杠\n '\\\\\\\\',\n // 逗号\n ',',\n ',',\n // 句号\n '.',\n '。',\n // 冒号\n ':',\n ':',\n // 分号\n ';',\n ';',\n // 顿号\n '、',\n // 破折号\n '——',\n // 感叹号\n '!',\n '!',\n // 问号\n '?',\n '?',\n // 加减等于\n '+',\n '=',\n // 单引号\n \"'\",\n '‘',\n '’',\n // 双引号\n '\"',\n '“',\n '”',\n // 金钱\n '$',\n '¥',\n // 百分号\n '%',\n '%',\n // 其它\n '@',\n '#',\n '`',\n '~',\n '*',\n '^',\n '……',\n '|',\n '&',\n ];\n\n // 新增\n if (isNotEmpty(include)) {\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\n }\n\n // 移除\n if (isNotEmpty(exclude)) {\n specialCharacter = difference(specialCharacter, exclude);\n }\n\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\n}\n"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;AAEA,SAASA,UAAT,CAAoBC,KAApB,EAA2B;EACvB,OAAOC,KAAK,CAACC,OAAN,CAAcF,KAAd,KAAwBA,KAAK,CAACG,MAAN,GAAe,CAA9C;AACH;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;AACe,SAASC,uBAAT,CAAiCJ,KAAjC,EAA6E;EAAA,+EAAJ,EAAI;EAAA,wBAAnCK,OAAmC;EAAA,IAAnCA,OAAmC,6BAAzB,EAAyB;EAAA,wBAArBC,OAAqB;EAAA,IAArBA,OAAqB,6BAAX,EAAW;;EACxF;EACA,IAAIC,gBAAgB,GAAG,CACnB;EACA,GAFmB,EAGnB,GAHmB,EAInB,GAJmB,EAKnB,GALmB,EAMnB;EACA,KAPmB,EAQnB,KARmB,EASnB,GATmB,EAUnB,GAVmB,EAWnB;EACA,GAZmB,EAanB,GAbmB,EAcnB,GAdmB,EAenB,GAfmB,EAgBnB;EACA,GAjBmB,EAkBnB,GAlBmB,EAmBnB;EACA,GApBmB,EAqBnB,GArBmB,EAsBnB;EACA,GAvBmB,EAwBnB,GAxBmB,EAyBnB;EACA,GA1BmB,EA2BnB;EACA,MA5BmB,EA6BnB;EACA,GA9BmB,EA+BnB,GA/BmB,EAgCnB;EACA,GAjCmB,EAkCnB,GAlCmB,EAmCnB;EACA,GApCmB,EAqCnB,GArCmB,EAsCnB;EACA,GAvCmB,EAwCnB,GAxCmB,EAyCnB;EACA,GA1CmB,EA2CnB;EACA,IA5CmB,EA6CnB;EACA,GA9CmB,EA+CnB,GA/CmB,EAgDnB;EACA,GAjDmB,EAkDnB,GAlDmB,EAmDnB;EACA,GApDmB,EAqDnB,GArDmB,EAsDnB;EACA,GAvDmB,EAwDnB,GAxDmB,EAyDnB,GAzDmB,EA0DnB;EACA,GA3DmB,EA4DnB,GA5DmB,EA6DnB,GA7DmB,EA8DnB;EACA,GA/DmB,EAgEnB,GAhEmB,EAiEnB;EACA,GAlEmB,EAmEnB,GAnEmB,EAoEnB;EACA,GArEmB,EAsEnB,GAtEmB,EAuEnB,GAvEmB,EAwEnB,GAxEmB,EAyEnB,GAzEmB,EA0EnB,GA1EmB,EA2EnB,IA3EmB,EA4EnB,GA5EmB,EA6EnB,GA7EmB,CAAvB,CAFwF,CAkFxF;;EACA,IAAIR,UAAU,CAACM,OAAD,CAAd,EAAyB;IACrBE,gBAAgB,GAAGN,KAAK,CAACO,IAAN,CAAW,IAAIC,GAAJ,8BAAYF,gBAAZ,sBAAiCF,OAAjC,GAAX,CAAnB;EACH,CArFuF,CAuFxF;;;EACA,IAAIN,UAAU,CAACO,OAAD,CAAd,EAAyB;IACrBC,gBAAgB,GAAG,IAAAG,kBAAA,EAAWH,gBAAX,EAA6BD,OAA7B,CAAnB;EACH;;EAED,OAAON,KAAK,CAACW,OAAN,CAAc,IAAIC,MAAJ,YAAeL,gBAAgB,CAACM,IAAjB,CAAsB,EAAtB,CAAf,QAA6C,GAA7C,CAAd,EAAiE,EAAjE,CAAP;AACH"}
@@ -4,11 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = getComponentProps;
7
+
7
8
  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); }
9
+
8
10
  function getComponentProps(prop) {
9
11
  if (prop && _typeof(prop) === 'object') {
10
12
  return prop;
11
13
  }
14
+
12
15
  return {};
13
16
  }
14
17
  //# sourceMappingURL=getComponentProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\n"],"mappings":";;;;;;;AAAe,SAASA,iBAAiB,CAACC,IAAI,EAAE;EAC5C,IAAIA,IAAI,IAAI,QAAOA,IAAI,MAAK,QAAQ,EAAE;IAClC,OAAOA,IAAI;EACf;EACA,OAAO,CAAC,CAAC;AACb"}
1
+ {"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\n"],"mappings":";;;;;;;;;AAAe,SAASA,iBAAT,CAA2BC,IAA3B,EAAiC;EAC5C,IAAIA,IAAI,IAAI,QAAOA,IAAP,MAAgB,QAA5B,EAAsC;IAClC,OAAOA,IAAP;EACH;;EACD,OAAO,EAAP;AACH"}
@@ -4,13 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
7
8
  var _querystring = _interopRequireDefault(require("querystring"));
9
+
8
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
9
12
  var getUrlParam = function getUrlParam(key) {
10
13
  var href = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
14
+
11
15
  var params = _querystring["default"].parse(href.split('?')[1]);
16
+
12
17
  return key ? params[key] : params;
13
18
  };
19
+
14
20
  var _default = getUrlParam;
15
21
  exports["default"] = _default;
16
22
  //# sourceMappingURL=getUrlParam.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUrlParam.js","names":["getUrlParam","key","href","window","location","params","qs","parse","split"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\n\nconst getUrlParam = (key, href = window.location.href) => {\n const params = qs.parse(href.split('?')[1]);\n return key ? params[key] : params;\n};\n\nexport default getUrlParam;\n"],"mappings":";;;;;;AAAA;AAA6B;AAE7B,IAAMA,WAAW,GAAG,SAAdA,WAAW,CAAIC,GAAG,EAAkC;EAAA,IAAhCC,IAAI,uEAAGC,MAAM,CAACC,QAAQ,CAACF,IAAI;EACjD,IAAMG,MAAM,GAAGC,uBAAE,CAACC,KAAK,CAACL,IAAI,CAACM,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAC3C,OAAOP,GAAG,GAAGI,MAAM,CAACJ,GAAG,CAAC,GAAGI,MAAM;AACrC,CAAC;AAAC,eAEaL,WAAW;AAAA"}
1
+ {"version":3,"file":"getUrlParam.js","names":["getUrlParam","key","href","window","location","params","qs","parse","split"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\n\nconst getUrlParam = (key, href = window.location.href) => {\n const params = qs.parse(href.split('?')[1]);\n return key ? params[key] : params;\n};\n\nexport default getUrlParam;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,GAAD,EAAsC;EAAA,IAAhCC,IAAgC,uEAAzBC,MAAM,CAACC,QAAP,CAAgBF,IAAS;;EACtD,IAAMG,MAAM,GAAGC,uBAAA,CAAGC,KAAH,CAASL,IAAI,CAACM,KAAL,CAAW,GAAX,EAAgB,CAAhB,CAAT,CAAf;;EACA,OAAOP,GAAG,GAAGI,MAAM,CAACJ,GAAD,CAAT,GAAiBI,MAA3B;AACH,CAHD;;eAKeL,W"}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = isFunction;
7
+
7
8
  function isFunction(fn) {
8
9
  return Object.prototype.toString.call(fn) === '[object Function]';
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isFunction.js","names":["isFunction","fn","Object","prototype","toString","call"],"sources":["_util/isFunction.js"],"sourcesContent":["export default function isFunction(fn) {\n return Object.prototype.toString.call(fn) === '[object Function]';\n}\n"],"mappings":";;;;;;AAAe,SAASA,UAAU,CAACC,EAAE,EAAE;EACnC,OAAOC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,EAAE,CAAC,KAAK,mBAAmB;AACrE"}
1
+ {"version":3,"file":"isFunction.js","names":["isFunction","fn","Object","prototype","toString","call"],"sources":["_util/isFunction.js"],"sourcesContent":["export default function isFunction(fn) {\n return Object.prototype.toString.call(fn) === '[object Function]';\n}\n"],"mappings":";;;;;;;AAAe,SAASA,UAAT,CAAoBC,EAApB,EAAwB;EACnC,OAAOC,MAAM,CAACC,SAAP,CAAiBC,QAAjB,CAA0BC,IAA1B,CAA+BJ,EAA/B,MAAuC,mBAA9C;AACH"}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = isObject;
7
+
7
8
  function isObject(x) {
8
9
  return Object.prototype.toString.call(x) === '[object Object]';
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isObject.js","names":["isObject","x","Object","prototype","toString","call"],"sources":["_util/isObject.js"],"sourcesContent":["export default function isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\n"],"mappings":";;;;;;AAAe,SAASA,QAAQ,CAACC,CAAC,EAAE;EAChC,OAAOC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,CAAC,CAAC,KAAK,iBAAiB;AAClE"}
1
+ {"version":3,"file":"isObject.js","names":["isObject","x","Object","prototype","toString","call"],"sources":["_util/isObject.js"],"sourcesContent":["export default function isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\n"],"mappings":";;;;;;;AAAe,SAASA,QAAT,CAAkBC,CAAlB,EAAqB;EAChC,OAAOC,MAAM,CAACC,SAAP,CAAiBC,QAAjB,CAA0BC,IAA1B,CAA+BJ,CAA/B,MAAsC,iBAA7C;AACH"}
@@ -4,18 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
7
8
  var _useSize = _interopRequireDefault(require("ahooks/lib/useSize"));
9
+
8
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
9
12
  var COL_SIZE = {
10
13
  lg: 'lg',
11
14
  md: 'md',
12
15
  sm: 'sm'
13
16
  };
17
+
14
18
  var _default = function _default(ref) {
15
19
  var dom = (ref === null || ref === void 0 ? void 0 : ref.current) || document.querySelector('body');
20
+
16
21
  var _ref = (0, _useSize["default"])(dom) || {},
17
- width = _ref.width;
22
+ width = _ref.width;
23
+
18
24
  var size = COL_SIZE.lg;
25
+
19
26
  if (width >= 1370) {
20
27
  size = COL_SIZE.lg;
21
28
  } else if (width >= 992) {
@@ -23,7 +30,9 @@ var _default = function _default(ref) {
23
30
  } else {
24
31
  size = COL_SIZE.sm;
25
32
  }
33
+
26
34
  return size;
27
35
  };
36
+
28
37
  exports["default"] = _default;
29
38
  //# sourceMappingURL=useColSize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useColSize.js","names":["COL_SIZE","lg","md","sm","ref","dom","current","document","querySelector","useSize","width","size"],"sources":["_util/useColSize.js"],"sourcesContent":["import useSize from 'ahooks/lib/useSize';\n\nconst COL_SIZE = {\n lg: 'lg',\n md: 'md',\n sm: 'sm',\n};\n\nexport default ref => {\n const dom = ref?.current || document.querySelector('body');\n const { width } = useSize(dom) || {};\n let size = COL_SIZE.lg;\n if (width >= 1370) {\n size = COL_SIZE.lg;\n } else if (width >= 992) {\n size = COL_SIZE.md;\n } else {\n size = COL_SIZE.sm;\n }\n return size;\n};\n"],"mappings":";;;;;;AAAA;AAAyC;AAEzC,IAAMA,QAAQ,GAAG;EACbC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE;AACR,CAAC;AAAC,eAEa,kBAAAC,GAAG,EAAI;EAClB,IAAMC,GAAG,GAAG,CAAAD,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEE,OAAO,KAAIC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC;EAC1D,WAAkB,IAAAC,mBAAO,EAACJ,GAAG,CAAC,IAAI,CAAC,CAAC;IAA5BK,KAAK,QAALA,KAAK;EACb,IAAIC,IAAI,GAAGX,QAAQ,CAACC,EAAE;EACtB,IAAIS,KAAK,IAAI,IAAI,EAAE;IACfC,IAAI,GAAGX,QAAQ,CAACC,EAAE;EACtB,CAAC,MAAM,IAAIS,KAAK,IAAI,GAAG,EAAE;IACrBC,IAAI,GAAGX,QAAQ,CAACE,EAAE;EACtB,CAAC,MAAM;IACHS,IAAI,GAAGX,QAAQ,CAACG,EAAE;EACtB;EACA,OAAOQ,IAAI;AACf,CAAC;AAAA"}
1
+ {"version":3,"file":"useColSize.js","names":["COL_SIZE","lg","md","sm","ref","dom","current","document","querySelector","useSize","width","size"],"sources":["_util/useColSize.js"],"sourcesContent":["import useSize from 'ahooks/lib/useSize';\n\nconst COL_SIZE = {\n lg: 'lg',\n md: 'md',\n sm: 'sm',\n};\n\nexport default ref => {\n const dom = ref?.current || document.querySelector('body');\n const { width } = useSize(dom) || {};\n let size = COL_SIZE.lg;\n if (width >= 1370) {\n size = COL_SIZE.lg;\n } else if (width >= 992) {\n size = COL_SIZE.md;\n } else {\n size = COL_SIZE.sm;\n }\n return size;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,QAAQ,GAAG;EACbC,EAAE,EAAE,IADS;EAEbC,EAAE,EAAE,IAFS;EAGbC,EAAE,EAAE;AAHS,CAAjB;;eAMe,kBAAAC,GAAG,EAAI;EAClB,IAAMC,GAAG,GAAG,CAAAD,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,OAAL,KAAgBC,QAAQ,CAACC,aAAT,CAAuB,MAAvB,CAA5B;;EACA,WAAkB,IAAAC,mBAAA,EAAQJ,GAAR,KAAgB,EAAlC;EAAA,IAAQK,KAAR,QAAQA,KAAR;;EACA,IAAIC,IAAI,GAAGX,QAAQ,CAACC,EAApB;;EACA,IAAIS,KAAK,IAAI,IAAb,EAAmB;IACfC,IAAI,GAAGX,QAAQ,CAACC,EAAhB;EACH,CAFD,MAEO,IAAIS,KAAK,IAAI,GAAb,EAAkB;IACrBC,IAAI,GAAGX,QAAQ,CAACE,EAAhB;EACH,CAFM,MAEA;IACHS,IAAI,GAAGX,QAAQ,CAACG,EAAhB;EACH;;EACD,OAAOQ,IAAP;AACH,C"}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = useInterval;
7
+
7
8
  var _react = require("react");
9
+
8
10
  function useInterval(callback, delay) {
9
11
  (0, _react.useEffect)(function () {
10
12
  if (delay !== null) {
@@ -13,6 +15,7 @@ function useInterval(callback, delay) {
13
15
  return clearInterval(id);
14
16
  };
15
17
  }
18
+
16
19
  return undefined;
17
20
  }, [callback, delay]);
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useInterval.js","names":["useInterval","callback","delay","useEffect","id","setInterval","clearInterval","undefined"],"sources":["_util/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\n\nexport default function useInterval(callback, delay) {\n useEffect(() => {\n if (delay !== null) {\n let id = setInterval(callback, delay);\n return () => clearInterval(id);\n }\n return undefined;\n }, [callback, delay]);\n}\n"],"mappings":";;;;;;AAAA;AAEe,SAASA,WAAW,CAACC,QAAQ,EAAEC,KAAK,EAAE;EACjD,IAAAC,gBAAS,EAAC,YAAM;IACZ,IAAID,KAAK,KAAK,IAAI,EAAE;MAChB,IAAIE,EAAE,GAAGC,WAAW,CAACJ,QAAQ,EAAEC,KAAK,CAAC;MACrC,OAAO;QAAA,OAAMI,aAAa,CAACF,EAAE,CAAC;MAAA;IAClC;IACA,OAAOG,SAAS;EACpB,CAAC,EAAE,CAACN,QAAQ,EAAEC,KAAK,CAAC,CAAC;AACzB"}
1
+ {"version":3,"file":"useInterval.js","names":["useInterval","callback","delay","useEffect","id","setInterval","clearInterval","undefined"],"sources":["_util/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\n\nexport default function useInterval(callback, delay) {\n useEffect(() => {\n if (delay !== null) {\n let id = setInterval(callback, delay);\n return () => clearInterval(id);\n }\n return undefined;\n }, [callback, delay]);\n}\n"],"mappings":";;;;;;;AAAA;;AAEe,SAASA,WAAT,CAAqBC,QAArB,EAA+BC,KAA/B,EAAsC;EACjD,IAAAC,gBAAA,EAAU,YAAM;IACZ,IAAID,KAAK,KAAK,IAAd,EAAoB;MAChB,IAAIE,EAAE,GAAGC,WAAW,CAACJ,QAAD,EAAWC,KAAX,CAApB;MACA,OAAO;QAAA,OAAMI,aAAa,CAACF,EAAD,CAAnB;MAAA,CAAP;IACH;;IACD,OAAOG,SAAP;EACH,CAND,EAMG,CAACN,QAAD,EAAWC,KAAX,CANH;AAOH"}
@@ -4,39 +4,57 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
7
8
  var _react = require("react");
9
+
8
10
  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; }
11
+
9
12
  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; }
13
+
10
14
  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; }
15
+
11
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
+
12
18
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+
13
20
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+
14
22
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
+
15
24
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+
16
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+
17
28
  // 类似于class component的setState
18
29
  var useSet = function useSet(initState) {
19
30
  var _useReducer = (0, _react.useReducer)(function (state, newState) {
20
- var action = newState;
21
- if (typeof newState === 'function') {
31
+ var action = newState;
32
+
33
+ if (typeof newState === 'function') {
34
+ action = action(state);
35
+ }
36
+
37
+ if (newState.action && newState.payload) {
38
+ action = newState.payload;
39
+
40
+ if (typeof action === 'function') {
22
41
  action = action(state);
23
42
  }
24
- if (newState.action && newState.payload) {
25
- action = newState.payload;
26
- if (typeof action === 'function') {
27
- action = action(state);
28
- }
29
- }
30
- var result = _objectSpread(_objectSpread({}, state), action);
31
- return result;
32
- }, initState),
33
- _useReducer2 = _slicedToArray(_useReducer, 2),
34
- state = _useReducer2[0],
35
- setState = _useReducer2[1];
43
+ }
44
+
45
+ var result = _objectSpread(_objectSpread({}, state), action);
46
+
47
+ return result;
48
+ }, initState),
49
+ _useReducer2 = _slicedToArray(_useReducer, 2),
50
+ state = _useReducer2[0],
51
+ setState = _useReducer2[1];
52
+
36
53
  return [state, function (state) {
37
54
  setState(state);
38
55
  }];
39
56
  };
57
+
40
58
  var _default = useSet;
41
59
  exports["default"] = _default;
42
60
  //# sourceMappingURL=useSet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSet.js","names":["useSet","initState","useReducer","state","newState","action","payload","result","setState"],"sources":["_util/useSet.js"],"sourcesContent":["import { useReducer } from 'react';\n\n// 类似于class component的setState\nconst useSet = initState => {\n const [state, setState] = useReducer((state, newState) => {\n let action = newState;\n if (typeof newState === 'function') {\n action = action(state);\n }\n if (newState.action && newState.payload) {\n action = newState.payload;\n if (typeof action === 'function') {\n action = action(state);\n }\n }\n const result = { ...state, ...action };\n return result;\n }, initState);\n return [\n state,\n state => {\n setState(state);\n },\n ];\n};\n\nexport default useSet;\n"],"mappings":";;;;;;AAAA;AAAmC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEnC;AACA,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAGC,SAAS,EAAI;EACxB,kBAA0B,IAAAC,iBAAU,EAAC,UAACC,KAAK,EAAEC,QAAQ,EAAK;MACtD,IAAIC,MAAM,GAAGD,QAAQ;MACrB,IAAI,OAAOA,QAAQ,KAAK,UAAU,EAAE;QAChCC,MAAM,GAAGA,MAAM,CAACF,KAAK,CAAC;MAC1B;MACA,IAAIC,QAAQ,CAACC,MAAM,IAAID,QAAQ,CAACE,OAAO,EAAE;QACrCD,MAAM,GAAGD,QAAQ,CAACE,OAAO;QACzB,IAAI,OAAOD,MAAM,KAAK,UAAU,EAAE;UAC9BA,MAAM,GAAGA,MAAM,CAACF,KAAK,CAAC;QAC1B;MACJ;MACA,IAAMI,MAAM,mCAAQJ,KAAK,GAAKE,MAAM,CAAE;MACtC,OAAOE,MAAM;IACjB,CAAC,EAAEN,SAAS,CAAC;IAAA;IAbNE,KAAK;IAAEK,QAAQ;EActB,OAAO,CACHL,KAAK,EACL,UAAAA,KAAK,EAAI;IACLK,QAAQ,CAACL,KAAK,CAAC;EACnB,CAAC,CACJ;AACL,CAAC;AAAC,eAEaH,MAAM;AAAA"}
1
+ {"version":3,"file":"useSet.js","names":["useSet","initState","useReducer","state","newState","action","payload","result","setState"],"sources":["_util/useSet.js"],"sourcesContent":["import { useReducer } from 'react';\n\n// 类似于class component的setState\nconst useSet = initState => {\n const [state, setState] = useReducer((state, newState) => {\n let action = newState;\n if (typeof newState === 'function') {\n action = action(state);\n }\n if (newState.action && newState.payload) {\n action = newState.payload;\n if (typeof action === 'function') {\n action = action(state);\n }\n }\n const result = { ...state, ...action };\n return result;\n }, initState);\n return [\n state,\n state => {\n setState(state);\n },\n ];\n};\n\nexport default useSet;\n"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;AAEA;AACA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,SAAS,EAAI;EACxB,kBAA0B,IAAAC,iBAAA,EAAW,UAACC,KAAD,EAAQC,QAAR,EAAqB;IACtD,IAAIC,MAAM,GAAGD,QAAb;;IACA,IAAI,OAAOA,QAAP,KAAoB,UAAxB,EAAoC;MAChCC,MAAM,GAAGA,MAAM,CAACF,KAAD,CAAf;IACH;;IACD,IAAIC,QAAQ,CAACC,MAAT,IAAmBD,QAAQ,CAACE,OAAhC,EAAyC;MACrCD,MAAM,GAAGD,QAAQ,CAACE,OAAlB;;MACA,IAAI,OAAOD,MAAP,KAAkB,UAAtB,EAAkC;QAC9BA,MAAM,GAAGA,MAAM,CAACF,KAAD,CAAf;MACH;IACJ;;IACD,IAAMI,MAAM,mCAAQJ,KAAR,GAAkBE,MAAlB,CAAZ;;IACA,OAAOE,MAAP;EACH,CAbyB,EAavBN,SAbuB,CAA1B;EAAA;EAAA,IAAOE,KAAP;EAAA,IAAcK,QAAd;;EAcA,OAAO,CACHL,KADG,EAEH,UAAAA,KAAK,EAAI;IACLK,QAAQ,CAACL,KAAD,CAAR;EACH,CAJE,CAAP;AAMH,CArBD;;eAuBeH,M"}
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\n\nexport default {\n // ztree文件地址\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\n};\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAuB,IAAI,CAAC,CAAC;AAAC,eAExC;EACX;EACAC,WAAW,EAAEH,SAAS,CAACG,WAAW,GAAGH,SAAS,CAACG,WAAW,GAAG;AACjE,CAAC;AAAA"}
1
+ {"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\n\nexport default {\n // ztree文件地址\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\n};\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAP,IAAkC,EAApD;eAEe;EACX;EACAC,WAAW,EAAEH,SAAS,CAACG,WAAV,GAAwBH,SAAS,CAACG,WAAlC,GAAgD;AAFlD,C"}
package/lib/index.js CHANGED
@@ -153,30 +153,56 @@ Object.defineProperty(exports, "VtxZtreeSelect", {
153
153
  return _vtxZtreeSelect["default"];
154
154
  }
155
155
  });
156
+
156
157
  var _vtxFormLayout = _interopRequireDefault(require("./vtx-form-layout"));
158
+
157
159
  var _vtxPageLayout = _interopRequireDefault(require("./vtx-page-layout"));
160
+
158
161
  var _vtxSearch = _interopRequireDefault(require("./vtx-search"));
162
+
159
163
  var _vtxColorPicker = _interopRequireDefault(require("./vtx-color-picker"));
164
+
160
165
  var _vtxCombogrid = _interopRequireDefault(require("./vtx-combogrid"));
166
+
161
167
  var _vtxDatePicker = _interopRequireDefault(require("./vtx-date-picker"));
168
+
162
169
  var _vtxEditor = _interopRequireDefault(require("./vtx-editor"));
170
+
163
171
  var _vtxWangEditor = _interopRequireDefault(require("./vtx-wang-editor"));
172
+
164
173
  var _vtxExport = _interopRequireDefault(require("./vtx-export"));
174
+
165
175
  var _vtxImport = _interopRequireDefault(require("./vtx-import"));
176
+
166
177
  var _vtxImport2 = _interopRequireDefault(require("./vtx-import2"));
178
+
167
179
  var _vtxSearchMapInput = _interopRequireDefault(require("./vtx-search-map-input"));
180
+
168
181
  var _vtxSelect = _interopRequireDefault(require("./vtx-select"));
182
+
169
183
  var _vtxInput = _interopRequireDefault(require("./vtx-input"));
184
+
170
185
  var _vtxTimePicker = _interopRequireDefault(require("./vtx-time-picker"));
186
+
171
187
  var _vtxUpload = _interopRequireDefault(require("./vtx-upload"));
188
+
172
189
  var _vtxZtreeSelect = _interopRequireDefault(require("./vtx-ztree-select"));
190
+
173
191
  var _vtxDatagrid = _interopRequireDefault(require("./vtx-datagrid"));
192
+
174
193
  var _vtxEllipsisText = _interopRequireDefault(require("./vtx-ellipsis-text"));
194
+
175
195
  var _vtxImage = _interopRequireDefault(require("./vtx-image"));
196
+
176
197
  var _vtxRpsFrame = _interopRequireDefault(require("./vtx-rps-frame"));
198
+
177
199
  var _vtxStatisticsColumn = _interopRequireDefault(require("./vtx-statistics-column"));
200
+
178
201
  var _vtxZtree = _interopRequireDefault(require("./vtx-ztree"));
202
+
179
203
  var _vtxSplitPane = _interopRequireDefault(require("./vtx-split-pane"));
204
+
180
205
  var _vtxModal = _interopRequireDefault(require("./vtx-modal"));
206
+
181
207
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
182
208
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["// layout\nexport { default as VtxFormLayout } from './vtx-form-layout';\nexport { default as VtxPageLayout } from './vtx-page-layout';\nexport { default as VtxSearch } from './vtx-search';\n\n// data entry\nexport { default as VtxColorPicker } from './vtx-color-picker';\nexport { default as VtxCombogrid } from './vtx-combogrid';\nexport { default as VtxDatePicker } from './vtx-date-picker';\nexport { default as VtxEditor } from './vtx-editor';\nexport { default as VtxWangEditor } from './vtx-wang-editor';\n\nexport { default as VtxExport } from './vtx-export';\nexport { default as VtxImport } from './vtx-import';\nexport { default as VtxImport2 } from './vtx-import2';\nexport { default as VtxSearchMapInput } from './vtx-search-map-input';\nexport { default as VtxSelect } from './vtx-select';\nexport { default as VtxInput } from './vtx-input';\nexport { default as VtxTimePicker } from './vtx-time-picker';\nexport { default as VtxUpload } from './vtx-upload';\nexport { default as VtxZtreeSelect } from './vtx-ztree-select';\n\n// data display\nexport { default as VtxDatagrid } from './vtx-datagrid';\nexport { default as VtxEllipsisText } from './vtx-ellipsis-text';\nexport { default as VtxImage } from './vtx-image';\nexport { default as VtxRpsFrame } from './vtx-rps-frame';\nexport { default as VtxStatisticsColumn } from './vtx-statistics-column';\nexport { default as VtxZtree } from './vtx-ztree';\nexport { default as VtxSplitPane } from './vtx-split-pane';\n\n// feedback\nexport { default as VtxModal } from './vtx-modal';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAkD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["// layout\nexport { default as VtxFormLayout } from './vtx-form-layout';\nexport { default as VtxPageLayout } from './vtx-page-layout';\nexport { default as VtxSearch } from './vtx-search';\n\n// data entry\nexport { default as VtxColorPicker } from './vtx-color-picker';\nexport { default as VtxCombogrid } from './vtx-combogrid';\nexport { default as VtxDatePicker } from './vtx-date-picker';\nexport { default as VtxEditor } from './vtx-editor';\nexport { default as VtxWangEditor } from './vtx-wang-editor';\n\nexport { default as VtxExport } from './vtx-export';\nexport { default as VtxImport } from './vtx-import';\nexport { default as VtxImport2 } from './vtx-import2';\nexport { default as VtxSearchMapInput } from './vtx-search-map-input';\nexport { default as VtxSelect } from './vtx-select';\nexport { default as VtxInput } from './vtx-input';\nexport { default as VtxTimePicker } from './vtx-time-picker';\nexport { default as VtxUpload } from './vtx-upload';\nexport { default as VtxZtreeSelect } from './vtx-ztree-select';\n\n// data display\nexport { default as VtxDatagrid } from './vtx-datagrid';\nexport { default as VtxEllipsisText } from './vtx-ellipsis-text';\nexport { default as VtxImage } from './vtx-image';\nexport { default as VtxRpsFrame } from './vtx-rps-frame';\nexport { default as VtxStatisticsColumn } from './vtx-statistics-column';\nexport { default as VtxZtree } from './vtx-ztree';\nexport { default as VtxSplitPane } from './vtx-split-pane';\n\n// feedback\nexport { default as VtxModal } from './vtx-modal';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA"}
@@ -1,32 +1,48 @@
1
1
  "use strict";
2
2
 
3
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
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports["default"] = void 0;
9
+
8
10
  var _react = _interopRequireWildcard(require("react"));
11
+
9
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
10
14
  var _rcColorPicker = _interopRequireDefault(require("rc-color-picker"));
15
+
11
16
  var _input = _interopRequireDefault(require("antd/lib/input"));
17
+
12
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
+
13
20
  var _excluded = ["value", "onChange", "className", "style", "disabled"];
21
+
14
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
15
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
16
26
  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; }
27
+
17
28
  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); }
29
+
18
30
  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; }
31
+
19
32
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
33
+
20
34
  var VtxColorPicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
21
35
  var value = props.value,
22
- onChange = props.onChange,
23
- className = props.className,
24
- style = props.style,
25
- disabled = props.disabled,
26
- rest = _objectWithoutProperties(props, _excluded);
36
+ onChange = props.onChange,
37
+ className = props.className,
38
+ style = props.style,
39
+ disabled = props.disabled,
40
+ rest = _objectWithoutProperties(props, _excluded);
41
+
27
42
  var onPickerChange = function onPickerChange(e) {
28
43
  onChange && onChange(e.color);
29
44
  };
45
+
30
46
  return /*#__PURE__*/_react["default"].createElement(_input["default"], {
31
47
  ref: ref,
32
48
  value: value,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["VtxColorPicker","forwardRef","props","ref","value","onChange","className","style","disabled","rest","onPickerChange","e","color","classnames","propTypes","PropTypes","string","func","bool","object"],"sources":["vtx-color-picker/index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport ColorPicker from 'rc-color-picker';\nimport Input from 'antd/lib/input';\nimport classnames from 'classnames';\n\nconst VtxColorPicker = forwardRef((props, ref) => {\n const { value, onChange, className, style, disabled, ...rest } = props;\n\n const onPickerChange = e => {\n onChange && onChange(e.color);\n };\n\n return (\n <Input\n ref={ref}\n value={value}\n placeholder=\"请选择\"\n readOnly\n disabled={disabled}\n className={classnames('vtx-color-picker', className)}\n style={style}\n addonAfter={\n disabled ? null : (\n <ColorPicker\n defaultColor=\"#fff\"\n {...rest}\n animation=\"slide-up\"\n color={value}\n onChange={onPickerChange}\n />\n )\n }\n />\n );\n});\n\nVtxColorPicker.propTypes = {\n value: PropTypes.string,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n};\n\nexport default VtxColorPicker;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEpC,IAAMA,cAAc,gBAAG,IAAAC,iBAAU,EAAC,UAACC,KAAK,EAAEC,GAAG,EAAK;EAC9C,IAAQC,KAAK,GAAoDF,KAAK,CAA9DE,KAAK;IAAEC,QAAQ,GAA0CH,KAAK,CAAvDG,QAAQ;IAAEC,SAAS,GAA+BJ,KAAK,CAA7CI,SAAS;IAAEC,KAAK,GAAwBL,KAAK,CAAlCK,KAAK;IAAEC,QAAQ,GAAcN,KAAK,CAA3BM,QAAQ;IAAKC,IAAI,4BAAKP,KAAK;EAEtE,IAAMQ,cAAc,GAAG,SAAjBA,cAAc,CAAGC,CAAC,EAAI;IACxBN,QAAQ,IAAIA,QAAQ,CAACM,CAAC,CAACC,KAAK,CAAC;EACjC,CAAC;EAED,oBACI,gCAAC,iBAAK;IACF,GAAG,EAAET,GAAI;IACT,KAAK,EAAEC,KAAM;IACb,WAAW,EAAC,oBAAK;IACjB,QAAQ;IACR,QAAQ,EAAEI,QAAS;IACnB,SAAS,EAAE,IAAAK,sBAAU,EAAC,kBAAkB,EAAEP,SAAS,CAAE;IACrD,KAAK,EAAEC,KAAM;IACb,UAAU,EACNC,QAAQ,GAAG,IAAI,gBACX,gCAAC,yBAAW;MACR,YAAY,EAAC;IAAM,GACfC,IAAI;MACR,SAAS,EAAC,UAAU;MACpB,KAAK,EAAEL,KAAM;MACb,QAAQ,EAAEM;IAAe;EAGpC,EACH;AAEV,CAAC,CAAC;AAEFV,cAAc,CAACc,SAAS,GAAG;EACvBV,KAAK,EAAEW,qBAAS,CAACC,MAAM;EACvBX,QAAQ,EAAEU,qBAAS,CAACE,IAAI;EACxBT,QAAQ,EAAEO,qBAAS,CAACG,IAAI;EACxBZ,SAAS,EAAES,qBAAS,CAACC,MAAM;EAC3BT,KAAK,EAAEQ,qBAAS,CAACI;AACrB,CAAC;AAAC,eAEanB,cAAc;AAAA"}
1
+ {"version":3,"file":"index.js","names":["VtxColorPicker","forwardRef","props","ref","value","onChange","className","style","disabled","rest","onPickerChange","e","color","classnames","propTypes","PropTypes","string","func","bool","object"],"sources":["vtx-color-picker/index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport ColorPicker from 'rc-color-picker';\nimport Input from 'antd/lib/input';\nimport classnames from 'classnames';\n\nconst VtxColorPicker = forwardRef((props, ref) => {\n const { value, onChange, className, style, disabled, ...rest } = props;\n\n const onPickerChange = e => {\n onChange && onChange(e.color);\n };\n\n return (\n <Input\n ref={ref}\n value={value}\n placeholder=\"请选择\"\n readOnly\n disabled={disabled}\n className={classnames('vtx-color-picker', className)}\n style={style}\n addonAfter={\n disabled ? null : (\n <ColorPicker\n defaultColor=\"#fff\"\n {...rest}\n animation=\"slide-up\"\n color={value}\n onChange={onPickerChange}\n />\n )\n }\n />\n );\n});\n\nVtxColorPicker.propTypes = {\n value: PropTypes.string,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n};\n\nexport default VtxColorPicker;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,cAAc,gBAAG,IAAAC,iBAAA,EAAW,UAACC,KAAD,EAAQC,GAAR,EAAgB;EAC9C,IAAQC,KAAR,GAAiEF,KAAjE,CAAQE,KAAR;EAAA,IAAeC,QAAf,GAAiEH,KAAjE,CAAeG,QAAf;EAAA,IAAyBC,SAAzB,GAAiEJ,KAAjE,CAAyBI,SAAzB;EAAA,IAAoCC,KAApC,GAAiEL,KAAjE,CAAoCK,KAApC;EAAA,IAA2CC,QAA3C,GAAiEN,KAAjE,CAA2CM,QAA3C;EAAA,IAAwDC,IAAxD,4BAAiEP,KAAjE;;EAEA,IAAMQ,cAAc,GAAG,SAAjBA,cAAiB,CAAAC,CAAC,EAAI;IACxBN,QAAQ,IAAIA,QAAQ,CAACM,CAAC,CAACC,KAAH,CAApB;EACH,CAFD;;EAIA,oBACI,gCAAC,iBAAD;IACI,GAAG,EAAET,GADT;IAEI,KAAK,EAAEC,KAFX;IAGI,WAAW,EAAC,oBAHhB;IAII,QAAQ,MAJZ;IAKI,QAAQ,EAAEI,QALd;IAMI,SAAS,EAAE,IAAAK,sBAAA,EAAW,kBAAX,EAA+BP,SAA/B,CANf;IAOI,KAAK,EAAEC,KAPX;IAQI,UAAU,EACNC,QAAQ,GAAG,IAAH,gBACJ,gCAAC,yBAAD;MACI,YAAY,EAAC;IADjB,GAEQC,IAFR;MAGI,SAAS,EAAC,UAHd;MAII,KAAK,EAAEL,KAJX;MAKI,QAAQ,EAAEM;IALd;EAVZ,EADJ;AAsBH,CA7BsB,CAAvB;AA+BAV,cAAc,CAACc,SAAf,GAA2B;EACvBV,KAAK,EAAEW,qBAAA,CAAUC,MADM;EAEvBX,QAAQ,EAAEU,qBAAA,CAAUE,IAFG;EAGvBT,QAAQ,EAAEO,qBAAA,CAAUG,IAHG;EAIvBZ,SAAS,EAAES,qBAAA,CAAUC,MAJE;EAKvBT,KAAK,EAAEQ,qBAAA,CAAUI;AALM,CAA3B;eAQenB,c"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  require("antd/lib/input/style/css");
4
+
4
5
  require("rc-color-picker/assets/index.css");
6
+
5
7
  require("./index.css");
6
8
  //# sourceMappingURL=css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"css.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\nimport 'rc-color-picker/assets/index.css';\nimport './index.less';\n"],"mappings":";;AAAA;AACA;AACA"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\nimport 'rc-color-picker/assets/index.css';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  require("antd/lib/input/style");
4
+
4
5
  require("rc-color-picker/assets/index.css");
6
+
5
7
  require("./index.less");
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\nimport 'rc-color-picker/assets/index.css';\nimport './index.less';\n"],"mappings":";;AAAA;AACA;AACA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-color-picker/style/index.js"],"sourcesContent":["import 'antd/lib/input/style';\nimport 'rc-color-picker/assets/index.css';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA"}