@vtx/components 4.0.0-beta.86 → 4.0.0-beta.87

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 (318) hide show
  1. package/README.md +19 -19
  2. package/dist/27.7e3a5587.async.js +11 -0
  3. package/dist/404.html +17 -0
  4. package/dist/4217.9f9c8f33.async.js +1 -0
  5. package/dist/4571.1f5588f5.async.js +5 -0
  6. package/dist/8238.a223befe.async.js +688 -0
  7. package/dist/8552.83c22540.async.js +1265 -0
  8. package/dist/9260.21c26210.async.js +137 -0
  9. package/dist/VtxColorPicker__demos.c3e03ab4.async.js +1 -0
  10. package/dist/VtxCombogrid__demos.81dd3d19.async.js +1 -0
  11. package/dist/VtxDatagrid__demos.bb6d2937.async.js +1 -0
  12. package/dist/VtxDescriptions__demos.c1d10744.async.js +1 -0
  13. package/dist/VtxEllipsisText__demos.f56d2a6b.async.js +1 -0
  14. package/dist/VtxExportAsync__demos.8bd5e7fc.async.js +1 -0
  15. package/dist/VtxExport__demos.f0c12996.async.js +1 -0
  16. package/dist/VtxFormLayout__demos.cbc5ebda.async.js +1 -0
  17. package/dist/VtxImage__demos.1c568ce3.async.js +1 -0
  18. package/dist/VtxImport2__demos.dd7cfbcf.async.js +1 -0
  19. package/dist/VtxImport__demos.1403a7a8.async.js +1 -0
  20. package/dist/VtxInput__demos.d1aeb2ca.async.js +1 -0
  21. package/dist/VtxModal__demos.c18d608e.async.js +1 -0
  22. package/dist/VtxPageLayout__demos.d223bf3b.async.js +1 -0
  23. package/dist/VtxRpsFrame__demos.3f951d24.async.js +1 -0
  24. package/dist/VtxScrollableRow__demos.a4859102.async.js +1 -0
  25. package/dist/VtxSearch__demos.7faa294b.async.js +1 -0
  26. package/dist/VtxSelect__demos.d6eb6d2b.async.js +1 -0
  27. package/dist/VtxSignature__demos.6abe7992.async.js +1 -0
  28. package/dist/VtxSplitPane__demos.2d21bf24.async.js +1 -0
  29. package/dist/VtxStatisticsColumn__demos.c466441f.async.js +1 -0
  30. package/dist/VtxTimePicker__demos.51ecd5f0.async.js +1 -0
  31. package/dist/VtxTransferSelect__demos.1e97ae79.async.js +1 -0
  32. package/dist/VtxTransfer__demos.18ba60b0.async.js +1 -0
  33. package/dist/VtxTreeSelect__demos.8ae23eb7.async.js +1 -0
  34. package/dist/VtxTree__demos.1ae9263d.async.js +1 -0
  35. package/dist/VtxUpload__demos.f8ac6088.async.js +1 -0
  36. package/dist/VtxWangEditor__demos.4c7f9743.async.js +1 -0
  37. package/dist/changelog/index.html +17 -0
  38. package/dist/components/index.html +17 -0
  39. package/dist/components/vtx-color-picker/index.html +17 -0
  40. package/dist/components/vtx-combogrid/index.html +17 -0
  41. package/dist/components/vtx-datagrid/index.html +17 -0
  42. package/dist/components/vtx-date-picker/index.html +17 -0
  43. package/dist/components/vtx-descriptions/index.html +17 -0
  44. package/dist/components/vtx-ellipsis-text/index.html +17 -0
  45. package/dist/components/vtx-export/index.html +17 -0
  46. package/dist/components/vtx-export-async/index.html +17 -0
  47. package/dist/components/vtx-form-layout/index.html +17 -0
  48. package/dist/components/vtx-image/index.html +17 -0
  49. package/dist/components/vtx-import/index.html +17 -0
  50. package/dist/components/vtx-import2/index.html +17 -0
  51. package/dist/components/vtx-input/index.html +17 -0
  52. package/dist/components/vtx-modal/index.html +17 -0
  53. package/dist/components/vtx-page-layout/index.html +17 -0
  54. package/dist/components/vtx-rps-frame/index.html +17 -0
  55. package/dist/components/vtx-scrollable-row/index.html +17 -0
  56. package/dist/components/vtx-search/index.html +17 -0
  57. package/dist/components/vtx-select/index.html +17 -0
  58. package/dist/components/vtx-signature/index.html +17 -0
  59. package/dist/components/vtx-split-pane/index.html +17 -0
  60. package/dist/components/vtx-statistics-column/index.html +17 -0
  61. package/dist/components/vtx-time-picker/index.html +17 -0
  62. package/dist/components/vtx-transfer/index.html +17 -0
  63. package/dist/components/vtx-transfer-select/index.html +17 -0
  64. package/dist/components/vtx-tree/index.html +17 -0
  65. package/dist/components/vtx-tree-select/index.html +17 -0
  66. package/dist/components/vtx-upload/index.html +17 -0
  67. package/dist/components/vtx-wang-editor/index.html +17 -0
  68. package/dist/demos.d31d47d3.async.js +1 -0
  69. package/dist/docs/api-changes/index.html +17 -0
  70. package/dist/docs/index.html +17 -0
  71. package/dist/docs/migration-guide/index.html +17 -0
  72. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.9bd1f529.async.js +1 -0
  73. package/dist/favicon.ico +0 -0
  74. package/dist/icon.png +0 -0
  75. package/dist/index.html +17 -0
  76. package/dist/meta__site.77f4ce5c.async.js +24576 -0
  77. package/dist/meta__site.cb4ba864.chunk.css +9 -0
  78. package/dist/meta__vtx-search.1cffc39e.async.js +5 -0
  79. package/dist/nm__dumi-theme-vortex-style__dist__layouts__DemoLayout__index.d38bb511.async.js +1 -0
  80. package/dist/nm__dumi-theme-vortex-style__dist__layouts__DocLayout__index.eec80432.chunk.css +1 -0
  81. package/dist/nm__dumi__dist__client__pages__404.02c0a12e.async.js +1 -0
  82. package/dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +1 -0
  83. package/dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +1 -0
  84. package/dist/nm__dumi__dist__client__pages__Demo__index.ce4c974c.async.js +1 -0
  85. package/dist/preload_helper.91c86d97.js +1 -0
  86. package/dist/site__changelog.md.2004f9af.async.js +1 -0
  87. package/dist/site__changelog.md.33be0665.chunk.css +1 -0
  88. package/dist/site__components__index.md.33be0665.chunk.css +1 -0
  89. package/dist/site__components__index.md.4b208bce.async.js +1 -0
  90. package/dist/site__components__vtx-color-picker__index.md.33be0665.chunk.css +1 -0
  91. package/dist/site__components__vtx-color-picker__index.md.8cde38ad.async.js +1 -0
  92. package/dist/site__components__vtx-combogrid__index.md.33be0665.chunk.css +1 -0
  93. package/dist/site__components__vtx-combogrid__index.md.3a276575.async.js +19 -0
  94. package/dist/site__components__vtx-datagrid__index.md.33be0665.chunk.css +1 -0
  95. package/dist/site__components__vtx-datagrid__index.md.6b8af1e9.async.js +58 -0
  96. package/dist/site__components__vtx-date-picker__index.md.33be0665.chunk.css +1 -0
  97. package/dist/site__components__vtx-date-picker__index.md.79fe2a74.async.js +1 -0
  98. package/dist/site__components__vtx-descriptions__index.md.33be0665.chunk.css +1 -0
  99. package/dist/site__components__vtx-descriptions__index.md.581f585c.async.js +1 -0
  100. package/dist/site__components__vtx-ellipsis-text__index.md.33be0665.chunk.css +1 -0
  101. package/dist/site__components__vtx-ellipsis-text__index.md.d6064e54.async.js +1 -0
  102. package/dist/site__components__vtx-export-async__index.md.33be0665.chunk.css +1 -0
  103. package/dist/site__components__vtx-export-async__index.md.c235ace9.async.js +50 -0
  104. package/dist/site__components__vtx-export__index.md.33be0665.chunk.css +1 -0
  105. package/dist/site__components__vtx-export__index.md.54504e6f.async.js +6 -0
  106. package/dist/site__components__vtx-form-layout__index.md.1f1785cf.async.js +1 -0
  107. package/dist/site__components__vtx-form-layout__index.md.33be0665.chunk.css +1 -0
  108. package/dist/site__components__vtx-image__index.md.33be0665.chunk.css +1 -0
  109. package/dist/site__components__vtx-image__index.md.68cd709b.async.js +7 -0
  110. package/dist/site__components__vtx-import2__index.md.33be0665.chunk.css +1 -0
  111. package/dist/site__components__vtx-import2__index.md.533d4e74.async.js +22 -0
  112. package/dist/site__components__vtx-import__index.md.2cb1513e.async.js +17 -0
  113. package/dist/site__components__vtx-import__index.md.33be0665.chunk.css +1 -0
  114. package/dist/site__components__vtx-input__index.md.33be0665.chunk.css +1 -0
  115. package/dist/site__components__vtx-input__index.md.5403e1e4.async.js +1 -0
  116. package/dist/site__components__vtx-modal__index.md.0f8af11e.async.js +9 -0
  117. package/dist/site__components__vtx-modal__index.md.33be0665.chunk.css +1 -0
  118. package/dist/site__components__vtx-page-layout__index.md.33be0665.chunk.css +1 -0
  119. package/dist/site__components__vtx-page-layout__index.md.e4956ee7.async.js +1 -0
  120. package/dist/site__components__vtx-rps-frame__index.md.33be0665.chunk.css +1 -0
  121. package/dist/site__components__vtx-rps-frame__index.md.c80279df.async.js +1 -0
  122. package/dist/site__components__vtx-scrollable-row__index.md.33be0665.chunk.css +1 -0
  123. package/dist/site__components__vtx-scrollable-row__index.md.df93edc6.async.js +1 -0
  124. package/dist/site__components__vtx-search__index.md.33be0665.chunk.css +1 -0
  125. package/dist/site__components__vtx-search__index.md.d011bdaa.async.js +17 -0
  126. package/dist/site__components__vtx-select__index.md.33be0665.chunk.css +1 -0
  127. package/dist/site__components__vtx-select__index.md.de66c747.async.js +6 -0
  128. package/dist/site__components__vtx-signature__index.md.33be0665.chunk.css +1 -0
  129. package/dist/site__components__vtx-signature__index.md.b8b1093d.async.js +1 -0
  130. package/dist/site__components__vtx-split-pane__index.md.2163de9a.async.js +1 -0
  131. package/dist/site__components__vtx-split-pane__index.md.33be0665.chunk.css +1 -0
  132. package/dist/site__components__vtx-statistics-column__index.md.33be0665.chunk.css +1 -0
  133. package/dist/site__components__vtx-statistics-column__index.md.543d917f.async.js +1 -0
  134. package/dist/site__components__vtx-time-picker__index.md.33be0665.chunk.css +1 -0
  135. package/dist/site__components__vtx-time-picker__index.md.a1ef3b11.async.js +1 -0
  136. package/dist/site__components__vtx-transfer-select__index.md.33be0665.chunk.css +1 -0
  137. package/dist/site__components__vtx-transfer-select__index.md.df61e6d2.async.js +1 -0
  138. package/dist/site__components__vtx-transfer__index.md.33be0665.chunk.css +1 -0
  139. package/dist/site__components__vtx-transfer__index.md.e17f6962.async.js +1 -0
  140. package/dist/site__components__vtx-tree-select__index.md.2ee8c02c.async.js +1 -0
  141. package/dist/site__components__vtx-tree-select__index.md.33be0665.chunk.css +1 -0
  142. package/dist/site__components__vtx-tree__index.md.33be0665.chunk.css +1 -0
  143. package/dist/site__components__vtx-tree__index.md.9bd6ff74.async.js +1 -0
  144. package/dist/site__components__vtx-upload__index.md.33be0665.chunk.css +1 -0
  145. package/dist/site__components__vtx-upload__index.md.5a7d3eda.async.js +6 -0
  146. package/dist/site__components__vtx-wang-editor__index.md.33be0665.chunk.css +1 -0
  147. package/dist/site__components__vtx-wang-editor__index.md.9eb84586.async.js +7 -0
  148. package/dist/site__docs__api-changes.md.33be0665.chunk.css +1 -0
  149. package/dist/site__docs__api-changes.md.42dee6c8.async.js +6 -0
  150. package/dist/site__docs__index.md.33be0665.chunk.css +1 -0
  151. package/dist/site__docs__index.md.8e7c64da.async.js +53 -0
  152. package/dist/site__docs__migration-guide.md.33be0665.chunk.css +1 -0
  153. package/dist/site__docs__migration-guide.md.fe82d57e.async.js +194 -0
  154. package/dist/site__index.md.33be0665.chunk.css +1 -0
  155. package/dist/site__index.md.54cae2e4.async.js +1 -0
  156. package/dist/sitemap.xml +1 -0
  157. package/dist/umi.4db41586.css +1 -0
  158. package/dist/umi.e0925664.js +879 -0
  159. package/dist/vtx-search__index.md.33be0665.chunk.css +1 -0
  160. package/dist/vtx-search__index.md.a29f26ea.async.js +5 -0
  161. package/dist/~demos/site-components-vtx-date-picker-demo-demo1/index.html +17 -0
  162. package/dist/~demos/site-components-vtx-date-picker-demo-demo3/index.html +17 -0
  163. package/dist/~demos/vtxcolorpicker-demo-base/index.html +17 -0
  164. package/dist/~demos/vtxcolorpicker-demo-base-form/index.html +17 -0
  165. package/dist/~demos/vtxcombogrid-demo-demo1/index.html +17 -0
  166. package/dist/~demos/vtxcombogrid-demo-demo2/index.html +17 -0
  167. package/dist/~demos/vtxcombogrid-demo-demo3/index.html +17 -0
  168. package/dist/~demos/vtxcombogrid-demo-demo4/index.html +17 -0
  169. package/dist/~demos/vtxcombogrid-demo-demo5/index.html +17 -0
  170. package/dist/~demos/vtxdatagrid-demo-demo1/index.html +17 -0
  171. package/dist/~demos/vtxdatagrid-demo-demo10/index.html +17 -0
  172. package/dist/~demos/vtxdatagrid-demo-demo2/index.html +17 -0
  173. package/dist/~demos/vtxdatagrid-demo-demo3/index.html +17 -0
  174. package/dist/~demos/vtxdatagrid-demo-demo4/index.html +17 -0
  175. package/dist/~demos/vtxdatagrid-demo-demo5/index.html +17 -0
  176. package/dist/~demos/vtxdatagrid-demo-demo6/index.html +17 -0
  177. package/dist/~demos/vtxdatagrid-demo-demo7/index.html +17 -0
  178. package/dist/~demos/vtxdatagrid-demo-demo8/index.html +17 -0
  179. package/dist/~demos/vtxdatagrid-demo-demo9/index.html +17 -0
  180. package/dist/~demos/vtxdescriptions-demo-base/index.html +17 -0
  181. package/dist/~demos/vtxdescriptions-demo-border/index.html +17 -0
  182. package/dist/~demos/vtxellipsistext-demo-demo1/index.html +17 -0
  183. package/dist/~demos/vtxexport-demo-demo1/index.html +17 -0
  184. package/dist/~demos/vtxexportasync-demo-demo1/index.html +17 -0
  185. package/dist/~demos/vtxformlayout-demo-demo1/index.html +17 -0
  186. package/dist/~demos/vtxformlayout-demo-demo10/index.html +17 -0
  187. package/dist/~demos/vtxformlayout-demo-demo2/index.html +17 -0
  188. package/dist/~demos/vtxformlayout-demo-demo3/index.html +17 -0
  189. package/dist/~demos/vtxformlayout-demo-demo4/index.html +17 -0
  190. package/dist/~demos/vtxformlayout-demo-demo5/index.html +17 -0
  191. package/dist/~demos/vtxformlayout-demo-demo6/index.html +17 -0
  192. package/dist/~demos/vtxformlayout-demo-demo7/index.html +17 -0
  193. package/dist/~demos/vtxformlayout-demo-demo8/index.html +17 -0
  194. package/dist/~demos/vtxformlayout-demo-demo9/index.html +17 -0
  195. package/dist/~demos/vtximage-demo-demo1/index.html +17 -0
  196. package/dist/~demos/vtximage-demo-demo2/index.html +17 -0
  197. package/dist/~demos/vtximage-demo-demo3/index.html +17 -0
  198. package/dist/~demos/vtximage-demo-demo4/index.html +17 -0
  199. package/dist/~demos/vtximport-demo-base/index.html +17 -0
  200. package/dist/~demos/vtximport2-demo-base/index.html +17 -0
  201. package/dist/~demos/vtxinput-demo-demo1/index.html +17 -0
  202. package/dist/~demos/vtxinput-demo-demo2/index.html +17 -0
  203. package/dist/~demos/vtxinput-demo-demo3/index.html +17 -0
  204. package/dist/~demos/vtxmodal-demo-demo1/index.html +17 -0
  205. package/dist/~demos/vtxmodal-demo-demo2/index.html +17 -0
  206. package/dist/~demos/vtxmodal-demo-demo3/index.html +17 -0
  207. package/dist/~demos/vtxpagelayout-demo-demo1/index.html +17 -0
  208. package/dist/~demos/vtxpagelayout-demo-demo2/index.html +17 -0
  209. package/dist/~demos/vtxpagelayout-demo-demo3/index.html +17 -0
  210. package/dist/~demos/vtxpagelayout-demo-demo4/index.html +17 -0
  211. package/dist/~demos/vtxpagelayout-demo-demo5/index.html +17 -0
  212. package/dist/~demos/vtxrpsframe-demo-base/index.html +17 -0
  213. package/dist/~demos/vtxscrollablerow-demo-demo/index.html +17 -0
  214. package/dist/~demos/vtxsearch-demo-demo1/index.html +17 -0
  215. package/dist/~demos/vtxsearch-demo-demo2/index.html +17 -0
  216. package/dist/~demos/vtxsearch-demo-demo3/index.html +17 -0
  217. package/dist/~demos/vtxsearch-demo-demo4/index.html +17 -0
  218. package/dist/~demos/vtxselect-demo-base/index.html +17 -0
  219. package/dist/~demos/vtxselect-demo-base-multiple/index.html +17 -0
  220. package/dist/~demos/vtxsignature-demo-demo/index.html +17 -0
  221. package/dist/~demos/vtxsignature-demo-demo1/index.html +17 -0
  222. package/dist/~demos/vtxsplitpane-demo-demo1/index.html +17 -0
  223. package/dist/~demos/vtxsplitpane-demo-demo2/index.html +17 -0
  224. package/dist/~demos/vtxsplitpane-demo-demo3/index.html +17 -0
  225. package/dist/~demos/vtxsplitpane-demo-demo4/index.html +17 -0
  226. package/dist/~demos/vtxstatisticscolumn-demo-demo1/index.html +17 -0
  227. package/dist/~demos/vtxstatisticscolumn-demo-demo2/index.html +17 -0
  228. package/dist/~demos/vtxstatisticscolumn-demo-demo3/index.html +17 -0
  229. package/dist/~demos/vtxtimepicker-demo-base/index.html +17 -0
  230. package/dist/~demos/vtxtransfer-demo-base/index.html +17 -0
  231. package/dist/~demos/vtxtransferselect-demo-base/index.html +17 -0
  232. package/dist/~demos/vtxtree-demo-demo1/index.html +17 -0
  233. package/dist/~demos/vtxtree-demo-demo2/index.html +17 -0
  234. package/dist/~demos/vtxtree-demo-demo3/index.html +17 -0
  235. package/dist/~demos/vtxtreeselect-demo-demo1/index.html +17 -0
  236. package/dist/~demos/vtxtreeselect-demo-demo2/index.html +17 -0
  237. package/dist/~demos/vtxtreeselect-demo-demo3/index.html +17 -0
  238. package/dist/~demos/vtxtreeselect-demo-demo4/index.html +17 -0
  239. package/dist/~demos/vtxupload-demo-demo1/index.html +17 -0
  240. package/dist/~demos/vtxupload-demo-demo2/index.html +17 -0
  241. package/dist/~demos/vtxupload-demo-demo3/index.html +17 -0
  242. package/dist/~demos/vtxupload-demo-demo4/index.html +17 -0
  243. package/dist/~demos/vtxwangeditor-demo-demo1/index.html +17 -0
  244. package/es/utils/components/LabelIconTip/index.js +7 -7
  245. package/es/utils/conversionMomentValue/index.js +25 -25
  246. package/es/utils/filterSpecialCharacters.js +6 -6
  247. package/es/utils/genCopyable/index.js +6 -6
  248. package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  249. package/es/utils/hooks/useDebounceFn/index.js +4 -4
  250. package/es/utils/hooks/useDebounceValue/index.js +6 -6
  251. package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
  252. package/es/utils/hooks/useLatest/index.js +2 -2
  253. package/es/utils/hooks/useRefCallback/index.js +5 -5
  254. package/es/utils/isBrowser/index.js +7 -7
  255. package/es/utils/isUrl/index.js +4 -4
  256. package/es/utils/merge/index.js +4 -4
  257. package/es/utils/nanoid/index.js +4 -4
  258. package/es/utils/omitBoolean/index.js +4 -4
  259. package/es/utils/parseValueToMoment/index.js +4 -4
  260. package/es/utils/proFieldParsingText/index.js +10 -10
  261. package/es/utils/transformKeySubmitValue/index.js +57 -57
  262. package/es/utils/useEditableArray/index.js +46 -46
  263. package/es/utils/useEditableMap/index.js +22 -22
  264. package/es/utils/useMediaQuery/index.js +5 -5
  265. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  266. package/es/vtx-datagrid/style/index.less +242 -242
  267. package/es/vtx-date-picker/style/index.less +39 -39
  268. package/es/vtx-export/index.js +8 -8
  269. package/es/vtx-icon/index.js1 +90 -90
  270. package/es/vtx-modal/index.js +2 -2
  271. package/es/vtx-page-layout/Basic.js +2 -2
  272. package/es/vtx-page-layout/TabLayout.js +6 -6
  273. package/es/vtx-page-layout/TableLayout.js +10 -10
  274. package/es/vtx-page-layout/TreeLayout.js +6 -6
  275. package/es/vtx-page-layout/container.js +2 -2
  276. package/es/vtx-provider/index.js +30 -30
  277. package/es/vtx-provider/intl.js +9 -9
  278. package/es/vtx-provider/useStyle/index.js +17 -17
  279. package/es/vtx-tree-select/index.js +13 -8
  280. package/es/vtx-wang-editor/style/index.less +12 -12
  281. package/lib/utils/components/LabelIconTip/index.js +7 -7
  282. package/lib/utils/conversionMomentValue/index.js +25 -25
  283. package/lib/utils/filterSpecialCharacters.js +6 -6
  284. package/lib/utils/genCopyable/index.js +6 -6
  285. package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  286. package/lib/utils/hooks/useDebounceFn/index.js +4 -4
  287. package/lib/utils/hooks/useDebounceValue/index.js +6 -6
  288. package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
  289. package/lib/utils/hooks/useLatest/index.js +2 -2
  290. package/lib/utils/hooks/useRefCallback/index.js +5 -5
  291. package/lib/utils/isBrowser/index.js +7 -7
  292. package/lib/utils/isUrl/index.js +4 -4
  293. package/lib/utils/merge/index.js +4 -4
  294. package/lib/utils/nanoid/index.js +4 -4
  295. package/lib/utils/omitBoolean/index.js +4 -4
  296. package/lib/utils/parseValueToMoment/index.js +4 -4
  297. package/lib/utils/proFieldParsingText/index.js +10 -10
  298. package/lib/utils/transformKeySubmitValue/index.js +57 -57
  299. package/lib/utils/useEditableArray/index.js +46 -46
  300. package/lib/utils/useEditableMap/index.js +22 -22
  301. package/lib/utils/useMediaQuery/index.js +5 -5
  302. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  303. package/lib/vtx-datagrid/style/index.less +242 -242
  304. package/lib/vtx-date-picker/style/index.less +39 -39
  305. package/lib/vtx-export/index.js +8 -8
  306. package/lib/vtx-icon/index.js1 +90 -90
  307. package/lib/vtx-modal/index.js +2 -2
  308. package/lib/vtx-page-layout/Basic.js +2 -2
  309. package/lib/vtx-page-layout/TabLayout.js +6 -6
  310. package/lib/vtx-page-layout/TableLayout.js +10 -10
  311. package/lib/vtx-page-layout/TreeLayout.js +6 -6
  312. package/lib/vtx-page-layout/container.js +2 -2
  313. package/lib/vtx-provider/index.js +30 -30
  314. package/lib/vtx-provider/intl.js +9 -9
  315. package/lib/vtx-provider/useStyle/index.js +17 -17
  316. package/lib/vtx-tree-select/index.js +13 -10
  317. package/lib/vtx-wang-editor/style/index.less +12 -12
  318. package/package.json +239 -239
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <link rel="shortcut icon" href>
8
+ <title>@vtx/components</title>
9
+ <style>.markdown table{table-layout: fixed;}</style>
10
+ <link rel="stylesheet" href="/react-components/umi.4db41586.css">
11
+ <script src="/react-components/preload_helper.91c86d97.js"></script>
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ <script src="/react-components/umi.e0925664.js"></script>
16
+ </body>
17
+ </html>
@@ -10,13 +10,13 @@ import classnames from 'classnames';
10
10
  import React, { useContext } from 'react';
11
11
  import { useStyle } from "./style";
12
12
 
13
- /**
14
- * 在 form 的 label 后面增加一个 tips 来展示一些说明文案
15
- * @param {Object} props
16
- * @param {React.ReactNode} props.label
17
- * @param {React.ReactNode} [props.subTitle]
18
- * @param {string|Object} [props.tooltip]
19
- * @param {boolean|Object} [props.ellipsis]
13
+ /**
14
+ * 在 form 的 label 后面增加一个 tips 来展示一些说明文案
15
+ * @param {Object} props
16
+ * @param {React.ReactNode} props.label
17
+ * @param {React.ReactNode} [props.subTitle]
18
+ * @param {string|Object} [props.tooltip]
19
+ * @param {boolean|Object} [props.ellipsis]
20
20
  */
21
21
  import { Fragment as _Fragment } from "react/jsx-runtime";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -17,19 +17,19 @@ var dateFormatterMap = {
17
17
  dateTimeRange: 'YYYY-MM-DD HH:mm:ss'
18
18
  };
19
19
 
20
- /**
21
- * 判断是不是一个 object
22
- * @param {any} o
23
- * @returns boolean
20
+ /**
21
+ * 判断是不是一个 object
22
+ * @param {any} o
23
+ * @returns boolean
24
24
  */
25
25
  function isObject(o) {
26
26
  return Object.prototype.toString.call(o) === '[object Object]';
27
27
  }
28
28
 
29
- /**
30
- * 判断是否是一个的简单的 object
31
- * @param {{constructor:any}} o
32
- * @returns boolean
29
+ /**
30
+ * 判断是否是一个的简单的 object
31
+ * @param {{constructor:any}} o
32
+ * @returns boolean
33
33
  */
34
34
  export function isPlainObject(o) {
35
35
  if (isObject(o) === false) return false;
@@ -51,20 +51,20 @@ export function isPlainObject(o) {
51
51
  return true;
52
52
  }
53
53
 
54
- /**
55
- * 一个比较hack的moment判断工具
56
- * @param {any} value
57
- * @returns boolean
54
+ /**
55
+ * 一个比较hack的moment判断工具
56
+ * @param {any} value
57
+ * @returns boolean
58
58
  */
59
59
  var isMoment = function isMoment(value) {
60
60
  return !!(value !== null && value !== void 0 && value._isAMomentObject);
61
61
  };
62
62
 
63
- /**
64
- * 根据不同的格式转化 dayjs
65
- * @param {dayjs.Dayjs} value
66
- * @param {string|((value:dayjs.Dayjs} dateFormatter
67
- * @param {string} valueType
63
+ /**
64
+ * 根据不同的格式转化 dayjs
65
+ * @param {dayjs.Dayjs} value
66
+ * @param {string|((value:dayjs.Dayjs} dateFormatter
67
+ * @param {string} valueType
68
68
  */
69
69
  export var convertMoment = function convertMoment(value, dateFormatter, valueType) {
70
70
  if (!dateFormatter) {
@@ -87,14 +87,14 @@ export var convertMoment = function convertMoment(value, dateFormatter, valueTyp
87
87
  return value;
88
88
  };
89
89
 
90
- /**
91
- * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
92
- * @param {T} value
93
- * @param {DateFormatter} dateFormatter
94
- * @param {Record<string} valueTypeMap
95
- * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
96
- * @param {boolean} omitNil?
97
- * @param {NamePath} parentKey?
90
+ /**
91
+ * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
92
+ * @param {T} value
93
+ * @param {DateFormatter} dateFormatter
94
+ * @param {Record<string} valueTypeMap
95
+ * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
96
+ * @param {boolean} omitNil?
97
+ * @param {NamePath} parentKey?
98
98
  */
99
99
  export var conversionMomentValue = function conversionMomentValue(value, dateFormatter, valueTypeMap, omitNil, parentKey) {
100
100
  var tmpValue = {};
@@ -55,12 +55,12 @@ export var SpecialCharacters = [
55
55
  '%', '%',
56
56
  // 其它
57
57
  '@', '#', '`', '~', '*', '^', '……', '|', '&'];
58
- /**
59
- * 过滤特殊字符
60
- * @param {String} value 值
61
- * @param {Object} option
62
- * @param {Array} [option.include] 新增
63
- * @param {Array} [option.exclude] 排除
58
+ /**
59
+ * 过滤特殊字符
60
+ * @param {String} value 值
61
+ * @param {Object} option
62
+ * @param {Array} [option.include] 新增
63
+ * @param {Array} [option.exclude] 排除
64
64
  */
65
65
  export default function filterSpecialCharacters(value) {
66
66
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -19,12 +19,12 @@ var getEllipsis = function getEllipsis(item) {
19
19
  return item.ellipsis;
20
20
  };
21
21
 
22
- /**
23
- * 生成 Copyable 或 Ellipsis 的 dom
24
- *
25
- * @param dom
26
- * @param item
27
- * @param text
22
+ /**
23
+ * 生成 Copyable 或 Ellipsis 的 dom
24
+ *
25
+ * @param dom
26
+ * @param item
27
+ * @param text
28
28
  */
29
29
  export var genCopyable = function genCopyable(dom, item, text) {
30
30
  if (item.copyable || item.ellipsis) {
@@ -1,12 +1,12 @@
1
1
  import { runFunction } from "../runFunction";
2
2
 
3
- /**
4
- * 因为 fieldProps 支持了 function 所以新增了这个方法
5
- *
6
- * @param {any} fieldProps
7
- * @param {any} [form]
8
- * @param {any} [extraProps]
9
- * @returns {Record<string, any> & { onChange: any, colSize: number }}
3
+ /**
4
+ * 因为 fieldProps 支持了 function 所以新增了这个方法
5
+ *
6
+ * @param {any} fieldProps
7
+ * @param {any} [form]
8
+ * @param {any} [extraProps]
9
+ * @returns {Record<string, any> & { onChange: any, colSize: number }}
10
10
  */
11
11
  export var getFieldPropsOrFormItemProps = function getFieldPropsOrFormItemProps(fieldProps, form, extraProps) {
12
12
  if (form === undefined) {
@@ -4,10 +4,10 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
4
4
  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); }); }; }
5
5
  import { useCallback, useEffect, useRef } from 'react';
6
6
  import { useRefFunction } from "../useRefFunction";
7
- /**
8
- * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
9
- * @param {(...args:T) => Promise<any>} fn
10
- * @param {number} wait?
7
+ /**
8
+ * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
9
+ * @param {(...args:T) => Promise<any>} fn
10
+ * @param {number} wait?
11
11
  */
12
12
  export function useDebounceFn(fn, wait) {
13
13
  var callback = useRefFunction(fn);
@@ -11,12 +11,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import { useEffect, useState } from 'react';
12
12
  import { useLatest } from "../useLatest";
13
13
 
14
- /**
15
- * 一个去抖的setState,减少更新的频率
16
- * @param {any} value
17
- * @param {number} [delay=100]
18
- * @param {any[]} deps
19
- * @returns {any}
14
+ /**
15
+ * 一个去抖的setState,减少更新的频率
16
+ * @param {any} value
17
+ * @param {number} [delay=100]
18
+ * @param {any[]} deps
19
+ * @returns {any}
20
20
  */
21
21
  export function useDebounceValue(value) {
22
22
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { useDeepCompareMemoize } from "../useDeepCompareEffect";
3
3
 
4
- /**
5
- * `useDeepCompareMemo` will only recompute the memoized value when one of the
6
- * `deps` has changed.
7
- *
8
- * Usage note: only use this if `deps` are objects or arrays that contain
9
- * objects. Otherwise you should just use React.useMemo.
10
- *
4
+ /**
5
+ * `useDeepCompareMemo` will only recompute the memoized value when one of the
6
+ * `deps` has changed.
7
+ *
8
+ * Usage note: only use this if `deps` are objects or arrays that contain
9
+ * objects. Otherwise you should just use React.useMemo.
10
+ *
11
11
  */
12
12
  function useDeepCompareMemo(factory, dependencies) {
13
13
  return React.useMemo(factory, useDeepCompareMemoize(dependencies));
@@ -1,7 +1,7 @@
1
1
  import { useRef } from 'react';
2
2
 
3
- /**
4
- * @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
3
+ /**
4
+ * @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
5
5
  */
6
6
  export var useLatest = function useLatest(value) {
7
7
  var ref = useRef(value);
@@ -1,10 +1,10 @@
1
1
  import { useMemo } from 'react';
2
2
 
3
- /**
4
- * useRefCallback
5
- * @param {Function} callback ref.current 变化时触发
6
- * @param {any} [initialValue] 初始值
7
- * @returns {Object} 代理后的 ref 对象
3
+ /**
4
+ * useRefCallback
5
+ * @param {Function} callback ref.current 变化时触发
6
+ * @param {any} [initialValue] 初始值
7
+ * @returns {Object} 代理后的 ref 对象
8
8
  */
9
9
  export function useRefCallback(callback, initialValue) {
10
10
  var ref = useMemo(function () {
@@ -1,12 +1,12 @@
1
1
  var isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
2
2
 
3
- /**
4
- * 用于判断当前是否在浏览器环境中。
5
- * 首先会判断当前是否处于测试环境中(通过 process.env.NODE_ENV === 'TEST' 判断),
6
- * 如果是,则返回 true。否则,会进一步判断是否存在 window 对象、document 对象以及 matchMedia 方法
7
- * 同时通过 !isNode 判断当前不是在服务器(Node.js)环境下执行,
8
- * 如果都符合,则返回 true 表示当前处于浏览器环境中。
9
- * @returns boolean
3
+ /**
4
+ * 用于判断当前是否在浏览器环境中。
5
+ * 首先会判断当前是否处于测试环境中(通过 process.env.NODE_ENV === 'TEST' 判断),
6
+ * 如果是,则返回 true。否则,会进一步判断是否存在 window 对象、document 对象以及 matchMedia 方法
7
+ * 同时通过 !isNode 判断当前不是在服务器(Node.js)环境下执行,
8
+ * 如果都符合,则返回 true 表示当前处于浏览器环境中。
9
+ * @returns boolean
10
10
  */
11
11
  export var isBrowser = function isBrowser() {
12
12
  if (typeof process !== 'undefined' && process.env.NODE_ENV === 'TEST') {
@@ -1,7 +1,7 @@
1
- /**
2
- * 判断是不是一个 url
3
- * @param {string|undefined} path
4
- * @returns boolean
1
+ /**
2
+ * 判断是不是一个 url
3
+ * @param {string|undefined} path
4
+ * @returns boolean
5
5
  */
6
6
  export var isUrl = function isUrl(path) {
7
7
  if (!path) return false;
@@ -6,10 +6,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
6
6
  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); }
7
7
  /* eslint-disable prefer-rest-params */
8
8
 
9
- /**
10
- * 用于合并 n 个对象
11
- * @param {any[]} ...rest
12
- * @returns T
9
+ /**
10
+ * 用于合并 n 个对象
11
+ * @param {any[]} ...rest
12
+ * @returns T
13
13
  */
14
14
  var merge = function merge() {
15
15
  var obj = {};