@vtx/components 4.0.0-beta.86 → 4.0.0-beta.88
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/Store/Provide.js +7 -7
- package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/es/vtx-datagrid/index.js +5 -4
- 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-form-layout/style/index.js +6 -4
- package/es/vtx-icon/index.js1 +90 -90
- package/es/vtx-modal/index.js +2 -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-tree-select/index.js +13 -8
- 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/Store/Provide.js +10 -10
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/lib/vtx-datagrid/index.js +5 -4
- 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-form-layout/style/index.js +6 -4
- package/lib/vtx-icon/index.js1 +90 -90
- package/lib/vtx-modal/index.js +2 -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-tree-select/index.js +13 -10
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/package.json +239 -239
|
@@ -52,9 +52,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
52
52
|
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); } /* eslint-disable react-hooks/exhaustive-deps */
|
|
53
53
|
var noteOnce = _util.warning.noteOnce;
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* 显示警告信息
|
|
57
|
-
* @param messageStr
|
|
55
|
+
/**
|
|
56
|
+
* 显示警告信息
|
|
57
|
+
* @param messageStr
|
|
58
58
|
*/
|
|
59
59
|
var warning = function warning(messageStr) {
|
|
60
60
|
return _antd.message.warning(messageStr);
|
|
@@ -64,11 +64,11 @@ var recordKeyToString = exports.recordKeyToString = function recordKeyToString(r
|
|
|
64
64
|
return rowKey;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
69
|
-
*
|
|
70
|
-
* @param keyProps
|
|
71
|
-
* @param action
|
|
67
|
+
/**
|
|
68
|
+
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
69
|
+
*
|
|
70
|
+
* @param keyProps
|
|
71
|
+
* @param action
|
|
72
72
|
*/
|
|
73
73
|
function editableRowByKey(keyProps, action) {
|
|
74
74
|
var _recordKeyToString;
|
|
@@ -80,11 +80,11 @@ function editableRowByKey(keyProps, action) {
|
|
|
80
80
|
var key = (_recordKeyToString = recordKeyToString(keyProps.key)) === null || _recordKeyToString === void 0 ? void 0 : _recordKeyToString.toString();
|
|
81
81
|
var kvMap = new Map();
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* 打平这个数组
|
|
85
|
-
*
|
|
86
|
-
* @param records
|
|
87
|
-
* @param parentKey
|
|
83
|
+
/**
|
|
84
|
+
* 打平这个数组
|
|
85
|
+
*
|
|
86
|
+
* @param records
|
|
87
|
+
* @param parentKey
|
|
88
88
|
*/
|
|
89
89
|
function dig(records, map_row_parentKey, map_row_index) {
|
|
90
90
|
records.forEach(function (record, index) {
|
|
@@ -169,10 +169,10 @@ function editableRowByKey(keyProps, action) {
|
|
|
169
169
|
return fill(kvMap);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
/**
|
|
173
|
-
* 保存按钮的dom
|
|
174
|
-
*
|
|
175
|
-
* @param ActionRenderConfig
|
|
172
|
+
/**
|
|
173
|
+
* 保存按钮的dom
|
|
174
|
+
*
|
|
175
|
+
* @param ActionRenderConfig
|
|
176
176
|
*/
|
|
177
177
|
function SaveEditableAction(_ref, ref) {
|
|
178
178
|
var recordKey = _ref.recordKey,
|
|
@@ -275,10 +275,10 @@ function SaveEditableAction(_ref, ref) {
|
|
|
275
275
|
}, "save");
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
/**
|
|
279
|
-
* 删除按钮 dom
|
|
280
|
-
*
|
|
281
|
-
* @param ActionRenderConfig
|
|
278
|
+
/**
|
|
279
|
+
* 删除按钮 dom
|
|
280
|
+
*
|
|
281
|
+
* @param ActionRenderConfig
|
|
282
282
|
*/
|
|
283
283
|
var DeleteEditableAction = exports.DeleteEditableAction = function DeleteEditableAction(_ref4) {
|
|
284
284
|
var recordKey = _ref4.recordKey,
|
|
@@ -418,17 +418,17 @@ function defaultActionRender(row, config) {
|
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
/**
|
|
422
|
-
* 一个方便的hooks 用于维护编辑的状态
|
|
423
|
-
*
|
|
424
|
-
* @param props
|
|
421
|
+
/**
|
|
422
|
+
* 一个方便的hooks 用于维护编辑的状态
|
|
423
|
+
*
|
|
424
|
+
* @param props
|
|
425
425
|
*/
|
|
426
426
|
function useEditableArray(props) {
|
|
427
427
|
// Internationalization
|
|
428
428
|
var intl = (0, _vtxProvider.useIntl)();
|
|
429
429
|
|
|
430
|
-
/**
|
|
431
|
-
* 点击开始编辑之前的保存数据用的
|
|
430
|
+
/**
|
|
431
|
+
* 点击开始编辑之前的保存数据用的
|
|
432
432
|
*/
|
|
433
433
|
var preEditRowRef = (0, _react.useRef)(null);
|
|
434
434
|
var _useState = (0, _react.useState)(undefined),
|
|
@@ -516,10 +516,10 @@ function useEditableArray(props) {
|
|
|
516
516
|
};
|
|
517
517
|
});
|
|
518
518
|
|
|
519
|
-
/**
|
|
520
|
-
* 进入编辑状态
|
|
521
|
-
*
|
|
522
|
-
* @param recordKey
|
|
519
|
+
/**
|
|
520
|
+
* 进入编辑状态
|
|
521
|
+
*
|
|
522
|
+
* @param recordKey
|
|
523
523
|
*/
|
|
524
524
|
var startEditable = (0, _.useRefFunction)(function (recordKey, record) {
|
|
525
525
|
var _ref7, _props$dataSource;
|
|
@@ -538,10 +538,10 @@ function useEditableArray(props) {
|
|
|
538
538
|
return true;
|
|
539
539
|
});
|
|
540
540
|
|
|
541
|
-
/**
|
|
542
|
-
* 退出编辑状态
|
|
543
|
-
*
|
|
544
|
-
* @param recordKey
|
|
541
|
+
/**
|
|
542
|
+
* 退出编辑状态
|
|
543
|
+
*
|
|
544
|
+
* @param recordKey
|
|
545
545
|
*/
|
|
546
546
|
var cancelEditable = (0, _.useRefFunction)( /*#__PURE__*/function () {
|
|
547
547
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(recordKey, needReTry) {
|
|
@@ -647,11 +647,11 @@ function useEditableArray(props) {
|
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
649
|
}, [saveRefsMap, editableKeysSet]);
|
|
650
|
-
/**
|
|
651
|
-
* 保存编辑行
|
|
652
|
-
*
|
|
653
|
-
* @param recordKey
|
|
654
|
-
* @param needReTry
|
|
650
|
+
/**
|
|
651
|
+
* 保存编辑行
|
|
652
|
+
*
|
|
653
|
+
* @param recordKey
|
|
654
|
+
* @param needReTry
|
|
655
655
|
*/
|
|
656
656
|
var saveEditable = (0, _.useRefFunction)( /*#__PURE__*/function () {
|
|
657
657
|
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(recordKey, needReTry) {
|
|
@@ -698,12 +698,12 @@ function useEditableArray(props) {
|
|
|
698
698
|
};
|
|
699
699
|
}());
|
|
700
700
|
|
|
701
|
-
/**
|
|
702
|
-
* 同时只能支持一行,取消之后数据消息,不会触发 dataSource
|
|
703
|
-
*
|
|
704
|
-
* @param row
|
|
705
|
-
* @param options
|
|
706
|
-
* @name 增加新的行
|
|
701
|
+
/**
|
|
702
|
+
* 同时只能支持一行,取消之后数据消息,不会触发 dataSource
|
|
703
|
+
*
|
|
704
|
+
* @param row
|
|
705
|
+
* @param options
|
|
706
|
+
* @name 增加新的行
|
|
707
707
|
*/
|
|
708
708
|
var addEditRecord = (0, _.useRefFunction)(function (row, options) {
|
|
709
709
|
if (options !== null && options !== void 0 && options.parentKey && !dataSourceKeyIndexMapRef.current.has(recordKeyToString(options === null || options === void 0 ? void 0 : options.parentKey).toString())) {
|
|
@@ -25,19 +25,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
25
25
|
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; }
|
|
26
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
27
27
|
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); } /* eslint-disable react-hooks/exhaustive-deps */
|
|
28
|
-
/**
|
|
29
|
-
* 显示警告信息
|
|
30
|
-
* @param messageStr
|
|
28
|
+
/**
|
|
29
|
+
* 显示警告信息
|
|
30
|
+
* @param messageStr
|
|
31
31
|
*/
|
|
32
32
|
var warning = function warning(messageStr) {
|
|
33
33
|
return _antd.message.warning(messageStr);
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
38
|
-
*
|
|
39
|
-
* @param params
|
|
40
|
-
* @param action
|
|
36
|
+
/**
|
|
37
|
+
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
38
|
+
*
|
|
39
|
+
* @param params
|
|
40
|
+
* @param action
|
|
41
41
|
*/
|
|
42
42
|
function editableRowByKey(_ref) {
|
|
43
43
|
var data = _ref.data,
|
|
@@ -45,14 +45,14 @@ function editableRowByKey(_ref) {
|
|
|
45
45
|
return _objectSpread(_objectSpread({}, data), row);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* 一个方便的hooks 用于维护编辑的状态
|
|
50
|
-
*
|
|
51
|
-
* @param props
|
|
48
|
+
/**
|
|
49
|
+
* 一个方便的hooks 用于维护编辑的状态
|
|
50
|
+
*
|
|
51
|
+
* @param props
|
|
52
52
|
*/
|
|
53
53
|
function useEditableMap(props) {
|
|
54
|
-
/**
|
|
55
|
-
* 点击开始编辑之前的保存数据用的
|
|
54
|
+
/**
|
|
55
|
+
* 点击开始编辑之前的保存数据用的
|
|
56
56
|
*/
|
|
57
57
|
var preEditRowRef = (0, _react.useRef)(null);
|
|
58
58
|
var editableType = props.type || 'single';
|
|
@@ -84,10 +84,10 @@ function useEditableMap(props) {
|
|
|
84
84
|
return false;
|
|
85
85
|
}, [(editableKeys || []).join(',')]);
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* 进入编辑状态
|
|
89
|
-
*
|
|
90
|
-
* @param recordKey
|
|
87
|
+
/**
|
|
88
|
+
* 进入编辑状态
|
|
89
|
+
*
|
|
90
|
+
* @param recordKey
|
|
91
91
|
*/
|
|
92
92
|
var startEditable = function startEditable(recordKey, recordValue) {
|
|
93
93
|
var _ref2;
|
|
@@ -102,10 +102,10 @@ function useEditableMap(props) {
|
|
|
102
102
|
return true;
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
/**
|
|
106
|
-
* 退出编辑状态
|
|
107
|
-
*
|
|
108
|
-
* @param recordKey
|
|
105
|
+
/**
|
|
106
|
+
* 退出编辑状态
|
|
107
|
+
*
|
|
108
|
+
* @param recordKey
|
|
109
109
|
*/
|
|
110
110
|
var cancelEditable = function cancelEditable(recordKey) {
|
|
111
111
|
// 防止多次渲染
|
|
@@ -44,11 +44,11 @@ var MediaQueryEnum = exports.MediaQueryEnum = {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
* loop query screen className
|
|
49
|
-
* Array.find will throw a error
|
|
50
|
-
* `Rendered more hooks than during the previous render.`
|
|
51
|
-
* So should use Array.forEach
|
|
47
|
+
/**
|
|
48
|
+
* loop query screen className
|
|
49
|
+
* Array.find will throw a error
|
|
50
|
+
* `Rendered more hooks than during the previous render.`
|
|
51
|
+
* So should use Array.forEach
|
|
52
52
|
*/
|
|
53
53
|
var getScreenClassName = exports.getScreenClassName = function getScreenClassName() {
|
|
54
54
|
var queryKey = undefined;
|
|
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.indexColumnKey = exports.TableContext = exports.Container = void 0;
|
|
8
8
|
var _util = require("@rc-component/util");
|
|
9
|
-
var _request = _interopRequireDefault(require("@vtx/utils/lib/request"));
|
|
10
9
|
var _getSignature = _interopRequireDefault(require("@vtx/utils/lib/getSignature"));
|
|
10
|
+
var _request = _interopRequireDefault(require("@vtx/utils/lib/request"));
|
|
11
11
|
var _vtxEllipsisText = _interopRequireDefault(require("../../vtx-ellipsis-text"));
|
|
12
|
+
var _utils = require("@vtx/utils");
|
|
13
|
+
var _antd = require("antd");
|
|
12
14
|
var _react = require("react");
|
|
15
|
+
var _utils2 = require("../../utils");
|
|
13
16
|
var _vtxProvider = require("../../vtx-provider");
|
|
14
|
-
var _antd = require("antd");
|
|
15
|
-
var _utils = require("../../utils");
|
|
16
|
-
var _renderColumnButtons = _interopRequireDefault(require("../renderColumnButtons"));
|
|
17
|
-
var _utils2 = require("@vtx/utils");
|
|
18
17
|
var _columnState = require("../columnState");
|
|
18
|
+
var _renderColumnButtons = _interopRequireDefault(require("../renderColumnButtons"));
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -82,7 +82,7 @@ function useMergedState1(defaultValue, option) {
|
|
|
82
82
|
}
|
|
83
83
|
function useContainer() {
|
|
84
84
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
85
|
-
var _ref2 = (0,
|
|
85
|
+
var _ref2 = (0, _utils.getVtxToken)() || {},
|
|
86
86
|
_ref2$userId = _ref2.userId,
|
|
87
87
|
userId = _ref2$userId === void 0 ? '' : _ref2$userId,
|
|
88
88
|
_ref2$tenantId = _ref2.tenantId,
|
|
@@ -159,7 +159,7 @@ function useContainer() {
|
|
|
159
159
|
tableConfig = _useState10[0],
|
|
160
160
|
setTableConfig = _useState10[1];
|
|
161
161
|
var _useMergedState = (0, _util.useMergedState)(function () {
|
|
162
|
-
return props.size || props.defaultSize || '
|
|
162
|
+
return props.size || props.defaultSize || 'small';
|
|
163
163
|
}, {
|
|
164
164
|
value: props.size,
|
|
165
165
|
onChange: props.onSizeChange
|
|
@@ -224,7 +224,7 @@ function useContainer() {
|
|
|
224
224
|
return _objectSpread(_objectSpread({}, newColumn), {}, {
|
|
225
225
|
key: newColumn.key || newColumn.dataIndex,
|
|
226
226
|
disable: disabledColumnKeys === null || disabledColumnKeys === void 0 ? void 0 : disabledColumnKeys.includes(column.dataIndex || column.key),
|
|
227
|
-
render: (0,
|
|
227
|
+
render: (0, _utils2.isFunction)(column.renderButtons) ? function (text, record, index) {
|
|
228
228
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
229
229
|
style: {
|
|
230
230
|
whiteSpace: 'nowrap'
|
|
@@ -263,7 +263,7 @@ function useContainer() {
|
|
|
263
263
|
}, [tableColumn, props.defaultVisibleColumnKeys, tableConfig, uniqueKey]);
|
|
264
264
|
|
|
265
265
|
// 深度比较 + 防抖 + 忽略这render函数引用变化
|
|
266
|
-
(0,
|
|
266
|
+
(0, _utils2.useDeepCompareEffectDebounce)(function () {
|
|
267
267
|
var columnKeyMap = (0, _columnState.buildColumnKeyMap)(tableColumn, {
|
|
268
268
|
visibleColumnKeys: visibleColumnKeys,
|
|
269
269
|
defaultVisibleColumnKeys: props.defaultVisibleColumnKeys,
|
|
@@ -276,7 +276,7 @@ function useContainer() {
|
|
|
276
276
|
isFirst.current = false;
|
|
277
277
|
}
|
|
278
278
|
}, [visibleColumnKeys, props.defaultVisibleColumnKeys, tableColumn], ['render'], 100);
|
|
279
|
-
(0,
|
|
279
|
+
(0, _utils2.useDeepCompareEffectDebounce)(function () {
|
|
280
280
|
var _props$onVisibleColum;
|
|
281
281
|
(_props$onVisibleColum = props.onVisibleColumnsChange) === null || _props$onVisibleColum === void 0 || _props$onVisibleColum.call(props, (0, _columnState.getVisibleColumnKeysFromMap)(columnsMap, sortKeyColumns.current));
|
|
282
282
|
}, [JSON.stringify(columnsMap), sortKeyColumns.current], ['render'], 200);
|
|
@@ -379,10 +379,10 @@ function ColumnSetting(props) {
|
|
|
379
379
|
var checkedColumnKeys = props.checkedColumnKeys,
|
|
380
380
|
onColumnsSave = props.onColumnsSave;
|
|
381
381
|
|
|
382
|
-
/**
|
|
383
|
-
* 设置全部选中,或全部未选中
|
|
384
|
-
*
|
|
385
|
-
* @param show
|
|
382
|
+
/**
|
|
383
|
+
* 设置全部选中,或全部未选中
|
|
384
|
+
*
|
|
385
|
+
* @param show
|
|
386
386
|
*/
|
|
387
387
|
var setAllSelectAction = (0, _utils.useRefFunction)(function () {
|
|
388
388
|
var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
@@ -12,15 +12,15 @@ var _antd = require("antd");
|
|
|
12
12
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
var _reactAntdColumnResize = require("react-antd-column-resize");
|
|
15
16
|
var _utils = require("../utils");
|
|
16
17
|
var _useSet3 = _interopRequireDefault(require("../utils/useSet"));
|
|
18
|
+
var _vtxProvider = require("../vtx-provider");
|
|
17
19
|
var _Alert = _interopRequireDefault(require("./Alert"));
|
|
18
|
-
var _ToolBar = _interopRequireDefault(require("./ToolBar"));
|
|
19
20
|
var _Provide = require("./Store/Provide");
|
|
21
|
+
var _ToolBar = _interopRequireDefault(require("./ToolBar"));
|
|
20
22
|
var _mergeComponents = require("./mergeComponents");
|
|
21
23
|
var _index = require("./style/index");
|
|
22
|
-
var _reactAntdColumnResize = require("react-antd-column-resize");
|
|
23
|
-
var _vtxProvider = require("../vtx-provider");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
var _excluded = ["toolbar", "toolbarClassName", "toolbarTilte", "buttonGroup", "refreshIconVisible", "fullScreenVisible", "hideColumnSetting", "hideColumnHeight", "onRefresh", "bordered", "startIndex", "autoFit", "headFootHeight", "columnResizable", "components", "className", "style", "emptyText", "onRowSelectionClear", "onColumnsSave", "uniqueKey", "prefixUrl", "hideSelectionClear", "customEnumText"];
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -220,7 +220,8 @@ function VtxTable(props) {
|
|
|
220
220
|
showQuickJumper: true,
|
|
221
221
|
showTotal: function showTotal(total) {
|
|
222
222
|
return "".concat(TextEnum.paginationTotalText, " ").concat(total, " ").concat(TextEnum.paginationItemText);
|
|
223
|
-
}
|
|
223
|
+
},
|
|
224
|
+
size: 'medium'
|
|
224
225
|
}, pagination);
|
|
225
226
|
};
|
|
226
227
|
// 先排序,排序的结果给列设置作用
|