@vtx/components 4.0.0-beta.82 → 4.0.0-beta.84
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.
- package/README.md +19 -19
- package/dist/27.7e3a5587.async.js +11 -0
- package/dist/404.html +17 -0
- package/dist/4217.9f9c8f33.async.js +1 -0
- package/dist/4571.1f5588f5.async.js +5 -0
- package/dist/8238.a223befe.async.js +688 -0
- package/dist/8552.83c22540.async.js +1265 -0
- package/dist/9260.21c26210.async.js +137 -0
- package/dist/VtxColorPicker__demos.c3e03ab4.async.js +1 -0
- package/dist/VtxCombogrid__demos.81dd3d19.async.js +1 -0
- package/dist/VtxDatagrid__demos.bb6d2937.async.js +1 -0
- package/dist/VtxDescriptions__demos.c1d10744.async.js +1 -0
- package/dist/VtxEllipsisText__demos.f56d2a6b.async.js +1 -0
- package/dist/VtxExportAsync__demos.8bd5e7fc.async.js +1 -0
- package/dist/VtxExport__demos.f0c12996.async.js +1 -0
- package/dist/VtxFormLayout__demos.cbc5ebda.async.js +1 -0
- package/dist/VtxImage__demos.1c568ce3.async.js +1 -0
- package/dist/VtxImport2__demos.dd7cfbcf.async.js +1 -0
- package/dist/VtxImport__demos.1403a7a8.async.js +1 -0
- package/dist/VtxInput__demos.d1aeb2ca.async.js +1 -0
- package/dist/VtxModal__demos.c18d608e.async.js +1 -0
- package/dist/VtxPageLayout__demos.d223bf3b.async.js +1 -0
- package/dist/VtxRpsFrame__demos.3f951d24.async.js +1 -0
- package/dist/VtxScrollableRow__demos.a4859102.async.js +1 -0
- package/dist/VtxSearch__demos.7faa294b.async.js +1 -0
- package/dist/VtxSelect__demos.d6eb6d2b.async.js +1 -0
- package/dist/VtxSignature__demos.6abe7992.async.js +1 -0
- package/dist/VtxSplitPane__demos.2d21bf24.async.js +1 -0
- package/dist/VtxStatisticsColumn__demos.c466441f.async.js +1 -0
- package/dist/VtxTimePicker__demos.51ecd5f0.async.js +1 -0
- package/dist/VtxTransferSelect__demos.1e97ae79.async.js +1 -0
- package/dist/VtxTransfer__demos.18ba60b0.async.js +1 -0
- package/dist/VtxTreeSelect__demos.8ae23eb7.async.js +1 -0
- package/dist/VtxTree__demos.1ae9263d.async.js +1 -0
- package/dist/VtxUpload__demos.f8ac6088.async.js +1 -0
- package/dist/VtxWangEditor__demos.4c7f9743.async.js +1 -0
- package/dist/changelog/index.html +17 -0
- package/dist/components/index.html +17 -0
- package/dist/components/vtx-color-picker/index.html +17 -0
- package/dist/components/vtx-combogrid/index.html +17 -0
- package/dist/components/vtx-datagrid/index.html +17 -0
- package/dist/components/vtx-date-picker/index.html +17 -0
- package/dist/components/vtx-descriptions/index.html +17 -0
- package/dist/components/vtx-ellipsis-text/index.html +17 -0
- package/dist/components/vtx-export/index.html +17 -0
- package/dist/components/vtx-export-async/index.html +17 -0
- package/dist/components/vtx-form-layout/index.html +17 -0
- package/dist/components/vtx-image/index.html +17 -0
- package/dist/components/vtx-import/index.html +17 -0
- package/dist/components/vtx-import2/index.html +17 -0
- package/dist/components/vtx-input/index.html +17 -0
- package/dist/components/vtx-modal/index.html +17 -0
- package/dist/components/vtx-page-layout/index.html +17 -0
- package/dist/components/vtx-rps-frame/index.html +17 -0
- package/dist/components/vtx-scrollable-row/index.html +17 -0
- package/dist/components/vtx-search/index.html +17 -0
- package/dist/components/vtx-select/index.html +17 -0
- package/dist/components/vtx-signature/index.html +17 -0
- package/dist/components/vtx-split-pane/index.html +17 -0
- package/dist/components/vtx-statistics-column/index.html +17 -0
- package/dist/components/vtx-time-picker/index.html +17 -0
- package/dist/components/vtx-transfer/index.html +17 -0
- package/dist/components/vtx-transfer-select/index.html +17 -0
- package/dist/components/vtx-tree/index.html +17 -0
- package/dist/components/vtx-tree-select/index.html +17 -0
- package/dist/components/vtx-upload/index.html +17 -0
- package/dist/components/vtx-wang-editor/index.html +17 -0
- package/dist/demos.d31d47d3.async.js +1 -0
- package/dist/docs/api-changes/index.html +17 -0
- package/dist/docs/index.html +17 -0
- package/dist/docs/migration-guide/index.html +17 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.9bd1f529.async.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/icon.png +0 -0
- package/dist/index.html +17 -0
- package/dist/meta__site.77f4ce5c.async.js +24576 -0
- package/dist/meta__site.cb4ba864.chunk.css +9 -0
- package/dist/meta__vtx-search.1cffc39e.async.js +5 -0
- package/dist/nm__dumi-theme-vortex-style__dist__layouts__DemoLayout__index.d38bb511.async.js +1 -0
- package/dist/nm__dumi-theme-vortex-style__dist__layouts__DocLayout__index.eec80432.chunk.css +1 -0
- package/dist/nm__dumi__dist__client__pages__404.02c0a12e.async.js +1 -0
- package/dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +1 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +1 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.ce4c974c.async.js +1 -0
- package/dist/preload_helper.91c86d97.js +1 -0
- package/dist/site__changelog.md.2004f9af.async.js +1 -0
- package/dist/site__changelog.md.33be0665.chunk.css +1 -0
- package/dist/site__components__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__index.md.4b208bce.async.js +1 -0
- package/dist/site__components__vtx-color-picker__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-color-picker__index.md.8cde38ad.async.js +1 -0
- package/dist/site__components__vtx-combogrid__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-combogrid__index.md.3a276575.async.js +19 -0
- package/dist/site__components__vtx-datagrid__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-datagrid__index.md.6b8af1e9.async.js +58 -0
- package/dist/site__components__vtx-date-picker__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-date-picker__index.md.79fe2a74.async.js +1 -0
- package/dist/site__components__vtx-descriptions__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-descriptions__index.md.581f585c.async.js +1 -0
- package/dist/site__components__vtx-ellipsis-text__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-ellipsis-text__index.md.d6064e54.async.js +1 -0
- package/dist/site__components__vtx-export-async__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-export-async__index.md.c235ace9.async.js +50 -0
- package/dist/site__components__vtx-export__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-export__index.md.54504e6f.async.js +6 -0
- package/dist/site__components__vtx-form-layout__index.md.1f1785cf.async.js +1 -0
- package/dist/site__components__vtx-form-layout__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-image__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-image__index.md.68cd709b.async.js +7 -0
- package/dist/site__components__vtx-import2__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-import2__index.md.533d4e74.async.js +22 -0
- package/dist/site__components__vtx-import__index.md.2cb1513e.async.js +17 -0
- package/dist/site__components__vtx-import__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-input__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-input__index.md.5403e1e4.async.js +1 -0
- package/dist/site__components__vtx-modal__index.md.0f8af11e.async.js +9 -0
- package/dist/site__components__vtx-modal__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-page-layout__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-page-layout__index.md.e4956ee7.async.js +1 -0
- package/dist/site__components__vtx-rps-frame__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-rps-frame__index.md.c80279df.async.js +1 -0
- package/dist/site__components__vtx-scrollable-row__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-scrollable-row__index.md.df93edc6.async.js +1 -0
- package/dist/site__components__vtx-search__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-search__index.md.d011bdaa.async.js +17 -0
- package/dist/site__components__vtx-select__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-select__index.md.de66c747.async.js +6 -0
- package/dist/site__components__vtx-signature__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-signature__index.md.b8b1093d.async.js +1 -0
- package/dist/site__components__vtx-split-pane__index.md.2163de9a.async.js +1 -0
- package/dist/site__components__vtx-split-pane__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-statistics-column__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-statistics-column__index.md.543d917f.async.js +1 -0
- package/dist/site__components__vtx-time-picker__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-time-picker__index.md.a1ef3b11.async.js +1 -0
- package/dist/site__components__vtx-transfer-select__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-transfer-select__index.md.df61e6d2.async.js +1 -0
- package/dist/site__components__vtx-transfer__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-transfer__index.md.e17f6962.async.js +1 -0
- package/dist/site__components__vtx-tree-select__index.md.2ee8c02c.async.js +1 -0
- package/dist/site__components__vtx-tree-select__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-tree__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-tree__index.md.9bd6ff74.async.js +1 -0
- package/dist/site__components__vtx-upload__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-upload__index.md.5a7d3eda.async.js +6 -0
- package/dist/site__components__vtx-wang-editor__index.md.33be0665.chunk.css +1 -0
- package/dist/site__components__vtx-wang-editor__index.md.9eb84586.async.js +7 -0
- package/dist/site__docs__api-changes.md.33be0665.chunk.css +1 -0
- package/dist/site__docs__api-changes.md.42dee6c8.async.js +6 -0
- package/dist/site__docs__index.md.33be0665.chunk.css +1 -0
- package/dist/site__docs__index.md.8e7c64da.async.js +53 -0
- package/dist/site__docs__migration-guide.md.33be0665.chunk.css +1 -0
- package/dist/site__docs__migration-guide.md.fe82d57e.async.js +194 -0
- package/dist/site__index.md.33be0665.chunk.css +1 -0
- package/dist/site__index.md.54cae2e4.async.js +1 -0
- package/dist/sitemap.xml +1 -0
- package/dist/umi.4db41586.css +1 -0
- package/dist/umi.e0925664.js +879 -0
- package/dist/vtx-search__index.md.33be0665.chunk.css +1 -0
- package/dist/vtx-search__index.md.a29f26ea.async.js +5 -0
- package/dist/~demos/site-components-vtx-date-picker-demo-demo1/index.html +17 -0
- package/dist/~demos/site-components-vtx-date-picker-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxcolorpicker-demo-base/index.html +17 -0
- package/dist/~demos/vtxcolorpicker-demo-base-form/index.html +17 -0
- package/dist/~demos/vtxcombogrid-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxcombogrid-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxcombogrid-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxcombogrid-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxcombogrid-demo-demo5/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo10/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo5/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo6/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo7/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo8/index.html +17 -0
- package/dist/~demos/vtxdatagrid-demo-demo9/index.html +17 -0
- package/dist/~demos/vtxdescriptions-demo-base/index.html +17 -0
- package/dist/~demos/vtxdescriptions-demo-border/index.html +17 -0
- package/dist/~demos/vtxellipsistext-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxexport-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxexportasync-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo10/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo5/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo6/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo7/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo8/index.html +17 -0
- package/dist/~demos/vtxformlayout-demo-demo9/index.html +17 -0
- package/dist/~demos/vtximage-demo-demo1/index.html +17 -0
- package/dist/~demos/vtximage-demo-demo2/index.html +17 -0
- package/dist/~demos/vtximage-demo-demo3/index.html +17 -0
- package/dist/~demos/vtximage-demo-demo4/index.html +17 -0
- package/dist/~demos/vtximport-demo-base/index.html +17 -0
- package/dist/~demos/vtximport2-demo-base/index.html +17 -0
- package/dist/~demos/vtxinput-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxinput-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxinput-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxmodal-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxmodal-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxmodal-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxpagelayout-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxpagelayout-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxpagelayout-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxpagelayout-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxpagelayout-demo-demo5/index.html +17 -0
- package/dist/~demos/vtxrpsframe-demo-base/index.html +17 -0
- package/dist/~demos/vtxscrollablerow-demo-demo/index.html +17 -0
- package/dist/~demos/vtxsearch-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxsearch-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxsearch-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxsearch-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxselect-demo-base/index.html +17 -0
- package/dist/~demos/vtxselect-demo-base-multiple/index.html +17 -0
- package/dist/~demos/vtxsignature-demo-demo/index.html +17 -0
- package/dist/~demos/vtxsignature-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxsplitpane-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxsplitpane-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxsplitpane-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxsplitpane-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxstatisticscolumn-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxstatisticscolumn-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxstatisticscolumn-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxtimepicker-demo-base/index.html +17 -0
- package/dist/~demos/vtxtransfer-demo-base/index.html +17 -0
- package/dist/~demos/vtxtransferselect-demo-base/index.html +17 -0
- package/dist/~demos/vtxtree-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxtree-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxtree-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxtreeselect-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxtreeselect-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxtreeselect-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxtreeselect-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxupload-demo-demo1/index.html +17 -0
- package/dist/~demos/vtxupload-demo-demo2/index.html +17 -0
- package/dist/~demos/vtxupload-demo-demo3/index.html +17 -0
- package/dist/~demos/vtxupload-demo-demo4/index.html +17 -0
- package/dist/~demos/vtxwangeditor-demo-demo1/index.html +17 -0
- package/es/utils/components/LabelIconTip/index.js +7 -7
- package/es/utils/conversionMomentValue/index.js +25 -25
- package/es/utils/filterSpecialCharacters.js +6 -6
- package/es/utils/genCopyable/index.js +6 -6
- package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
- package/es/utils/hooks/useDebounceFn/index.js +4 -4
- package/es/utils/hooks/useDebounceValue/index.js +6 -6
- package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
- package/es/utils/hooks/useLatest/index.js +2 -2
- package/es/utils/hooks/useRefCallback/index.js +5 -5
- package/es/utils/isBrowser/index.js +7 -7
- package/es/utils/isUrl/index.js +4 -4
- package/es/utils/merge/index.js +4 -4
- package/es/utils/nanoid/index.js +4 -4
- package/es/utils/omitBoolean/index.js +4 -4
- package/es/utils/parseValueToMoment/index.js +4 -4
- package/es/utils/proFieldParsingText/index.js +10 -10
- package/es/utils/transformKeySubmitValue/index.js +57 -57
- package/es/utils/useEditableArray/index.js +46 -46
- package/es/utils/useEditableMap/index.js +22 -22
- package/es/utils/useMediaQuery/index.js +5 -5
- package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/es/vtx-datagrid/ToolBar/index.js +2 -1
- package/es/vtx-datagrid/ToolBar/style.js +6 -3
- package/es/vtx-datagrid/index.js +5 -1
- package/es/vtx-datagrid/style/index.js +9 -1
- package/es/vtx-datagrid/style/index.less +242 -242
- package/es/vtx-date-picker/style/index.less +39 -39
- package/es/vtx-export/index.js +8 -8
- package/es/vtx-icon/index.js1 +90 -90
- package/es/vtx-modal/index.js +2 -2
- package/es/vtx-modal/style/index.js +4 -2
- package/es/vtx-page-layout/Basic.js +2 -2
- package/es/vtx-page-layout/TabLayout.js +6 -6
- package/es/vtx-page-layout/TableLayout.js +10 -10
- package/es/vtx-page-layout/TreeLayout.js +6 -6
- package/es/vtx-page-layout/container.js +2 -2
- package/es/vtx-provider/index.js +30 -30
- package/es/vtx-provider/intl.js +9 -9
- package/es/vtx-provider/useStyle/index.js +17 -17
- package/es/vtx-search/style/index.js +6 -3
- package/es/vtx-wang-editor/style/index.less +12 -12
- package/lib/utils/components/LabelIconTip/index.js +7 -7
- package/lib/utils/conversionMomentValue/index.js +25 -25
- package/lib/utils/filterSpecialCharacters.js +6 -6
- package/lib/utils/genCopyable/index.js +6 -6
- package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
- package/lib/utils/hooks/useDebounceFn/index.js +4 -4
- package/lib/utils/hooks/useDebounceValue/index.js +6 -6
- package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
- package/lib/utils/hooks/useLatest/index.js +2 -2
- package/lib/utils/hooks/useRefCallback/index.js +5 -5
- package/lib/utils/isBrowser/index.js +7 -7
- package/lib/utils/isUrl/index.js +4 -4
- package/lib/utils/merge/index.js +4 -4
- package/lib/utils/nanoid/index.js +4 -4
- package/lib/utils/omitBoolean/index.js +4 -4
- package/lib/utils/parseValueToMoment/index.js +4 -4
- package/lib/utils/proFieldParsingText/index.js +10 -10
- package/lib/utils/transformKeySubmitValue/index.js +57 -57
- package/lib/utils/useEditableArray/index.js +46 -46
- package/lib/utils/useEditableMap/index.js +22 -22
- package/lib/utils/useMediaQuery/index.js +5 -5
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/lib/vtx-datagrid/ToolBar/index.js +2 -1
- package/lib/vtx-datagrid/ToolBar/style.js +6 -3
- package/lib/vtx-datagrid/index.js +5 -1
- package/lib/vtx-datagrid/style/index.js +9 -1
- package/lib/vtx-datagrid/style/index.less +242 -242
- package/lib/vtx-date-picker/style/index.less +39 -39
- package/lib/vtx-export/index.js +8 -8
- package/lib/vtx-icon/index.js1 +90 -90
- package/lib/vtx-modal/index.js +2 -2
- package/lib/vtx-modal/style/index.js +4 -2
- package/lib/vtx-page-layout/Basic.js +2 -2
- package/lib/vtx-page-layout/TabLayout.js +6 -6
- package/lib/vtx-page-layout/TableLayout.js +10 -10
- package/lib/vtx-page-layout/TreeLayout.js +6 -6
- package/lib/vtx-page-layout/container.js +2 -2
- package/lib/vtx-provider/index.js +30 -30
- package/lib/vtx-provider/intl.js +9 -9
- package/lib/vtx-provider/useStyle/index.js +17 -17
- package/lib/vtx-search/style/index.js +6 -3
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/package.json +240 -240
|
@@ -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') {
|
package/es/utils/isUrl/index.js
CHANGED
package/es/utils/merge/index.js
CHANGED
|
@@ -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 = {};
|