@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
package/es/utils/nanoid/index.js
CHANGED
|
@@ -15,10 +15,10 @@ var genNanoid = function genNanoid() {
|
|
|
15
15
|
return e;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* 生成uuid,如果不支持 randomUUID,就用 genNanoid
|
|
20
|
-
*
|
|
21
|
-
* @returns string
|
|
18
|
+
/**
|
|
19
|
+
* 生成uuid,如果不支持 randomUUID,就用 genNanoid
|
|
20
|
+
*
|
|
21
|
+
* @returns string
|
|
22
22
|
*/
|
|
23
23
|
export var nanoid = function nanoid() {
|
|
24
24
|
if (typeof window === 'undefined') return genNanoid();
|
|
@@ -3,10 +3,10 @@ import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
|
3
3
|
import { isNil } from "../isNil";
|
|
4
4
|
dayjs.extend(customParseFormat);
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* 一个比较hack的moment判断工具
|
|
8
|
-
* @param value
|
|
9
|
-
* @returns
|
|
6
|
+
/**
|
|
7
|
+
* 一个比较hack的moment判断工具
|
|
8
|
+
* @param value
|
|
9
|
+
* @returns
|
|
10
10
|
*/
|
|
11
11
|
var isMoment = function isMoment(value) {
|
|
12
12
|
return !!(value !== null && value !== void 0 && value._isAMomentObject);
|
|
@@ -2,10 +2,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
import { Badge, Space } from 'antd';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* 获取类型的 type
|
|
7
|
-
*
|
|
8
|
-
* @param obj
|
|
5
|
+
/**
|
|
6
|
+
* 获取类型的 type
|
|
7
|
+
*
|
|
8
|
+
* @param obj
|
|
9
9
|
*/
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
function getType(obj) {
|
|
@@ -103,12 +103,12 @@ var TableStatus = {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* 转化 text 和 valueEnum 通过 type 来添加 Status
|
|
108
|
-
*
|
|
109
|
-
* @param text
|
|
110
|
-
* @param valueEnum
|
|
111
|
-
* @param pure 纯净模式,不增加 status
|
|
106
|
+
/**
|
|
107
|
+
* 转化 text 和 valueEnum 通过 type 来添加 Status
|
|
108
|
+
*
|
|
109
|
+
* @param text
|
|
110
|
+
* @param valueEnum
|
|
111
|
+
* @param pure 纯净模式,不增加 status
|
|
112
112
|
*/
|
|
113
113
|
export var proFieldParsingText = function proFieldParsingText(text, valueEnumParams, key) {
|
|
114
114
|
if (Array.isArray(text)) {
|
|
@@ -10,12 +10,12 @@ import { get } from '@rc-component/util';
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { isNil } from "../isNil";
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* 判断一个值是否为普通对象(可以被遍历的对象)
|
|
15
|
-
* 暂时还不支持 Set 和 Map 结构
|
|
16
|
-
*
|
|
17
|
-
* @param itemValue - 要检查的值
|
|
18
|
-
* @returns 如果是普通对象返回 true,否则返回 false
|
|
13
|
+
/**
|
|
14
|
+
* 判断一个值是否为普通对象(可以被遍历的对象)
|
|
15
|
+
* 暂时还不支持 Set 和 Map 结构
|
|
16
|
+
*
|
|
17
|
+
* @param itemValue - 要检查的值
|
|
18
|
+
* @returns 如果是普通对象返回 true,否则返回 false
|
|
19
19
|
*/
|
|
20
20
|
export function isPlainObj(itemValue) {
|
|
21
21
|
// 如果不是对象类型,直接返回 false
|
|
@@ -40,12 +40,12 @@ export function isPlainObj(itemValue) {
|
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/**
|
|
44
|
-
* 将点号路径字符串转换为路径数组
|
|
45
|
-
* 例如: 'users.0.name' => ['users', 0, 'name']
|
|
46
|
-
*
|
|
47
|
-
* @param dotPath - 点号分隔的路径字符串
|
|
48
|
-
* @returns 路径数组,数字会被转换为数字类型
|
|
43
|
+
/**
|
|
44
|
+
* 将点号路径字符串转换为路径数组
|
|
45
|
+
* 例如: 'users.0.name' => ['users', 0, 'name']
|
|
46
|
+
*
|
|
47
|
+
* @param dotPath - 点号分隔的路径字符串
|
|
48
|
+
* @returns 路径数组,数字会被转换为数字类型
|
|
49
49
|
*/
|
|
50
50
|
function parseDotPath(dotPath) {
|
|
51
51
|
return dotPath.split('.').map(function (segment) {
|
|
@@ -54,11 +54,11 @@ function parseDotPath(dotPath) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
* 过滤掉空值的转换配置
|
|
59
|
-
*
|
|
60
|
-
* @param dataFormatMapRaw - 原始转换配置
|
|
61
|
-
* @returns 过滤后的转换配置
|
|
57
|
+
/**
|
|
58
|
+
* 过滤掉空值的转换配置
|
|
59
|
+
*
|
|
60
|
+
* @param dataFormatMapRaw - 原始转换配置
|
|
61
|
+
* @returns 过滤后的转换配置
|
|
62
62
|
*/
|
|
63
63
|
function filterNilTransforms(dataFormatMapRaw) {
|
|
64
64
|
var filtered = {};
|
|
@@ -71,11 +71,11 @@ function filterNilTransforms(dataFormatMapRaw) {
|
|
|
71
71
|
return filtered;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/**
|
|
75
|
-
* 将转换配置分为点号路径格式和传统嵌套对象格式
|
|
76
|
-
*
|
|
77
|
-
* @param dataFormatMapRaw - 原始转换配置
|
|
78
|
-
* @returns 包含两种格式转换配置的对象
|
|
74
|
+
/**
|
|
75
|
+
* 将转换配置分为点号路径格式和传统嵌套对象格式
|
|
76
|
+
*
|
|
77
|
+
* @param dataFormatMapRaw - 原始转换配置
|
|
78
|
+
* @returns 包含两种格式转换配置的对象
|
|
79
79
|
*/
|
|
80
80
|
function separateTransformFormats(dataFormatMapRaw) {
|
|
81
81
|
var dotPathTransforms = {};
|
|
@@ -95,12 +95,12 @@ function separateTransformFormats(dataFormatMapRaw) {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
/**
|
|
99
|
-
* 处理点号路径格式的转换
|
|
100
|
-
* 例如: 'users.0.name' => 转换 users[0].name 的值
|
|
101
|
-
*
|
|
102
|
-
* @param result - 要转换的数据对象
|
|
103
|
-
* @param dotPathTransforms - 点号路径转换配置
|
|
98
|
+
/**
|
|
99
|
+
* 处理点号路径格式的转换
|
|
100
|
+
* 例如: 'users.0.name' => 转换 users[0].name 的值
|
|
101
|
+
*
|
|
102
|
+
* @param result - 要转换的数据对象
|
|
103
|
+
* @param dotPathTransforms - 点号路径转换配置
|
|
104
104
|
*/
|
|
105
105
|
function processDotPathTransforms(result, dotPathTransforms) {
|
|
106
106
|
for (var dotPath in dotPathTransforms) {
|
|
@@ -143,13 +143,13 @@ function processDotPathTransforms(result, dotPathTransforms) {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
/**
|
|
147
|
-
* 在嵌套转换配置中查找转换函数
|
|
148
|
-
*
|
|
149
|
-
* @param currentTransforms - 当前转换配置
|
|
150
|
-
* @param parentsKey - 父级路径
|
|
151
|
-
* @param entityKey - 当前实体键
|
|
152
|
-
* @returns 找到的转换函数或 undefined
|
|
146
|
+
/**
|
|
147
|
+
* 在嵌套转换配置中查找转换函数
|
|
148
|
+
*
|
|
149
|
+
* @param currentTransforms - 当前转换配置
|
|
150
|
+
* @param parentsKey - 父级路径
|
|
151
|
+
* @param entityKey - 当前实体键
|
|
152
|
+
* @returns 找到的转换函数或 undefined
|
|
153
153
|
*/
|
|
154
154
|
function findNestedTransformFunction(currentTransforms, parentsKey, entityKey) {
|
|
155
155
|
var nestedTransforms = currentTransforms;
|
|
@@ -177,11 +177,11 @@ function findNestedTransformFunction(currentTransforms, parentsKey, entityKey) {
|
|
|
177
177
|
return undefined;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
/**
|
|
181
|
-
* 检查路径是否包含数组索引
|
|
182
|
-
*
|
|
183
|
-
* @param parentsKey - 父级路径数组
|
|
184
|
-
* @returns 如果包含数组索引返回 true
|
|
180
|
+
/**
|
|
181
|
+
* 检查路径是否包含数组索引
|
|
182
|
+
*
|
|
183
|
+
* @param parentsKey - 父级路径数组
|
|
184
|
+
* @returns 如果包含数组索引返回 true
|
|
185
185
|
*/
|
|
186
186
|
function isInArrayPath(parentsKey) {
|
|
187
187
|
return parentsKey.some(function (key) {
|
|
@@ -189,14 +189,14 @@ function isInArrayPath(parentsKey) {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
/**
|
|
193
|
-
* 递归处理嵌套对象转换(传统格式)
|
|
194
|
-
*
|
|
195
|
-
* @param tempValues - 要处理的值
|
|
196
|
-
* @param parentsKey - 父级路径
|
|
197
|
-
* @param currentTransforms - 当前转换配置
|
|
198
|
-
* @param rootMergeObjects - 存储需要在根级别合并的对象
|
|
199
|
-
* @returns 处理后的结果
|
|
192
|
+
/**
|
|
193
|
+
* 递归处理嵌套对象转换(传统格式)
|
|
194
|
+
*
|
|
195
|
+
* @param tempValues - 要处理的值
|
|
196
|
+
* @param parentsKey - 父级路径
|
|
197
|
+
* @param currentTransforms - 当前转换配置
|
|
198
|
+
* @param rootMergeObjects - 存储需要在根级别合并的对象
|
|
199
|
+
* @returns 处理后的结果
|
|
200
200
|
*/
|
|
201
201
|
function processNestedObjectTransforms(tempValues, parentsKey, currentTransforms, rootMergeObjects) {
|
|
202
202
|
var isArrayValues = Array.isArray(tempValues);
|
|
@@ -271,15 +271,15 @@ function processNestedObjectTransforms(tempValues, parentsKey, currentTransforms
|
|
|
271
271
|
return tempResult;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
/**
|
|
275
|
-
* 转换提交值中的键名
|
|
276
|
-
* 支持两种格式的转换配置:
|
|
277
|
-
* 1. 点号路径格式:'users.0.name' => 转换嵌套路径的值
|
|
278
|
-
* 2. 传统嵌套对象格式:{ users: { 0: { name: transformFn } } }
|
|
279
|
-
*
|
|
280
|
-
* @param values - 要转换的值对象
|
|
281
|
-
* @param dataFormatMapRaw - 转换配置映射
|
|
282
|
-
* @returns 转换后的值对象
|
|
274
|
+
/**
|
|
275
|
+
* 转换提交值中的键名
|
|
276
|
+
* 支持两种格式的转换配置:
|
|
277
|
+
* 1. 点号路径格式:'users.0.name' => 转换嵌套路径的值
|
|
278
|
+
* 2. 传统嵌套对象格式:{ users: { 0: { name: transformFn } } }
|
|
279
|
+
*
|
|
280
|
+
* @param values - 要转换的值对象
|
|
281
|
+
* @param dataFormatMapRaw - 转换配置映射
|
|
282
|
+
* @returns 转换后的值对象
|
|
283
283
|
*/
|
|
284
284
|
export var transformKeySubmitValue = function transformKeySubmitValue(values, dataFormatMapRaw) {
|
|
285
285
|
// 过滤掉空值的转换配置
|
|
@@ -40,9 +40,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
40
40
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
41
41
|
var noteOnce = rcWarning.noteOnce;
|
|
42
42
|
|
|
43
|
-
/**
|
|
44
|
-
* 显示警告信息
|
|
45
|
-
* @param messageStr
|
|
43
|
+
/**
|
|
44
|
+
* 显示警告信息
|
|
45
|
+
* @param messageStr
|
|
46
46
|
*/
|
|
47
47
|
var warning = function warning(messageStr) {
|
|
48
48
|
return message.warning(messageStr);
|
|
@@ -52,11 +52,11 @@ export var recordKeyToString = function recordKeyToString(rowKey) {
|
|
|
52
52
|
return rowKey;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
57
|
-
*
|
|
58
|
-
* @param keyProps
|
|
59
|
-
* @param action
|
|
55
|
+
/**
|
|
56
|
+
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
57
|
+
*
|
|
58
|
+
* @param keyProps
|
|
59
|
+
* @param action
|
|
60
60
|
*/
|
|
61
61
|
export function editableRowByKey(keyProps, action) {
|
|
62
62
|
var _recordKeyToString;
|
|
@@ -68,11 +68,11 @@ export function editableRowByKey(keyProps, action) {
|
|
|
68
68
|
var key = (_recordKeyToString = recordKeyToString(keyProps.key)) === null || _recordKeyToString === void 0 ? void 0 : _recordKeyToString.toString();
|
|
69
69
|
var kvMap = new Map();
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* 打平这个数组
|
|
73
|
-
*
|
|
74
|
-
* @param records
|
|
75
|
-
* @param parentKey
|
|
71
|
+
/**
|
|
72
|
+
* 打平这个数组
|
|
73
|
+
*
|
|
74
|
+
* @param records
|
|
75
|
+
* @param parentKey
|
|
76
76
|
*/
|
|
77
77
|
function dig(records, map_row_parentKey, map_row_index) {
|
|
78
78
|
records.forEach(function (record, index) {
|
|
@@ -157,10 +157,10 @@ export function editableRowByKey(keyProps, action) {
|
|
|
157
157
|
return fill(kvMap);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
/**
|
|
161
|
-
* 保存按钮的dom
|
|
162
|
-
*
|
|
163
|
-
* @param ActionRenderConfig
|
|
160
|
+
/**
|
|
161
|
+
* 保存按钮的dom
|
|
162
|
+
*
|
|
163
|
+
* @param ActionRenderConfig
|
|
164
164
|
*/
|
|
165
165
|
export function SaveEditableAction(_ref, ref) {
|
|
166
166
|
var recordKey = _ref.recordKey,
|
|
@@ -263,10 +263,10 @@ export function SaveEditableAction(_ref, ref) {
|
|
|
263
263
|
}, "save");
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
/**
|
|
267
|
-
* 删除按钮 dom
|
|
268
|
-
*
|
|
269
|
-
* @param ActionRenderConfig
|
|
266
|
+
/**
|
|
267
|
+
* 删除按钮 dom
|
|
268
|
+
*
|
|
269
|
+
* @param ActionRenderConfig
|
|
270
270
|
*/
|
|
271
271
|
export var DeleteEditableAction = function DeleteEditableAction(_ref4) {
|
|
272
272
|
var recordKey = _ref4.recordKey,
|
|
@@ -406,17 +406,17 @@ export function defaultActionRender(row, config) {
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
/**
|
|
410
|
-
* 一个方便的hooks 用于维护编辑的状态
|
|
411
|
-
*
|
|
412
|
-
* @param props
|
|
409
|
+
/**
|
|
410
|
+
* 一个方便的hooks 用于维护编辑的状态
|
|
411
|
+
*
|
|
412
|
+
* @param props
|
|
413
413
|
*/
|
|
414
414
|
export function useEditableArray(props) {
|
|
415
415
|
// Internationalization
|
|
416
416
|
var intl = useIntl();
|
|
417
417
|
|
|
418
|
-
/**
|
|
419
|
-
* 点击开始编辑之前的保存数据用的
|
|
418
|
+
/**
|
|
419
|
+
* 点击开始编辑之前的保存数据用的
|
|
420
420
|
*/
|
|
421
421
|
var preEditRowRef = useRef(null);
|
|
422
422
|
var _useState = useState(undefined),
|
|
@@ -504,10 +504,10 @@ export function useEditableArray(props) {
|
|
|
504
504
|
};
|
|
505
505
|
});
|
|
506
506
|
|
|
507
|
-
/**
|
|
508
|
-
* 进入编辑状态
|
|
509
|
-
*
|
|
510
|
-
* @param recordKey
|
|
507
|
+
/**
|
|
508
|
+
* 进入编辑状态
|
|
509
|
+
*
|
|
510
|
+
* @param recordKey
|
|
511
511
|
*/
|
|
512
512
|
var startEditable = useRefFunction(function (recordKey, record) {
|
|
513
513
|
var _ref7, _props$dataSource;
|
|
@@ -526,10 +526,10 @@ export function useEditableArray(props) {
|
|
|
526
526
|
return true;
|
|
527
527
|
});
|
|
528
528
|
|
|
529
|
-
/**
|
|
530
|
-
* 退出编辑状态
|
|
531
|
-
*
|
|
532
|
-
* @param recordKey
|
|
529
|
+
/**
|
|
530
|
+
* 退出编辑状态
|
|
531
|
+
*
|
|
532
|
+
* @param recordKey
|
|
533
533
|
*/
|
|
534
534
|
var cancelEditable = useRefFunction( /*#__PURE__*/function () {
|
|
535
535
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(recordKey, needReTry) {
|
|
@@ -635,11 +635,11 @@ export function useEditableArray(props) {
|
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
637
|
}, [saveRefsMap, editableKeysSet]);
|
|
638
|
-
/**
|
|
639
|
-
* 保存编辑行
|
|
640
|
-
*
|
|
641
|
-
* @param recordKey
|
|
642
|
-
* @param needReTry
|
|
638
|
+
/**
|
|
639
|
+
* 保存编辑行
|
|
640
|
+
*
|
|
641
|
+
* @param recordKey
|
|
642
|
+
* @param needReTry
|
|
643
643
|
*/
|
|
644
644
|
var saveEditable = useRefFunction( /*#__PURE__*/function () {
|
|
645
645
|
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(recordKey, needReTry) {
|
|
@@ -686,12 +686,12 @@ export function useEditableArray(props) {
|
|
|
686
686
|
};
|
|
687
687
|
}());
|
|
688
688
|
|
|
689
|
-
/**
|
|
690
|
-
* 同时只能支持一行,取消之后数据消息,不会触发 dataSource
|
|
691
|
-
*
|
|
692
|
-
* @param row
|
|
693
|
-
* @param options
|
|
694
|
-
* @name 增加新的行
|
|
689
|
+
/**
|
|
690
|
+
* 同时只能支持一行,取消之后数据消息,不会触发 dataSource
|
|
691
|
+
*
|
|
692
|
+
* @param row
|
|
693
|
+
* @param options
|
|
694
|
+
* @name 增加新的行
|
|
695
695
|
*/
|
|
696
696
|
var addEditRecord = useRefFunction(function (row, options) {
|
|
697
697
|
if (options !== null && options !== void 0 && options.parentKey && !dataSourceKeyIndexMapRef.current.has(recordKeyToString(options === null || options === void 0 ? void 0 : options.parentKey).toString())) {
|
|
@@ -20,19 +20,19 @@ import { useCallback, useMemo, useRef } from 'react';
|
|
|
20
20
|
import { useIntl } from "../../vtx-provider";
|
|
21
21
|
import { defaultActionRender, recordKeyToString } from "../useEditableArray";
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* 显示警告信息
|
|
25
|
-
* @param messageStr
|
|
23
|
+
/**
|
|
24
|
+
* 显示警告信息
|
|
25
|
+
* @param messageStr
|
|
26
26
|
*/
|
|
27
27
|
var warning = function warning(messageStr) {
|
|
28
28
|
return message.warning(messageStr);
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
33
|
-
*
|
|
34
|
-
* @param params
|
|
35
|
-
* @param action
|
|
31
|
+
/**
|
|
32
|
+
* 使用map 来删除数据,性能一般 但是准确率比较高
|
|
33
|
+
*
|
|
34
|
+
* @param params
|
|
35
|
+
* @param action
|
|
36
36
|
*/
|
|
37
37
|
function editableRowByKey(_ref) {
|
|
38
38
|
var data = _ref.data,
|
|
@@ -40,14 +40,14 @@ function editableRowByKey(_ref) {
|
|
|
40
40
|
return _objectSpread(_objectSpread({}, data), row);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/**
|
|
44
|
-
* 一个方便的hooks 用于维护编辑的状态
|
|
45
|
-
*
|
|
46
|
-
* @param props
|
|
43
|
+
/**
|
|
44
|
+
* 一个方便的hooks 用于维护编辑的状态
|
|
45
|
+
*
|
|
46
|
+
* @param props
|
|
47
47
|
*/
|
|
48
48
|
export function useEditableMap(props) {
|
|
49
|
-
/**
|
|
50
|
-
* 点击开始编辑之前的保存数据用的
|
|
49
|
+
/**
|
|
50
|
+
* 点击开始编辑之前的保存数据用的
|
|
51
51
|
*/
|
|
52
52
|
var preEditRowRef = useRef(null);
|
|
53
53
|
var editableType = props.type || 'single';
|
|
@@ -79,10 +79,10 @@ export function useEditableMap(props) {
|
|
|
79
79
|
return false;
|
|
80
80
|
}, [(editableKeys || []).join(',')]);
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* 进入编辑状态
|
|
84
|
-
*
|
|
85
|
-
* @param recordKey
|
|
82
|
+
/**
|
|
83
|
+
* 进入编辑状态
|
|
84
|
+
*
|
|
85
|
+
* @param recordKey
|
|
86
86
|
*/
|
|
87
87
|
var startEditable = function startEditable(recordKey, recordValue) {
|
|
88
88
|
var _ref2;
|
|
@@ -97,10 +97,10 @@ export function useEditableMap(props) {
|
|
|
97
97
|
return true;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
/**
|
|
101
|
-
* 退出编辑状态
|
|
102
|
-
*
|
|
103
|
-
* @param recordKey
|
|
100
|
+
/**
|
|
101
|
+
* 退出编辑状态
|
|
102
|
+
*
|
|
103
|
+
* @param recordKey
|
|
104
104
|
*/
|
|
105
105
|
var cancelEditable = function cancelEditable(recordKey) {
|
|
106
106
|
// 防止多次渲染
|
|
@@ -37,11 +37,11 @@ export var MediaQueryEnum = {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* loop query screen className
|
|
42
|
-
* Array.find will throw a error
|
|
43
|
-
* `Rendered more hooks than during the previous render.`
|
|
44
|
-
* So should use Array.forEach
|
|
40
|
+
/**
|
|
41
|
+
* loop query screen className
|
|
42
|
+
* Array.find will throw a error
|
|
43
|
+
* `Rendered more hooks than during the previous render.`
|
|
44
|
+
* So should use Array.forEach
|
|
45
45
|
*/
|
|
46
46
|
export var getScreenClassName = function getScreenClassName() {
|
|
47
47
|
var queryKey = undefined;
|
|
@@ -375,10 +375,10 @@ export default function ColumnSetting(props) {
|
|
|
375
375
|
var checkedColumnKeys = props.checkedColumnKeys,
|
|
376
376
|
onColumnsSave = props.onColumnsSave;
|
|
377
377
|
|
|
378
|
-
/**
|
|
379
|
-
* 设置全部选中,或全部未选中
|
|
380
|
-
*
|
|
381
|
-
* @param show
|
|
378
|
+
/**
|
|
379
|
+
* 设置全部选中,或全部未选中
|
|
380
|
+
*
|
|
381
|
+
* @param show
|
|
382
382
|
*/
|
|
383
383
|
var setAllSelectAction = useRefFunction(function () {
|
|
384
384
|
var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
@@ -18,6 +18,7 @@ function ToolBar(props) {
|
|
|
18
18
|
toolbarTilte = props.toolbarTilte,
|
|
19
19
|
buttonGroup = props.buttonGroup,
|
|
20
20
|
refreshIconVisible = props.refreshIconVisible,
|
|
21
|
+
fullScreenVisible = props.fullScreenVisible,
|
|
21
22
|
onRefresh = props.onRefresh,
|
|
22
23
|
hideColumnHeight = props.hideColumnHeight,
|
|
23
24
|
hideColumnSetting = props.hideColumnSetting,
|
|
@@ -63,7 +64,7 @@ function ToolBar(props) {
|
|
|
63
64
|
}), !hideColumnHeight && /*#__PURE__*/_jsx("div", {
|
|
64
65
|
className: "".concat(prefix, "-toolbar-setting-item"),
|
|
65
66
|
children: /*#__PURE__*/_jsx(Density, {})
|
|
66
|
-
}),
|
|
67
|
+
}), fullScreenVisible && /*#__PURE__*/_jsx("div", {
|
|
67
68
|
className: "".concat(prefix, "-toolbar-setting-item"),
|
|
68
69
|
onClick: (_fullScreenRef$curren = fullScreenRef.current) === null || _fullScreenRef$curren === void 0 ? void 0 : _fullScreenRef$curren.fullScreen,
|
|
69
70
|
children: /*#__PURE__*/_jsx(Fullscreen, {
|
|
@@ -17,7 +17,8 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
17
17
|
verticalAlign: 'middle'
|
|
18
18
|
}), "&-left", {
|
|
19
19
|
color: token.colorText,
|
|
20
|
-
fontSize: '16px'
|
|
20
|
+
fontSize: '16px',
|
|
21
|
+
fontWeight: 600
|
|
21
22
|
}), "&-right", {
|
|
22
23
|
float: 'right',
|
|
23
24
|
display: 'flex',
|
|
@@ -34,14 +35,16 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
34
35
|
}), "&-setting-item", _defineProperty(_defineProperty({
|
|
35
36
|
width: '32px',
|
|
36
37
|
height: '32px',
|
|
37
|
-
background: token.colorFillContent,
|
|
38
|
+
// background: token.colorFillContent,
|
|
39
|
+
background: '#F0F2F5',
|
|
38
40
|
borderRadius: '6px',
|
|
39
41
|
display: 'flex',
|
|
40
42
|
alignItems: 'center',
|
|
41
43
|
justifyContent: 'center',
|
|
42
44
|
marginLeft: '6px',
|
|
43
45
|
cursor: 'pointer',
|
|
44
|
-
color: token.colorIcon
|
|
46
|
+
// color: token.colorIcon,
|
|
47
|
+
color: '#595959'
|
|
45
48
|
}, '&:nth-child(1)', {
|
|
46
49
|
marginLeft: '8px'
|
|
47
50
|
}), "&:hover", {
|
package/es/vtx-datagrid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["toolbar", "toolbarClassName", "toolbarTilte", "buttonGroup", "refreshIconVisible", "hideColumnSetting", "hideColumnHeight", "onRefresh", "bordered", "startIndex", "autoFit", "headFootHeight", "columnResizable", "components", "className", "style", "emptyText", "onRowSelectionClear", "onColumnsSave", "uniqueKey", "prefixUrl", "hideSelectionClear", "customEnumText"];
|
|
2
|
+
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"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
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; }
|
|
@@ -80,6 +80,8 @@ function VtxTable(props) {
|
|
|
80
80
|
buttonGroup = props.buttonGroup,
|
|
81
81
|
_props$refreshIconVis = props.refreshIconVisible,
|
|
82
82
|
refreshIconVisible = _props$refreshIconVis === void 0 ? true : _props$refreshIconVis,
|
|
83
|
+
_props$fullScreenVisi = props.fullScreenVisible,
|
|
84
|
+
fullScreenVisible = _props$fullScreenVisi === void 0 ? false : _props$fullScreenVisi,
|
|
83
85
|
hideColumnSetting = props.hideColumnSetting,
|
|
84
86
|
hideColumnHeight = props.hideColumnHeight,
|
|
85
87
|
onRefresh = props.onRefresh,
|
|
@@ -366,6 +368,7 @@ function VtxTable(props) {
|
|
|
366
368
|
toolbarTilte: toolbarTilte,
|
|
367
369
|
buttonGroup: buttonGroup,
|
|
368
370
|
refreshIconVisible: refreshIconVisible,
|
|
371
|
+
fullScreenVisible: fullScreenVisible,
|
|
369
372
|
hideColumnHeight: hideColumnHeight,
|
|
370
373
|
hideColumnSetting: hideColumnSetting,
|
|
371
374
|
onRefresh: onRefresh,
|
|
@@ -425,6 +428,7 @@ export default VtxDatagrid;
|
|
|
425
428
|
VtxDatagrid.propTypes = {
|
|
426
429
|
prefix: PropTypes.string,
|
|
427
430
|
refreshIconVisible: PropTypes.bool,
|
|
431
|
+
fullScreenVisible: PropTypes.bool,
|
|
428
432
|
hideColumnSetting: PropTypes.bool,
|
|
429
433
|
hideSelectionClear: PropTypes.bool,
|
|
430
434
|
hideColumnHeight: PropTypes.bool,
|
|
@@ -86,7 +86,7 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
86
86
|
})))), "".concat(componentCls, "-fit"), {
|
|
87
87
|
height: '100%',
|
|
88
88
|
minHeight: 200
|
|
89
|
-
}), "".concat(componentCls, "-noFit"), {}), "".concat(componentCls, "-no-border"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty({
|
|
89
|
+
}), "".concat(componentCls, "-noFit"), {}), "".concat(componentCls, "-no-border"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty(_defineProperty({
|
|
90
90
|
borderColor: 'transparent'
|
|
91
91
|
}, '.ant-table-thead', {
|
|
92
92
|
'>tr>th': {
|
|
@@ -100,6 +100,14 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
100
100
|
borderInlineColor: 'transparent !important',
|
|
101
101
|
borderBottomColor: 'transparent !important'
|
|
102
102
|
}
|
|
103
|
+
}), '.ant-table-content', {
|
|
104
|
+
'>table >tbody>tr>td': {
|
|
105
|
+
borderInlineColor: 'transparent !important'
|
|
106
|
+
},
|
|
107
|
+
'>table >tbody>tr.ant-table-placeholder': {
|
|
108
|
+
borderInlineColor: 'transparent !important',
|
|
109
|
+
borderBottomColor: 'transparent !important'
|
|
110
|
+
}
|
|
103
111
|
}))))), "".concat(componentCls, "-striped"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty({}, '.ant-table-body', {
|
|
104
112
|
'>table >tbody>tr:nth-child(odd)>td': {
|
|
105
113
|
backgroundColor: token.colorBgLayoutTable,
|