@vtx/components 4.0.0-beta.9 → 4.0.0-beta.90

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 (188) hide show
  1. package/README.md +19 -19
  2. package/es/index.js +3 -0
  3. package/es/utils/components/LabelIconTip/index.js +7 -7
  4. package/es/utils/conversionMomentValue/index.js +25 -25
  5. package/es/utils/filterSpecialCharacters.js +6 -6
  6. package/es/utils/genCopyable/index.js +6 -6
  7. package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  8. package/es/utils/hooks/useDebounceFn/index.js +4 -4
  9. package/es/utils/hooks/useDebounceValue/index.js +6 -6
  10. package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
  11. package/es/utils/hooks/useLatest/index.js +2 -2
  12. package/es/utils/hooks/useRefCallback/index.js +5 -5
  13. package/es/utils/index.js +1 -2
  14. package/es/utils/isBrowser/index.js +7 -7
  15. package/es/utils/isUrl/index.js +4 -4
  16. package/es/utils/merge/index.js +4 -4
  17. package/es/utils/nanoid/index.js +4 -4
  18. package/es/utils/omitBoolean/index.js +4 -4
  19. package/es/utils/parseValueToMoment/index.js +4 -4
  20. package/es/utils/proFieldParsingText/index.js +10 -10
  21. package/es/utils/transformKeySubmitValue/index.js +57 -57
  22. package/es/utils/useEditableArray/index.js +46 -46
  23. package/es/utils/useEditableMap/index.js +22 -22
  24. package/es/utils/useMediaQuery/index.js +5 -5
  25. package/es/vtx-combogrid/Combogrid.js +5 -4
  26. package/es/vtx-combogrid/index.js +7 -4
  27. package/es/vtx-datagrid/Store/Provide.js +109 -140
  28. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +7 -6
  29. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
  30. package/es/vtx-datagrid/ToolBar/index.js +2 -1
  31. package/es/vtx-datagrid/ToolBar/style.js +6 -3
  32. package/es/vtx-datagrid/columnState.js +91 -0
  33. package/es/vtx-datagrid/index.js +134 -37
  34. package/es/vtx-datagrid/mergeComponents.js +15 -0
  35. package/es/vtx-datagrid/renderColumnButtons.js +30 -11
  36. package/es/vtx-datagrid/style/index.js +108 -18
  37. package/es/vtx-datagrid/style/index.less +242 -242
  38. package/es/vtx-date-picker/QdatePicker.js +1 -1
  39. package/es/vtx-date-picker/style/index.less +39 -39
  40. package/es/vtx-descriptions/Descriptions.js +29 -0
  41. package/es/vtx-descriptions/index.js +3 -0
  42. package/es/vtx-descriptions/style/index.js +19 -0
  43. package/es/vtx-ellipsis-text/index.js +2 -2
  44. package/es/vtx-ellipsis-text/style/index.js +3 -1
  45. package/es/vtx-export/index.js +33 -38
  46. package/es/vtx-export-async/History.js +15 -7
  47. package/es/vtx-export-async/index.js +18 -8
  48. package/es/vtx-export-async/util.js +16 -5
  49. package/es/vtx-form-layout/FormItem.js +16 -16
  50. package/es/vtx-form-layout/style/index.js +6 -4
  51. package/es/vtx-icon/index.js +54 -45
  52. package/es/vtx-icon/index.js1 +90 -0
  53. package/es/vtx-image/style/index.js +0 -1
  54. package/es/vtx-import/index.js +143 -42
  55. package/es/vtx-import/result.js +28 -26
  56. package/es/vtx-import/style/index.js +16 -1
  57. package/es/vtx-import2/Content.js +2 -1
  58. package/es/vtx-import2/index.js +29 -19
  59. package/es/vtx-import2/style/index.js +59 -8
  60. package/es/vtx-modal/index.js +11 -6
  61. package/es/vtx-modal/style/index.js +5 -2
  62. package/es/vtx-page-layout/Basic.js +2 -2
  63. package/es/vtx-page-layout/TabLayout.js +6 -6
  64. package/es/vtx-page-layout/TableLayout.js +10 -10
  65. package/es/vtx-page-layout/TreeLayout.js +6 -6
  66. package/es/vtx-page-layout/container.js +2 -2
  67. package/es/vtx-page-layout/style/index.js +4 -2
  68. package/es/vtx-provider/index.js +33 -31
  69. package/es/vtx-provider/intl.js +9 -9
  70. package/es/vtx-provider/locale/en_GB.js +1 -1
  71. package/es/vtx-provider/locale/en_US.js +58 -4
  72. package/es/vtx-provider/locale/zh_CN.js +57 -3
  73. package/es/vtx-provider/useStyle/index.js +17 -17
  74. package/es/vtx-search/index.js +30 -12
  75. package/es/vtx-search/style/index.js +6 -3
  76. package/es/vtx-select/index.js +123 -40
  77. package/es/vtx-select/style/index.js +11 -56
  78. package/es/vtx-split-pane/Resizer.js +0 -1
  79. package/es/vtx-split-pane/SplitPane.js +42 -34
  80. package/es/vtx-split-pane/style/index.js +8 -112
  81. package/es/vtx-time-picker/index.js +27 -1
  82. package/es/vtx-transfer/Transfer.js +29 -0
  83. package/es/vtx-transfer/index.js +3 -0
  84. package/es/vtx-transfer/style/index.js +19 -0
  85. package/es/vtx-transfer-select/TransferSelect.js +143 -0
  86. package/es/vtx-transfer-select/index.js +3 -0
  87. package/es/vtx-transfer-select/style/index.js +19 -0
  88. package/es/vtx-tree/index.js +27 -9
  89. package/es/vtx-tree-select/index.js +81 -110
  90. package/es/vtx-tree-select/style/index.js +9 -3
  91. package/es/vtx-upload/FilePreview.js +2 -1
  92. package/es/vtx-wang-editor/index.js +41 -32
  93. package/es/vtx-wang-editor/style/index.less +12 -12
  94. package/lib/index.js +36 -0
  95. package/lib/utils/components/LabelIconTip/index.js +7 -7
  96. package/lib/utils/conversionMomentValue/index.js +25 -25
  97. package/lib/utils/filterSpecialCharacters.js +6 -6
  98. package/lib/utils/genCopyable/index.js +6 -6
  99. package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  100. package/lib/utils/hooks/useDebounceFn/index.js +4 -4
  101. package/lib/utils/hooks/useDebounceValue/index.js +6 -6
  102. package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
  103. package/lib/utils/hooks/useLatest/index.js +2 -2
  104. package/lib/utils/hooks/useRefCallback/index.js +5 -5
  105. package/lib/utils/index.js +0 -7
  106. package/lib/utils/isBrowser/index.js +7 -7
  107. package/lib/utils/isUrl/index.js +4 -4
  108. package/lib/utils/merge/index.js +4 -4
  109. package/lib/utils/nanoid/index.js +4 -4
  110. package/lib/utils/omitBoolean/index.js +4 -4
  111. package/lib/utils/parseValueToMoment/index.js +4 -4
  112. package/lib/utils/proFieldParsingText/index.js +10 -10
  113. package/lib/utils/transformKeySubmitValue/index.js +57 -57
  114. package/lib/utils/useEditableArray/index.js +46 -46
  115. package/lib/utils/useEditableMap/index.js +22 -22
  116. package/lib/utils/useMediaQuery/index.js +5 -5
  117. package/lib/vtx-combogrid/Combogrid.js +5 -4
  118. package/lib/vtx-combogrid/index.js +7 -4
  119. package/lib/vtx-datagrid/Store/Provide.js +112 -142
  120. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +7 -6
  121. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
  122. package/lib/vtx-datagrid/ToolBar/index.js +2 -1
  123. package/lib/vtx-datagrid/ToolBar/style.js +6 -3
  124. package/lib/vtx-datagrid/columnState.js +100 -0
  125. package/lib/vtx-datagrid/index.js +134 -37
  126. package/lib/vtx-datagrid/mergeComponents.js +21 -0
  127. package/lib/vtx-datagrid/renderColumnButtons.js +30 -11
  128. package/lib/vtx-datagrid/style/index.js +108 -18
  129. package/lib/vtx-datagrid/style/index.less +242 -242
  130. package/lib/vtx-date-picker/QdatePicker.js +1 -1
  131. package/lib/vtx-date-picker/style/index.less +39 -39
  132. package/lib/vtx-descriptions/Descriptions.js +38 -0
  133. package/lib/vtx-descriptions/index.js +15 -0
  134. package/lib/vtx-descriptions/style/index.js +25 -0
  135. package/lib/vtx-ellipsis-text/index.js +2 -2
  136. package/lib/vtx-ellipsis-text/style/index.js +3 -1
  137. package/lib/vtx-export/index.js +34 -39
  138. package/lib/vtx-export-async/History.js +14 -8
  139. package/lib/vtx-export-async/index.js +18 -8
  140. package/lib/vtx-export-async/util.js +16 -5
  141. package/lib/vtx-form-layout/FormItem.js +16 -16
  142. package/lib/vtx-form-layout/style/index.js +6 -4
  143. package/lib/vtx-icon/index.js +54 -52
  144. package/lib/vtx-icon/index.js1 +90 -0
  145. package/lib/vtx-image/style/index.js +0 -1
  146. package/lib/vtx-import/index.js +141 -43
  147. package/lib/vtx-import/result.js +29 -27
  148. package/lib/vtx-import/style/index.js +16 -1
  149. package/lib/vtx-import2/Content.js +2 -1
  150. package/lib/vtx-import2/index.js +29 -19
  151. package/lib/vtx-import2/style/index.js +59 -8
  152. package/lib/vtx-modal/index.js +11 -6
  153. package/lib/vtx-modal/style/index.js +5 -2
  154. package/lib/vtx-page-layout/Basic.js +2 -2
  155. package/lib/vtx-page-layout/TabLayout.js +6 -6
  156. package/lib/vtx-page-layout/TableLayout.js +10 -10
  157. package/lib/vtx-page-layout/TreeLayout.js +6 -6
  158. package/lib/vtx-page-layout/container.js +2 -2
  159. package/lib/vtx-page-layout/style/index.js +4 -2
  160. package/lib/vtx-provider/index.js +33 -31
  161. package/lib/vtx-provider/intl.js +9 -9
  162. package/lib/vtx-provider/locale/en_GB.js +1 -1
  163. package/lib/vtx-provider/locale/en_US.js +58 -4
  164. package/lib/vtx-provider/locale/zh_CN.js +57 -3
  165. package/lib/vtx-provider/useStyle/index.js +17 -17
  166. package/lib/vtx-search/index.js +32 -12
  167. package/lib/vtx-search/style/index.js +6 -3
  168. package/lib/vtx-select/index.js +125 -42
  169. package/lib/vtx-select/style/index.js +11 -56
  170. package/lib/vtx-split-pane/Resizer.js +0 -1
  171. package/lib/vtx-split-pane/SplitPane.js +40 -31
  172. package/lib/vtx-split-pane/style/index.js +8 -112
  173. package/lib/vtx-time-picker/index.js +27 -1
  174. package/lib/vtx-transfer/Transfer.js +38 -0
  175. package/lib/vtx-transfer/index.js +15 -0
  176. package/lib/vtx-transfer/style/index.js +25 -0
  177. package/lib/vtx-transfer-select/TransferSelect.js +151 -0
  178. package/lib/vtx-transfer-select/index.js +15 -0
  179. package/lib/vtx-transfer-select/style/index.js +25 -0
  180. package/lib/vtx-tree/index.js +27 -9
  181. package/lib/vtx-tree-select/index.js +81 -112
  182. package/lib/vtx-tree-select/style/index.js +9 -3
  183. package/lib/vtx-upload/FilePreview.js +2 -1
  184. package/lib/vtx-wang-editor/index.js +39 -30
  185. package/lib/vtx-wang-editor/style/index.less +12 -12
  186. package/package.json +239 -238
  187. package/es/utils/hooks/useFetchData/index.js +0 -82
  188. package/lib/utils/hooks/useFetchData/index.js +0 -89
@@ -1,13 +1,13 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["value", "onChange", "downloadUrl", "uploadUrl", "placeholder", "maxFileSize", "defaultMaxFileSize", "maxNumberOfFiles", "height", "status", "enableSanitization", "toolConfig", "editConfig"];
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
5
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
9
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
10
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
9
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
10
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
11
11
  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; }
12
12
  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; }
13
13
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -17,14 +17,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
17
17
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  /*eslint-disable*/
20
- import React, { forwardRef, useState, useEffect, useContext, useCallback } from 'react';
20
+ import React, { forwardRef, useState, useEffect, useContext, useCallback, useRef } from 'react';
21
21
  import PropTypes from 'prop-types';
22
22
  import { Editor, Toolbar } from '@wangeditor/editor-for-react';
23
23
  import attachmentModule from '@wangeditor/plugin-upload-attachment';
24
- import { Boot } from '@wangeditor/editor';
24
+ import { i18nChangeLanguage, Boot } from '@wangeditor/editor';
25
25
  import getToken from "../utils/getToken";
26
+ import { message } from 'antd';
26
27
  import { withEmptyHtml, findAllImgSrcsFromHtml, extractImageDataFromRtf, replaceImagesFileSourceWithInlineRepresentation, replaceAllSpanFontSize, sanitizeHtml } from "./wangEditorUtil";
27
- import { ConfigProvider } from 'antd';
28
28
  import cls from 'classnames';
29
29
  import { useStyle } from "./style/index";
30
30
  import { FormItemInputContext } from 'antd/es/form/context';
@@ -45,7 +45,6 @@ var VtxWangEditor = function VtxWangEditor(props) {
45
45
  var _useStyle = useStyle(prefixCls),
46
46
  wrapSSR = _useStyle.wrapSSR,
47
47
  hashId = _useStyle.hashId;
48
-
49
48
  // 添加加载状态管理
50
49
  var _useState = useState(false),
51
50
  _useState2 = _slicedToArray(_useState, 2),
@@ -62,6 +61,7 @@ var VtxWangEditor = function VtxWangEditor(props) {
62
61
  setError(error.message);
63
62
  // 可以在这里添加错误上报逻辑
64
63
  }, []);
64
+ var valueRef = useRef();
65
65
  var _React$useContext = React.useContext(FormItemInputContext),
66
66
  contextStatus = _React$useContext.status,
67
67
  hasFeedback = _React$useContext.hasFeedback,
@@ -91,11 +91,25 @@ var VtxWangEditor = function VtxWangEditor(props) {
91
91
  _props$editConfig = props.editConfig,
92
92
  editConfig = _props$editConfig === void 0 ? {} : _props$editConfig,
93
93
  rest = _objectWithoutProperties(props, _excluded);
94
+ var language = props !== null && props !== void 0 && props.language || (intl === null || intl === void 0 ? void 0 : intl.locale) == 'en_US' ? 'en' : 'zh-CN' || 'zh-CN'; // en || zh-CN
95
+ var TextEnum = _objectSpread({
96
+ messageOverSizeText: intl.getMessage('wangEditor.messageOverSizeText', '超过文件大小限制,最大文件大小为'),
97
+ messageUploadFailText: intl.getMessage('wangEditor.imageUploadFailed', '上传出错'),
98
+ messageInsertImgFailText: intl.getMessage('wangEditor.imageUploadFailed', '插入图片失败'),
99
+ messageInsertVideoFailText: intl.getMessage('wangEditor.imageUploadFailed', '插入视频失败'),
100
+ messageInsertAttachmentFailText: ('wangEditor.imageUploadFailed', '插入附件失败')
101
+ }, props.customEnumText);
94
102
  var mergedStatus = getMergedStatus(contextStatus, customStatus);
95
103
  var _useState5 = useState(null),
96
104
  _useState6 = _slicedToArray(_useState5, 2),
97
105
  editor = _useState6[0],
98
106
  setEditor = _useState6[1];
107
+ useEffect(function () {
108
+ if (language) {
109
+ console.log('language', language);
110
+ i18nChangeLanguage(language);
111
+ }
112
+ }, [language]);
99
113
 
100
114
  // 及时销毁 editor ,重要!
101
115
  useEffect(function () {
@@ -108,6 +122,9 @@ var VtxWangEditor = function VtxWangEditor(props) {
108
122
  }
109
123
  };
110
124
  }, []);
125
+ useEffect(function () {
126
+ valueRef.current = value;
127
+ }, [value]);
111
128
 
112
129
  // 修改安全的粘贴处理函数
113
130
  var handleSafePaste = useCallback( /*#__PURE__*/function () {
@@ -230,10 +247,14 @@ var VtxWangEditor = function VtxWangEditor(props) {
230
247
  var newValue = editor.getHtml() || undefined;
231
248
  // 对输出内容也进行安全过滤
232
249
  var processedValue = enableSanitization && newValue !== undefined ? sanitizeHtml(newValue) : newValue;
233
- console.log('编辑器内容变化,处理前内容:', newValue);
234
- console.log('编辑器内容变化,处理后内容:', processedValue);
235
- if (processedValue !== value) {
236
- onChange(processedValue);
250
+ // console.log('编辑器内容变化,处理前内容:', newValue);
251
+ // console.log('编辑器内容变化,处理后内容:', processedValue);
252
+ if (processedValue !== valueRef.current) {
253
+ if (processedValue === undefined) {
254
+ onChange('');
255
+ } else {
256
+ onChange(processedValue);
257
+ }
237
258
  }
238
259
  } catch (error) {
239
260
  handleError(new Error('编辑器内容处理失败: ' + error.message));
@@ -256,7 +277,7 @@ var VtxWangEditor = function VtxWangEditor(props) {
256
277
  onBeforeUpload: function onBeforeUpload(file) {
257
278
  for (var key in file) {
258
279
  if (file[key].size > maxFileSize) {
259
- message.warn("\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236\uFF0C\u6700\u5927\u6587\u4EF6\u5927\u5C0F\u4E3A".concat(maxFileSize / 1024 / 1024, "M"));
280
+ message.warn("".concat(TextEnum.messageOverSizeText).concat(maxFileSize / 1024 / 1024, "M"));
260
281
  // return { [key]: false };
261
282
  return {};
262
283
  }
@@ -264,11 +285,10 @@ var VtxWangEditor = function VtxWangEditor(props) {
264
285
  return file;
265
286
  },
266
287
  onError: function onError(file, err, res) {
267
- handleError(new Error(intl.getMessage('wangEditor.imageUploadFailed', '图片上传失败')));
288
+ console.log("".concat(file.name, " ").concat(TextEnum.messageUploadFailText), err, res);
268
289
  },
269
290
  customInsert: function customInsert(res, insertFn) {
270
291
  try {
271
- console.log(res, insertFn);
272
292
  // res 即服务端的返回结果
273
293
  // 从 res 中找到 url alt href ,然后插入图片
274
294
  if (res.result == 0) {
@@ -276,7 +296,7 @@ var VtxWangEditor = function VtxWangEditor(props) {
276
296
  insertFn("".concat(downloadUrl).concat(item.id), item.fileName);
277
297
  });
278
298
  } else {
279
- throw new Error(intl.getMessage('wangEditor.imageInsertionFailed', '插入图片失败'));
299
+ throw new Error("".concat(TextEnum.messageInsertImgFailText));
280
300
  }
281
301
  } catch (error) {
282
302
  handleError(error);
@@ -292,12 +312,13 @@ var VtxWangEditor = function VtxWangEditor(props) {
292
312
  Authorization: 'Bearer ' + getToken()
293
313
  },
294
314
  onError: function onError(file, err, res) {
295
- handleError(new Error(intl.getMessage('wangEditor.videoUploadFailed', '视频上传失败')));
315
+ console.log("".concat(file.name, " ").concat(TextEnum.messageUploadFailText), err, res);
296
316
  },
297
317
  onBeforeUpload: function onBeforeUpload(file) {
298
318
  for (var key in file) {
299
319
  if (file[key].size > maxFileSize) {
300
- message.warn("\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236\uFF0C\u6700\u5927\u6587\u4EF6\u5927\u5C0F\u4E3A".concat(maxFileSize / 1024 / 1024, "M"));
320
+ message.warn("".concat(TextEnum.messageOverSizeText).concat(maxFileSize / 1024 / 1024, "M"));
321
+
301
322
  // return { [key]: false };
302
323
  return {};
303
324
  }
@@ -313,7 +334,7 @@ var VtxWangEditor = function VtxWangEditor(props) {
313
334
  insertFn("".concat(downloadUrl).concat(item.id), item.fileName);
314
335
  });
315
336
  } else {
316
- throw new Error(intl.getMessage('wangEditor.videoInsertionFailed', '插入视频失败'));
337
+ throw new Error("".concat(TextEnum.messageInsertVideoFailText));
317
338
  }
318
339
  } catch (error) {
319
340
  handleError(error);
@@ -328,7 +349,7 @@ var VtxWangEditor = function VtxWangEditor(props) {
328
349
  Authorization: 'Bearer ' + getToken()
329
350
  },
330
351
  onError: function onError(file, err, res) {
331
- handleError(new Error(intl.getMessage('wangEditor.attachmentUploadFailed', '附件上传失败')));
352
+ console.log("".concat(file.name, " ").concat(TextEnum.messageUploadFailText), err, res);
332
353
  },
333
354
  // onSuccess(file, res) {},
334
355
  // 上传成功后,用户自定义插入文件
@@ -336,11 +357,10 @@ var VtxWangEditor = function VtxWangEditor(props) {
336
357
  try {
337
358
  if (res.result == 0) {
338
359
  res.data.map(function (item) {
339
- console.log('插入附件:', item, insertFn);
340
360
  insertFn(item.fileName, "".concat(downloadUrl).concat(item.id));
341
361
  });
342
362
  } else {
343
- throw new Error(intl.getMessage('wangEditor.attachmentInsertionFailed', '插入附件失败'));
363
+ throw new Error("".concat(TextEnum.messageInsertAttachmentFailText));
344
364
  }
345
365
  } catch (error) {
346
366
  handleError(error);
@@ -401,15 +421,4 @@ VtxWangEditor.propTypes = {
401
421
  status: PropTypes.string,
402
422
  prefixCls: PropTypes.string,
403
423
  enableSanitization: PropTypes.bool // 是否启用HTML过滤
404
- };
405
-
406
- // 添加默认属性
407
- VtxWangEditor.defaultProps = {
408
- enableSanitization: true,
409
- maxFileSize: 5 * 1024 * 1024,
410
- maxNumberOfFiles: 5,
411
- height: 350,
412
- placeholder: '',
413
- downloadUrl: '/cloudFile/common/downloadFile?id=',
414
- uploadUrl: '/cloudFile/common/uploadFile'
415
424
  };
@@ -1,12 +1,12 @@
1
-
2
-
3
- .vtx-wang-editor {
4
- border: @border-width-base @border-style-base @border-color-base;
5
- &.w-e-full-screen-container {
6
- z-index: 999999;
7
- }
8
- &-content {
9
- height: 350px;
10
- border-top: @border-width-base @border-style-base @border-color-base;
11
- }
12
- }
1
+
2
+
3
+ .vtx-wang-editor {
4
+ border: @border-width-base @border-style-base @border-color-base;
5
+ &.w-e-full-screen-container {
6
+ z-index: 999999;
7
+ }
8
+ &-content {
9
+ height: 350px;
10
+ border-top: @border-width-base @border-style-base @border-color-base;
11
+ }
12
+ }
package/lib/index.js CHANGED
@@ -253,6 +253,18 @@ Object.keys(_vtxSignature).forEach(function (key) {
253
253
  }
254
254
  });
255
255
  });
256
+ var _vtxTransferSelect = require("./vtx-transfer-select");
257
+ Object.keys(_vtxTransferSelect).forEach(function (key) {
258
+ if (key === "default" || key === "__esModule") return;
259
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
260
+ if (key in exports && exports[key] === _vtxTransferSelect[key]) return;
261
+ Object.defineProperty(exports, key, {
262
+ enumerable: true,
263
+ get: function get() {
264
+ return _vtxTransferSelect[key];
265
+ }
266
+ });
267
+ });
256
268
  var _vtxDatagrid = require("./vtx-datagrid");
257
269
  Object.keys(_vtxDatagrid).forEach(function (key) {
258
270
  if (key === "default" || key === "__esModule") return;
@@ -325,6 +337,18 @@ Object.keys(_vtxTree).forEach(function (key) {
325
337
  }
326
338
  });
327
339
  });
340
+ var _vtxTransfer = require("./vtx-transfer");
341
+ Object.keys(_vtxTransfer).forEach(function (key) {
342
+ if (key === "default" || key === "__esModule") return;
343
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
344
+ if (key in exports && exports[key] === _vtxTransfer[key]) return;
345
+ Object.defineProperty(exports, key, {
346
+ enumerable: true,
347
+ get: function get() {
348
+ return _vtxTransfer[key];
349
+ }
350
+ });
351
+ });
328
352
  var _vtxSplitPane = require("./vtx-split-pane");
329
353
  Object.keys(_vtxSplitPane).forEach(function (key) {
330
354
  if (key === "default" || key === "__esModule") return;
@@ -349,6 +373,18 @@ Object.keys(_vtxIcon).forEach(function (key) {
349
373
  }
350
374
  });
351
375
  });
376
+ var _vtxDescriptions = require("./vtx-descriptions");
377
+ Object.keys(_vtxDescriptions).forEach(function (key) {
378
+ if (key === "default" || key === "__esModule") return;
379
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
380
+ if (key in exports && exports[key] === _vtxDescriptions[key]) return;
381
+ Object.defineProperty(exports, key, {
382
+ enumerable: true,
383
+ get: function get() {
384
+ return _vtxDescriptions[key];
385
+ }
386
+ });
387
+ });
352
388
  var _vtxModal = require("./vtx-modal");
353
389
  Object.keys(_vtxModal).forEach(function (key) {
354
390
  if (key === "default" || key === "__esModule") return;
@@ -18,13 +18,13 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
19
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
20
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
22
- * 在 form 的 label 后面增加一个 tips 来展示一些说明文案
23
- * @param {Object} props
24
- * @param {React.ReactNode} props.label
25
- * @param {React.ReactNode} [props.subTitle]
26
- * @param {string|Object} [props.tooltip]
27
- * @param {boolean|Object} [props.ellipsis]
21
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
22
+ * 在 form 的 label 后面增加一个 tips 来展示一些说明文案
23
+ * @param {Object} props
24
+ * @param {React.ReactNode} props.label
25
+ * @param {React.ReactNode} [props.subTitle]
26
+ * @param {string|Object} [props.tooltip]
27
+ * @param {boolean|Object} [props.ellipsis]
28
28
  */
29
29
  var LabelIconTip = exports.LabelIconTip = /*#__PURE__*/_react.default.memo(function (props) {
30
30
  var label = props.label,
@@ -25,19 +25,19 @@ var dateFormatterMap = exports.dateFormatterMap = {
25
25
  dateTimeRange: 'YYYY-MM-DD HH:mm:ss'
26
26
  };
27
27
 
28
- /**
29
- * 判断是不是一个 object
30
- * @param {any} o
31
- * @returns boolean
28
+ /**
29
+ * 判断是不是一个 object
30
+ * @param {any} o
31
+ * @returns boolean
32
32
  */
33
33
  function isObject(o) {
34
34
  return Object.prototype.toString.call(o) === '[object Object]';
35
35
  }
36
36
 
37
- /**
38
- * 判断是否是一个的简单的 object
39
- * @param {{constructor:any}} o
40
- * @returns boolean
37
+ /**
38
+ * 判断是否是一个的简单的 object
39
+ * @param {{constructor:any}} o
40
+ * @returns boolean
41
41
  */
42
42
  function isPlainObject(o) {
43
43
  if (isObject(o) === false) return false;
@@ -59,20 +59,20 @@ function isPlainObject(o) {
59
59
  return true;
60
60
  }
61
61
 
62
- /**
63
- * 一个比较hack的moment判断工具
64
- * @param {any} value
65
- * @returns boolean
62
+ /**
63
+ * 一个比较hack的moment判断工具
64
+ * @param {any} value
65
+ * @returns boolean
66
66
  */
67
67
  var isMoment = function isMoment(value) {
68
68
  return !!(value !== null && value !== void 0 && value._isAMomentObject);
69
69
  };
70
70
 
71
- /**
72
- * 根据不同的格式转化 dayjs
73
- * @param {dayjs.Dayjs} value
74
- * @param {string|((value:dayjs.Dayjs} dateFormatter
75
- * @param {string} valueType
71
+ /**
72
+ * 根据不同的格式转化 dayjs
73
+ * @param {dayjs.Dayjs} value
74
+ * @param {string|((value:dayjs.Dayjs} dateFormatter
75
+ * @param {string} valueType
76
76
  */
77
77
  var convertMoment = exports.convertMoment = function convertMoment(value, dateFormatter, valueType) {
78
78
  if (!dateFormatter) {
@@ -95,14 +95,14 @@ var convertMoment = exports.convertMoment = function convertMoment(value, dateFo
95
95
  return value;
96
96
  };
97
97
 
98
- /**
99
- * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
100
- * @param {T} value
101
- * @param {DateFormatter} dateFormatter
102
- * @param {Record<string} valueTypeMap
103
- * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
104
- * @param {boolean} omitNil?
105
- * @param {NamePath} parentKey?
98
+ /**
99
+ * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
100
+ * @param {T} value
101
+ * @param {DateFormatter} dateFormatter
102
+ * @param {Record<string} valueTypeMap
103
+ * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
104
+ * @param {boolean} omitNil?
105
+ * @param {NamePath} parentKey?
106
106
  */
107
107
  var conversionMomentValue = exports.conversionMomentValue = function conversionMomentValue(value, dateFormatter, valueTypeMap, omitNil, parentKey) {
108
108
  var tmpValue = {};
@@ -63,12 +63,12 @@ var SpecialCharacters = exports.SpecialCharacters = [
63
63
  '%', '%',
64
64
  // 其它
65
65
  '@', '#', '`', '~', '*', '^', '……', '|', '&'];
66
- /**
67
- * 过滤特殊字符
68
- * @param {String} value 值
69
- * @param {Object} option
70
- * @param {Array} [option.include] 新增
71
- * @param {Array} [option.exclude] 排除
66
+ /**
67
+ * 过滤特殊字符
68
+ * @param {String} value 值
69
+ * @param {Object} option
70
+ * @param {Array} [option.include] 新增
71
+ * @param {Array} [option.exclude] 排除
72
72
  */
73
73
  function filterSpecialCharacters(value) {
74
74
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -26,12 +26,12 @@ var getEllipsis = function getEllipsis(item) {
26
26
  return item.ellipsis;
27
27
  };
28
28
 
29
- /**
30
- * 生成 Copyable 或 Ellipsis 的 dom
31
- *
32
- * @param dom
33
- * @param item
34
- * @param text
29
+ /**
30
+ * 生成 Copyable 或 Ellipsis 的 dom
31
+ *
32
+ * @param dom
33
+ * @param item
34
+ * @param text
35
35
  */
36
36
  var genCopyable = exports.genCopyable = function genCopyable(dom, item, text) {
37
37
  if (item.copyable || item.ellipsis) {
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getFieldPropsOrFormItemProps = void 0;
7
7
  var _runFunction = require("../runFunction");
8
- /**
9
- * 因为 fieldProps 支持了 function 所以新增了这个方法
10
- *
11
- * @param {any} fieldProps
12
- * @param {any} [form]
13
- * @param {any} [extraProps]
14
- * @returns {Record<string, any> & { onChange: any, colSize: number }}
8
+ /**
9
+ * 因为 fieldProps 支持了 function 所以新增了这个方法
10
+ *
11
+ * @param {any} fieldProps
12
+ * @param {any} [form]
13
+ * @param {any} [extraProps]
14
+ * @returns {Record<string, any> & { onChange: any, colSize: number }}
15
15
  */
16
16
  var getFieldPropsOrFormItemProps = exports.getFieldPropsOrFormItemProps = function getFieldPropsOrFormItemProps(fieldProps, form, extraProps) {
17
17
  if (form === undefined) {
@@ -10,10 +10,10 @@ var _useRefFunction = require("../useRefFunction");
10
10
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
11
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
12
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
- /**
14
- * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
15
- * @param {(...args:T) => Promise<any>} fn
16
- * @param {number} wait?
13
+ /**
14
+ * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
15
+ * @param {(...args:T) => Promise<any>} fn
16
+ * @param {number} wait?
17
17
  */
18
18
  function useDebounceFn(fn, wait) {
19
19
  var callback = (0, _useRefFunction.useRefFunction)(fn);
@@ -16,12 +16,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
16
16
  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; }
17
17
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
- /**
20
- * 一个去抖的setState,减少更新的频率
21
- * @param {any} value
22
- * @param {number} [delay=100]
23
- * @param {any[]} deps
24
- * @returns {any}
19
+ /**
20
+ * 一个去抖的setState,减少更新的频率
21
+ * @param {any} value
22
+ * @param {number} [delay=100]
23
+ * @param {any[]} deps
24
+ * @returns {any}
25
25
  */
26
26
  function useDebounceValue(value) {
27
27
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
@@ -7,13 +7,13 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _useDeepCompareEffect = require("../useDeepCompareEffect");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- /**
11
- * `useDeepCompareMemo` will only recompute the memoized value when one of the
12
- * `deps` has changed.
13
- *
14
- * Usage note: only use this if `deps` are objects or arrays that contain
15
- * objects. Otherwise you should just use React.useMemo.
16
- *
10
+ /**
11
+ * `useDeepCompareMemo` will only recompute the memoized value when one of the
12
+ * `deps` has changed.
13
+ *
14
+ * Usage note: only use this if `deps` are objects or arrays that contain
15
+ * objects. Otherwise you should just use React.useMemo.
16
+ *
17
17
  */
18
18
  function useDeepCompareMemo(factory, dependencies) {
19
19
  return _react.default.useMemo(factory, (0, _useDeepCompareEffect.useDeepCompareMemoize)(dependencies));
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useLatest = void 0;
7
7
  var _react = require("react");
8
- /**
9
- * @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
8
+ /**
9
+ * @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
10
10
  */
11
11
  var useLatest = exports.useLatest = function useLatest(value) {
12
12
  var ref = (0, _react.useRef)(value);
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useRefCallback = useRefCallback;
7
7
  var _react = require("react");
8
- /**
9
- * useRefCallback
10
- * @param {Function} callback ref.current 变化时触发
11
- * @param {any} [initialValue] 初始值
12
- * @returns {Object} 代理后的 ref 对象
8
+ /**
9
+ * useRefCallback
10
+ * @param {Function} callback ref.current 变化时触发
11
+ * @param {any} [initialValue] 初始值
12
+ * @returns {Object} 代理后的 ref 对象
13
13
  */
14
14
  function useRefCallback(callback, initialValue) {
15
15
  var ref = (0, _react.useMemo)(function () {
@@ -333,12 +333,6 @@ Object.defineProperty(exports, "useEditableMap", {
333
333
  return _useEditableMap.useEditableMap;
334
334
  }
335
335
  });
336
- Object.defineProperty(exports, "useFetchData", {
337
- enumerable: true,
338
- get: function get() {
339
- return _useFetchData.useFetchData;
340
- }
341
- });
342
336
  Object.defineProperty(exports, "useLatest", {
343
337
  enumerable: true,
344
338
  get: function get() {
@@ -398,7 +392,6 @@ var _useDebounceValue = require("./hooks/useDebounceValue");
398
392
  var _useDeepCompareEffect = require("./hooks/useDeepCompareEffect");
399
393
  var _useDeepCompareMemo = _interopRequireDefault(require("./hooks/useDeepCompareMemo"));
400
394
  var _useDocumentTitle = require("./hooks/useDocumentTitle");
401
- var _useFetchData = require("./hooks/useFetchData");
402
395
  var _useLatest = require("./hooks/useLatest");
403
396
  var _usePrevious = require("./hooks/usePrevious");
404
397
  var _useReactiveRef = require("./hooks/useReactiveRef");