@ccs-ui/rc-pro 2.4.6 → 2.4.7-beta.2
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/docs-dist/1080.145ad951.async.js +580 -0
- package/docs-dist/404.html +2 -2
- package/docs-dist/atom__demos.634b9888.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__enumerations__DataEvent.md.bb7df9e5.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__index.md.0c77e6cb.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.4f3df5f9.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.1562f61e.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomFullScreenProps.md.f0fdf4d7.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomMultiStateProps.md.b43bdb35.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__ResizeSize.md.93bec405.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomCountdownProps.md.875dc115.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFilterInstance.md.35156b74.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFilterProps.md.b176db61.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFormItem.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFormItem.md.fa22615e.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFormItems.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFormItems.md.83b41d59.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomOperationProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomOperationProps.md.8cc54dfd.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomPageRequestProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomPageRequestProps.md.b06fd87c.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.8d06e954.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomTitleProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomTitleProps.md.fd553fcf.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__TableEventHandle.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__TableEventHandle.md.4351e01a.async.js +1 -0
- package/docs-dist/{docs__rc-pro__button___api__index.md.d60cfe48.async.js → docs__rc-pro__button___api__index.md.15b75096.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__interfaces__ButtonGroupProps.md.c2087f48.async.js → docs__rc-pro__button___api__interfaces__ButtonGroupProps.md.50cae9d3.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__interfaces__DropdownProps.md.8c40fed3.async.js → docs__rc-pro__button___api__interfaces__DropdownProps.md.38fb1a4f.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__interfaces__GroupButtonItem.md.179076b4.async.js → docs__rc-pro__button___api__interfaces__GroupButtonItem.md.145875f5.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__type-aliases__ButtonProps.md.1b893707.async.js → docs__rc-pro__button___api__type-aliases__ButtonProps.md.e943b53e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__type-aliases__DropdownClick.md.d2a5ced0.async.js → docs__rc-pro__button___api__type-aliases__DropdownClick.md.13d2a796.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__type-aliases__DropdownMenuItemType.md.66130238.async.js → docs__rc-pro__button___api__type-aliases__DropdownMenuItemType.md.97d89de0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__type-aliases__GroupClick.md.09ca8488.async.js → docs__rc-pro__button___api__type-aliases__GroupClick.md.dc41dade.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__cascader___api__index.md.09640e24.async.js → docs__rc-pro__cascader___api__index.md.47c62918.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__cascader___api__type-aliases__ApiCascaderProps.md.65084fc1.async.js → docs__rc-pro__cascader___api__type-aliases__ApiCascaderProps.md.cb969c6e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__context___api__index.md.20cc0933.async.js → docs__rc-pro__context___api__index.md.2d350d6f.async.js} +1 -1
- package/docs-dist/docs__rc-pro__context___api__type-aliases__AppConfigType.md.bf01193d.async.js +1 -0
- package/docs-dist/docs__rc-pro__context___api__type-aliases__AppFieldNames.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__context___api__type-aliases__AppFieldNames.md.6906521a.async.js +1 -0
- package/docs-dist/{docs__rc-pro__context___api__type-aliases__FnContextType.md.568b0641.async.js → docs__rc-pro__context___api__type-aliases__FnContextType.md.f84b939d.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__context___api__type-aliases__PageContextType.md.cd99fc9e.async.js → docs__rc-pro__context___api__type-aliases__PageContextType.md.9548623a.async.js} +1 -1
- package/docs-dist/docs__rc-pro__context___api__type-aliases__PageFieldNames.md.2d6f58a1.async.js +1 -0
- package/docs-dist/docs__rc-pro__context___api__type-aliases__PageFieldNames.md.33be0665.chunk.css +1 -0
- package/docs-dist/{docs__rc-pro__date-picker___api__index.md.1c120e64.async.js → docs__rc-pro__date-picker___api__index.md.855eff0e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__date-picker___api__type-aliases__DatePickerProps.md.b6cc6691.async.js → docs__rc-pro__date-picker___api__type-aliases__DatePickerProps.md.40c84779.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__date-picker___api__type-aliases__RangePickerProps.md.c422ed80.async.js → docs__rc-pro__date-picker___api__type-aliases__RangePickerProps.md.0ac69687.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__index.md.323195bf.async.js → docs__rc-pro__dialog___api__index.md.6c636f36.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogContextType.md.85948cd5.async.js → docs__rc-pro__dialog___api__interfaces__DialogContextType.md.cbff2435.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogDrawer.md.7fa47fb7.async.js → docs__rc-pro__dialog___api__interfaces__DialogDrawer.md.77130a4c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogInterface.md.39c3e85d.async.js → docs__rc-pro__dialog___api__interfaces__DialogInterface.md.376d95aa.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogModal.md.3d45a85e.async.js → docs__rc-pro__dialog___api__interfaces__DialogModal.md.be0dca59.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogProps.md.474686ef.async.js → docs__rc-pro__dialog___api__interfaces__DialogProps.md.e00cba5c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__DialogButtonsProps.md.061c091d.async.js → docs__rc-pro__dialog___api__type-aliases__DialogButtonsProps.md.10b6bc8d.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__DialogDrawerProps.md.32adaa67.async.js → docs__rc-pro__dialog___api__type-aliases__DialogDrawerProps.md.4d0b0459.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__DialogModalProps.md.f9fe0f4f.async.js → docs__rc-pro__dialog___api__type-aliases__DialogModalProps.md.020421e1.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__OkBtnProps.md.ea328029.async.js → docs__rc-pro__dialog___api__type-aliases__OkBtnProps.md.df9f263a.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__OkEvent.md.4b1ae037.async.js → docs__rc-pro__dialog___api__type-aliases__OkEvent.md.c7ec7123.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__type-aliases__Service.md.44f8ef7e.async.js → docs__rc-pro__dialog___api__type-aliases__Service.md.6cf4c49d.async.js} +1 -1
- package/docs-dist/docs__rc-pro__editor___api__index.md.806efab7.async.js +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__EditorCodeProps.md.1a78f516.async.js +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__EditorCodeProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__EditorRichProps.md.1526f411.async.js +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__EditorRichProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__LexicalEditorBaseProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__LexicalEditorBaseProps.md.efbfec2c.async.js +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__RichImageUpload.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__RichImageUpload.md.d386fae1.async.js +1 -0
- package/docs-dist/{docs__rc-pro__form___api__index.md.ff691778.async.js → docs__rc-pro__form___api__index.md.0d80a8ef.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__FormItem.md.87be7aec.async.js → docs__rc-pro__form___api__type-aliases__FormItem.md.2ef8f670.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__FormItemChildren.md.04d0ec88.async.js → docs__rc-pro__form___api__type-aliases__FormItemChildren.md.852f5415.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__FormItemProps.md.f4b50b5e.async.js → docs__rc-pro__form___api__type-aliases__FormItemProps.md.cfad0725.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__FormListProps.md.c9e7229e.async.js → docs__rc-pro__form___api__type-aliases__FormListProps.md.3ce363ad.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__ListItemBtnProps.md.5e43e012.async.js → docs__rc-pro__form___api__type-aliases__ListItemBtnProps.md.f68c4402.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__RenderItem.md.5ea4e95c.async.js → docs__rc-pro__form___api__type-aliases__RenderItem.md.8eeef6c6.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__RenderItemButton.md.dd2c0118.async.js → docs__rc-pro__form___api__type-aliases__RenderItemButton.md.bab3405e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__RenderItemProps.md.5c837071.async.js → docs__rc-pro__form___api__type-aliases__RenderItemProps.md.95e5e7d8.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__RuleType.md.bfaf5b74.async.js → docs__rc-pro__form___api__type-aliases__RuleType.md.e56e8fe8.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__form___api__type-aliases__ShowValidateEvent.md.845761c8.async.js → docs__rc-pro__form___api__type-aliases__ShowValidateEvent.md.1c0db839.async.js} +1 -1
- package/docs-dist/docs__rc-pro__index.md.1815af96.async.js +1 -0
- package/docs-dist/{docs__rc-pro__layout-keep-alive___api__index.md.d26250e6.async.js → docs__rc-pro__layout-keep-alive___api__index.md.3b1ec665.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__layout-keep-alive___api__interfaces__KeepAliveTabsProps.md.11942fb5.async.js → docs__rc-pro__layout-keep-alive___api__interfaces__KeepAliveTabsProps.md.8861c03e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__layout-keep-alive___api__type-aliases__MenuType.md.1ae3b908.async.js → docs__rc-pro__layout-keep-alive___api__type-aliases__MenuType.md.a322e04c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__layout-single-page___api__index.md.a72f9e2b.async.js → docs__rc-pro__layout-single-page___api__index.md.8ed4f72f.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__layout-single-page___api__interfaces__SinglePageProps.md.c6b5993f.async.js → docs__rc-pro__layout-single-page___api__interfaces__SinglePageProps.md.d396b5f1.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__loading___api__index.md.531605e4.async.js → docs__rc-pro__loading___api__index.md.7e626bac.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__loading___api__interfaces__LoadingProps.md.4af93070.async.js → docs__rc-pro__loading___api__interfaces__LoadingProps.md.cc583085.async.js} +1 -1
- package/docs-dist/docs__rc-pro__pro-table___api__index.md.1c149b7d.async.js +1 -0
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__ProTableProps.md.99154324.async.js +1 -0
- package/docs-dist/{docs__rc-pro__pro-table___api__interfaces__TableInstance.md.b3023c86.async.js → docs__rc-pro__pro-table___api__interfaces__TableInstance.md.18ebe0f4.async.js} +1 -1
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__TableProps.md.32cf0854.async.js +1 -0
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__LeafVerify.md.281e7051.async.js → docs__rc-pro__pro-table___api__type-aliases__LeafVerify.md.eacda6a2.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableColumn.md.27401944.async.js → docs__rc-pro__pro-table___api__type-aliases__TableColumn.md.376c1f4a.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableColumns.md.02e1af85.async.js → docs__rc-pro__pro-table___api__type-aliases__TableColumns.md.a5432088.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableData.md.7ab682b3.async.js → docs__rc-pro__pro-table___api__type-aliases__TableData.md.c853060f.async.js} +1 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableFormItems.md.a62c7537.async.js +1 -0
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableInstanceRef.md.8e3da7a2.async.js → docs__rc-pro__pro-table___api__type-aliases__TableInstanceRef.md.091247ff.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TreeInstance.md.2a7b637d.async.js → docs__rc-pro__pro-table___api__type-aliases__TreeInstance.md.9b11fee0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-tabs___api__index.md.c0861fdf.async.js → docs__rc-pro__pro-tabs___api__index.md.c8a9c1ff.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-tabs___api__interfaces__TabsChangeProps.md.4671d3dc.async.js → docs__rc-pro__pro-tabs___api__interfaces__TabsChangeProps.md.c31813fb.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-tabs___api__interfaces__TabsContextType.md.e06c5adf.async.js → docs__rc-pro__pro-tabs___api__interfaces__TabsContextType.md.cc5241a0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-tabs___api__type-aliases__TabProps.md.9a9aa1b6.async.js → docs__rc-pro__pro-tabs___api__type-aliases__TabProps.md.9264b5cb.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__index.md.ab1e2918.async.js → docs__rc-pro__select___api__index.md.a5e94bb0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.31b1e31e.async.js → docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.8e3f35a6.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__CacheType.md.992fa9c6.async.js → docs__rc-pro__select___api__type-aliases__CacheType.md.3e80fc84.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__CustomizeSelectProps.md.e65bd44c.async.js → docs__rc-pro__select___api__type-aliases__CustomizeSelectProps.md.4b7ba9b4.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__ModalSelectProps.md.c923813c.async.js → docs__rc-pro__select___api__type-aliases__ModalSelectProps.md.24aa1062.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__SelectChildrenProps.md.23106cbc.async.js → docs__rc-pro__select___api__type-aliases__SelectChildrenProps.md.78b68535.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__SelectProps.md.199c9680.async.js → docs__rc-pro__select___api__type-aliases__SelectProps.md.4820ef77.async.js} +1 -1
- package/docs-dist/docs__rc-pro__upload___api__index.md.bdb6d1f4.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__interfaces__ImageInfo.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__upload___api__interfaces__ImageInfo.md.b27b1b46.async.js +1 -0
- package/docs-dist/{docs__rc-pro__upload___api__type-aliases__FileUploadList.md.68327760.async.js → docs__rc-pro__upload___api__type-aliases__FileUploadList.md.4e43600c.async.js} +1 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadImageProps.md.bc7609b0.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.1c53df2d.async.js +1 -0
- package/docs-dist/{docs__rc-pro__upload___api__type-aliases__UploadRequest.md.04c0e604.async.js → docs__rc-pro__upload___api__type-aliases__UploadRequest.md.b8594bb0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__water-mark___api__index.md.9e696870.async.js → docs__rc-pro__water-mark___api__index.md.7f96f622.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__water-mark___api__type-aliases__WaterMarkProps.md.17279af0.async.js → docs__rc-pro__water-mark___api__type-aliases__WaterMarkProps.md.ed3387ca.async.js} +1 -1
- package/docs-dist/editor__demos.d7755e25.async.js +24 -0
- package/docs-dist/guide/index.html +2 -2
- package/docs-dist/index.html +2 -2
- package/docs-dist/meta__docs.9484e17c.async.js +176 -0
- package/docs-dist/meta__packages.50e42993.async.js +13725 -0
- package/docs-dist/meta__packages.5b16e5e9.chunk.css +1 -0
- package/docs-dist/packages__rc-pro__src__atom__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/packages__rc-pro__src__atom__index.md.7cbd6276.async.js +1 -0
- package/docs-dist/{packages__rc-pro__src__dialog__index.md.bd8bf51a.async.js → packages__rc-pro__src__dialog__index.md.e8a688de.async.js} +1 -1
- package/docs-dist/packages__rc-pro__src__editor__index.md.a2f44718.async.js +1 -0
- package/docs-dist/packages__rc-pro__src__pro-table__index.md.038f16c9.async.js +27 -0
- package/docs-dist/plugins/index.html +2 -2
- package/docs-dist/preload_helper.37208c37.js +1 -0
- package/docs-dist/pro-table__demos.a812caf5.async.js +1 -0
- package/docs-dist/{pro-tabs__demos.51945949.async.js → pro-tabs__demos.1edccbc5.async.js} +1 -1
- package/docs-dist/rc-pro/{context/_api/type-aliases/DialogFieldNames.md → atom/_api/enumerations/DataEvent.md}/index.html +2 -2
- package/docs-dist/rc-pro/{context/_api/type-aliases/TableFieldNames.md → atom/_api/index.md}/index.html +2 -2
- package/docs-dist/rc-pro/{editor/_api/type-aliases/EditorProps.md → atom/_api/interfaces/AtomCheckboxProps.md}/index.html +2 -2
- package/docs-dist/rc-pro/{ellipsis/_api/index.md → atom/_api/interfaces/AtomEllipsisProps.md}/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +15 -0
- package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +15 -0
- package/docs-dist/rc-pro/button/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/AppFieldNames.md/index.html +15 -0
- package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/PageFieldNames.md/index.html +15 -0
- package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkBtnProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorCodeProps.md/index.html +15 -0
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +15 -0
- package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +15 -0
- package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +15 -0
- package/docs-dist/rc-pro/form/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/index.html +2 -2
- package/docs-dist/rc-pro/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/interfaces/KeepAliveTabsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/type-aliases/MenuType.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-single-page/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-single-page/_api/interfaces/SinglePageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/loading/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/loading/_api/interfaces/LoadingProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/interfaces/ImageInfo.md/index.html +15 -0
- package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +2 -2
- package/docs-dist/rc-pros/atom/index.html +15 -0
- package/docs-dist/rc-pros/auth/index.html +2 -2
- package/docs-dist/rc-pros/button/index.html +2 -2
- package/docs-dist/rc-pros/cascader/index.html +2 -2
- package/docs-dist/rc-pros/date-picker/index.html +2 -2
- package/docs-dist/rc-pros/dialog/index.html +2 -2
- package/docs-dist/rc-pros/editor/index.html +2 -2
- package/docs-dist/rc-pros/form/index.html +2 -2
- package/docs-dist/rc-pros/index.html +2 -2
- package/docs-dist/rc-pros/layout-keep-alive/index.html +2 -2
- package/docs-dist/rc-pros/loading/index.html +2 -2
- package/docs-dist/rc-pros/pro-table/index.html +2 -2
- package/docs-dist/rc-pros/pro-tabs/index.html +2 -2
- package/docs-dist/rc-pros/result/index.html +2 -2
- package/docs-dist/rc-pros/select/index.html +2 -2
- package/docs-dist/rc-pros/time-picker/index.html +2 -2
- package/docs-dist/rc-pros/upload/index.html +2 -2
- package/docs-dist/rc-pros/water-mark/index.html +2 -2
- package/docs-dist/{umi.f6ba7429.js → umi.be7ce5af.js} +62 -62
- package/docs-dist/utils/index.html +2 -2
- package/docs-dist/~demos/:id/index.html +2 -2
- package/docs-dist/~demos/atom-demo-base/index.html +15 -0
- package/docs-dist/~demos/atom-demo-ellipsis/index.html +15 -0
- package/docs-dist/~demos/atom-demo-filter/index.html +15 -0
- package/docs-dist/~demos/atom-demo-operation/index.html +15 -0
- package/docs-dist/~demos/atom-demo-state/index.html +15 -0
- package/docs-dist/~demos/auth-demo-basic/index.html +2 -2
- package/docs-dist/~demos/button-demo-button/index.html +2 -2
- package/docs-dist/~demos/button-demo-group/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-basic/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-cache/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-range/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-demos/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-form/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-prompt/index.html +2 -2
- package/docs-dist/~demos/editor-demo-demos/index.html +2 -2
- package/docs-dist/~demos/editor-demo-rich/index.html +15 -0
- package/docs-dist/~demos/form-demo-demos/index.html +2 -2
- package/docs-dist/~demos/loading-demo-basic/index.html +2 -2
- package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-basic/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-cascade/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-extra/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-filter/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-refresh/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-selection/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-show-depend/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-tree-async/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +2 -2
- package/docs-dist/~demos/result-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-api/index.html +2 -2
- package/docs-dist/~demos/select-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize-label/index.html +2 -2
- package/docs-dist/~demos/time-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/upload-demo-basic/index.html +2 -2
- package/docs-dist/~demos/upload-demo-image/index.html +2 -2
- package/docs-dist/~demos/water-mark-demo-basic/index.html +2 -2
- package/es/atom/_api.d.ts +170 -0
- package/es/atom/_api.js +18 -0
- package/es/atom/check.d.ts +2 -0
- package/es/atom/check.js +86 -0
- package/es/atom/count-down.d.ts +12 -0
- package/es/atom/count-down.js +123 -0
- package/es/atom/ellipsis.d.ts +13 -0
- package/es/{ellipsis/index.js → atom/ellipsis.js} +3 -4
- package/es/atom/filter.d.ts +13 -0
- package/es/{pro-table/head.js → atom/filter.js} +98 -57
- package/es/atom/full-screen.d.ts +6 -0
- package/es/atom/full-screen.js +74 -0
- package/es/atom/index.d.ts +53 -0
- package/es/atom/index.js +55 -0
- package/es/atom/index.less +91 -0
- package/es/atom/item.d.ts +5 -0
- package/es/atom/item.js +34 -0
- package/es/atom/operation.d.ts +6 -0
- package/es/atom/operation.js +79 -0
- package/es/atom/resize-observer.d.ts +8 -0
- package/es/atom/resize-observer.js +63 -0
- package/es/atom/title.d.ts +2 -0
- package/es/atom/title.js +25 -0
- package/es/atom/useComplexState.d.ts +25 -0
- package/es/atom/useComplexState.js +108 -0
- package/es/atom/usePageRequest.d.ts +9 -0
- package/es/atom/usePageRequest.js +243 -0
- package/es/ccs.d.ts +7 -3
- package/es/ccs.js +14 -2
- package/es/color-picker/index.js +5 -1
- package/es/config.js +17 -6
- package/es/context/_api.d.ts +37 -19
- package/es/dialog/HookDrawer.js +6 -0
- package/es/dialog/_api.d.ts +1 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/dialog/button.js +3 -3
- package/es/editor/_api.d.ts +45 -5
- package/es/editor/code-base.d.ts +3 -0
- package/es/editor/{base.js → code-base.js} +38 -33
- package/es/editor/code.less +16 -0
- package/es/editor/index.d.ts +6 -1
- package/es/editor/index.js +12 -1
- package/es/editor/javascript.d.ts +2 -2
- package/es/editor/javascript.js +1 -1
- package/es/editor/json.d.ts +2 -2
- package/es/editor/json.js +1 -1
- package/es/editor/lexical/base/index.d.ts +7 -0
- package/es/editor/lexical/base/index.js +100 -0
- package/es/editor/lexical/base/index.less +304 -0
- package/es/editor/lexical/base/styleConfig.d.ts +9 -0
- package/es/editor/lexical/base/styleConfig.js +23 -0
- package/es/editor/lexical/base/toolbar/code.d.ts +5 -0
- package/es/editor/lexical/base/toolbar/code.js +59 -0
- package/es/editor/lexical/base/toolbar/index.d.ts +7 -0
- package/es/editor/lexical/base/toolbar/index.js +562 -0
- package/es/editor/lexical/base/toolbar/upload.d.ts +5 -0
- package/es/editor/lexical/base/toolbar/upload.js +262 -0
- package/es/editor/lexical/plugins/image/ImageComponent.d.ts +2 -0
- package/es/{full-screen/index.js → editor/lexical/plugins/image/ImageComponent.js} +32 -32
- package/es/editor/lexical/plugins/image/ImageNode.d.ts +38 -0
- package/es/editor/lexical/plugins/image/ImageNode.js +198 -0
- package/es/editor/lexical/plugins/image/index.d.ts +3 -0
- package/es/editor/lexical/plugins/image/index.js +28 -0
- package/es/editor/lexical/plugins/init-code.d.ts +12 -0
- package/es/editor/lexical/plugins/init-code.js +45 -0
- package/es/editor/lexical/plugins/init-html.d.ts +11 -0
- package/es/editor/lexical/plugins/init-html.js +46 -0
- package/es/editor/lexical/plugins/line-number.d.ts +5 -0
- package/es/editor/lexical/plugins/line-number.js +49 -0
- package/es/editor/lexical/plugins/tree-view.d.ts +9 -0
- package/es/editor/lexical/plugins/tree-view.js +31 -0
- package/es/editor/rich/export.d.ts +2 -0
- package/es/editor/rich/export.js +111 -0
- package/es/editor/rich/index.d.ts +9 -0
- package/es/editor/rich/index.js +150 -0
- package/es/editor/rich/theme.d.ts +43 -0
- package/es/editor/rich/theme.js +44 -0
- package/es/editor/sql.d.ts +2 -2
- package/es/editor/sql.js +1 -1
- package/es/editor/xml.d.ts +2 -0
- package/es/editor/xml.js +14 -0
- package/es/editor/yaml.d.ts +2 -0
- package/es/editor/yaml.js +14 -0
- package/es/hooks/use-app.d.ts +5 -7
- package/es/hooks/use-app.js +5 -11
- package/es/hooks/use-input-css.d.ts +17 -0
- package/es/hooks/use-input-css.js +101 -0
- package/es/hooks/use-insert-css.d.ts +1 -0
- package/es/hooks/use-insert-css.js +17 -0
- package/es/index.d.ts +2 -3
- package/es/index.js +3 -3
- package/es/layout-keep-alive/index.js +6 -0
- package/es/pro-table/_api.d.ts +9 -75
- package/es/pro-table/_api.js +1 -32
- package/es/pro-table/index.less +26 -40
- package/es/pro-table/table.d.ts +1 -1
- package/es/pro-table/table.js +163 -396
- package/es/pro-table/tree.d.ts +2 -3
- package/es/pro-table/tree.js +5 -7
- package/es/table/index.js +5 -5
- package/es/theme-dialog.js +4 -4
- package/es/upload/_api.d.ts +13 -1
- package/es/upload/upload-image.d.ts +1 -1
- package/es/upload/upload-image.js +29 -7
- package/package.json +15 -1
- package/docs-dist/7865.1cc75d3e.async.js +0 -565
- package/docs-dist/docs__rc-pro__context___api__type-aliases__AppConfigType.md.421cf93c.async.js +0 -1
- package/docs-dist/docs__rc-pro__context___api__type-aliases__DialogFieldNames.md.325a86bc.async.js +0 -1
- package/docs-dist/docs__rc-pro__context___api__type-aliases__TableFieldNames.md.134b6aa7.async.js +0 -1
- package/docs-dist/docs__rc-pro__editor___api__index.md.37609e3b.async.js +0 -1
- package/docs-dist/docs__rc-pro__editor___api__type-aliases__EditorProps.md.93d04abc.async.js +0 -1
- package/docs-dist/docs__rc-pro__ellipsis___api__index.md.4b927638.async.js +0 -1
- package/docs-dist/docs__rc-pro__ellipsis___api__interfaces__EllipsisProps.md.990f0e29.async.js +0 -1
- package/docs-dist/docs__rc-pro__index.md.9119dcc4.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__enumerations__TableEvent.md.0c74c5f6.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__index.md.a502c6fb.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__ProTableProps.md.06987c55.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__TableProps.md.06291a3e.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableEventHandle.md.762adb4b.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableFormItem.md.b1c27010.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableFormItems.md.2a4acb24.async.js +0 -1
- package/docs-dist/docs__rc-pro__upload___api__index.md.b86ae575.async.js +0 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadImageProps.md.4eca13b2.async.js +0 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.2ccd8b68.async.js +0 -1
- package/docs-dist/editor__demos.88663d1e.async.js +0 -6
- package/docs-dist/ellipsis__demos.47352a48.async.js +0 -1
- package/docs-dist/interval-button__demos.d647fbab.async.js +0 -1
- package/docs-dist/meta__docs.af3efc1f.async.js +0 -176
- package/docs-dist/meta__packages.38529667.chunk.css +0 -1
- package/docs-dist/meta__packages.5a564341.async.js +0 -11183
- package/docs-dist/packages__rc-pro__src__editor__index.md.dd655a92.async.js +0 -1
- package/docs-dist/packages__rc-pro__src__ellipsis__index.md.d9a92ef6.async.js +0 -1
- package/docs-dist/packages__rc-pro__src__interval-button__index.md.4ee5873c.async.js +0 -1
- package/docs-dist/packages__rc-pro__src__pro-table__index.md.5bbcf5a4.async.js +0 -21
- package/docs-dist/preload_helper.0fb99d58.js +0 -1
- package/docs-dist/pro-table__demos.24218bff.async.js +0 -1
- package/docs-dist/rc-pro/ellipsis/_api/interfaces/EllipsisProps.md/index.html +0 -15
- package/docs-dist/rc-pro/pro-table/_api/enumerations/TableEvent.md/index.html +0 -15
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableEventHandle.md/index.html +0 -15
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItem.md/index.html +0 -15
- package/docs-dist/rc-pros/ellipsis/index.html +0 -15
- package/docs-dist/rc-pros/interval-button/index.html +0 -15
- package/docs-dist/~demos/ellipsis-demo-demos/index.html +0 -15
- package/docs-dist/~demos/interval-button-demo-basic/index.html +0 -15
- package/es/editor/base.d.ts +0 -2
- package/es/editor/index.less +0 -24
- package/es/ellipsis/_api.d.ts +0 -10
- package/es/ellipsis/_api.js +0 -1
- package/es/ellipsis/index.d.ts +0 -14
- package/es/ellipsis/index.less +0 -26
- package/es/full-screen/index.d.ts +0 -3
- package/es/pro-table/head.d.ts +0 -16
- package/es/pro-table/operation.d.ts +0 -14
- package/es/pro-table/operation.js +0 -194
- package/es/pro-table/size.d.ts +0 -10
- package/es/pro-table/size.js +0 -17
- package/es/resize-observer.d.ts +0 -15
- package/es/resize-observer.js +0 -37
- /package/docs-dist/{docs__rc-pro__context___api__type-aliases__DialogFieldNames.md.33be0665.chunk.css → docs__rc-pro__atom___api__enumerations__DataEvent.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__context___api__type-aliases__TableFieldNames.md.33be0665.chunk.css → docs__rc-pro__atom___api__index.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__editor___api__type-aliases__EditorProps.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__ellipsis___api__index.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__ellipsis___api__interfaces__EllipsisProps.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__AtomFullScreenProps.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__pro-table___api__enumerations__TableEvent.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__AtomMultiStateProps.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableEventHandle.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__ResizeSize.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{docs__rc-pro__pro-table___api__type-aliases__TableFormItem.md.33be0665.chunk.css → docs__rc-pro__atom___api__type-aliases__AtomCountdownProps.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{packages__rc-pro__src__ellipsis__index.md.33be0665.chunk.css → docs__rc-pro__atom___api__type-aliases__AtomFilterInstance.md.33be0665.chunk.css} +0 -0
- /package/docs-dist/{packages__rc-pro__src__interval-button__index.md.33be0665.chunk.css → docs__rc-pro__atom___api__type-aliases__AtomFilterProps.md.33be0665.chunk.css} +0 -0
package/es/pro-table/table.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
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
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
7
2
|
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; }
|
|
8
3
|
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; }
|
|
9
4
|
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; }
|
|
10
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
11
6
|
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); }
|
|
12
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
13
|
-
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); }); }; }
|
|
14
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -18,36 +11,55 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
18
11
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
13
|
import { useUpdateEffect } from 'ahooks';
|
|
21
|
-
import { theme as antTheme,
|
|
14
|
+
import { theme as antTheme, Empty } from 'antd';
|
|
22
15
|
import { ConfigContext } from 'antd/es/config-provider';
|
|
23
16
|
import classNames from 'classnames';
|
|
24
|
-
import _debounce from 'lodash.debounce';
|
|
25
17
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
18
|
+
import { CcsAtom, useAppConfig } from '..';
|
|
19
|
+
import { DataEvent } from "../atom/_api";
|
|
20
|
+
import usePageRequest from "../atom/usePageRequest";
|
|
21
|
+
import { useInsertCss } from "../hooks/use-insert-css";
|
|
28
22
|
import CcsTable from "../table";
|
|
29
|
-
import { getDataByNamePath } from "../utils";
|
|
30
|
-
import { TableEvent } from "./_api";
|
|
31
23
|
import { getAllChildrenId, getDataById, onTableInModalOrDrawer, onTableInTabItem } from "./_utils";
|
|
32
|
-
import HeadComponent from "./head";
|
|
33
24
|
import "./index.less";
|
|
34
|
-
import TableOperation from "./operation";
|
|
35
25
|
import TableTree from "./tree";
|
|
36
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
37
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
27
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
export var classPrefix = 'ccs-pl';
|
|
30
|
+
function onDefaultColumnValue(columns) {
|
|
31
|
+
var defaultValue = {
|
|
32
|
+
filters: {},
|
|
33
|
+
orderProps: [],
|
|
34
|
+
columnOptions: [],
|
|
35
|
+
columnShowKeys: []
|
|
36
|
+
};
|
|
37
|
+
columns === null || columns === void 0 || columns.forEach(function (c) {
|
|
38
|
+
if (!!c.dataIndex && !!c.title) {
|
|
39
|
+
defaultValue.columnOptions.push({
|
|
40
|
+
label: c.title,
|
|
41
|
+
value: c.dataIndex
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (c.hidden !== true) {
|
|
45
|
+
defaultValue.columnShowKeys.push(c.dataIndex);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 排序
|
|
49
|
+
if (c.sorter && c.defaultSortOrder !== undefined) {
|
|
50
|
+
defaultValue.orderProps.push({
|
|
51
|
+
prop: c.dataIndex,
|
|
52
|
+
ascending: c.defaultSortOrder === 'ascend'
|
|
53
|
+
});
|
|
47
54
|
}
|
|
48
|
-
|
|
55
|
+
|
|
56
|
+
// 过滤
|
|
57
|
+
if (c.filters && c.defaultFilteredValue !== undefined) {
|
|
58
|
+
defaultValue.filters[c.dataIndex] = c.defaultFilteredValue;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return defaultValue;
|
|
49
62
|
}
|
|
50
|
-
export var classPrefix = 'ccs-pl';
|
|
51
63
|
|
|
52
64
|
/**
|
|
53
65
|
* 布局组件 包括form、查询、toolbar、table 自动初始化数据
|
|
@@ -56,7 +68,7 @@ export var classPrefix = 'ccs-pl';
|
|
|
56
68
|
* @returns
|
|
57
69
|
*/
|
|
58
70
|
var InternalProTable = function InternalProTable(props) {
|
|
59
|
-
var
|
|
71
|
+
var _props$table, _table$scroll;
|
|
60
72
|
var init = props.init,
|
|
61
73
|
auth = props.auth,
|
|
62
74
|
table = props.table,
|
|
@@ -75,16 +87,16 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
75
87
|
_props$formInitValues = props.formInitValues,
|
|
76
88
|
formInitValues = _props$formInitValues === void 0 ? {} : _props$formInitValues,
|
|
77
89
|
onEvent = props.onEvent;
|
|
78
|
-
|
|
79
|
-
// 权限判断方法
|
|
80
|
-
var _useCcsPage = useCcsPage(),
|
|
81
|
-
onAuth = _useCcsPage.onAuth;
|
|
82
90
|
// antd config
|
|
83
91
|
var config = useContext(ConfigContext);
|
|
84
92
|
|
|
93
|
+
// 添加额外样式
|
|
94
|
+
useInsertCss('table', function (prefixCls) {
|
|
95
|
+
return [".ccs-pl .".concat(prefixCls, "-table-title {padding: 0 !important;} ")];
|
|
96
|
+
});
|
|
97
|
+
|
|
85
98
|
// table 参数
|
|
86
99
|
var _ref = table || {},
|
|
87
|
-
pagination = _ref.pagination,
|
|
88
100
|
_ref$requestParam = _ref.requestParam,
|
|
89
101
|
requestParam = _ref$requestParam === void 0 ? {} : _ref$requestParam,
|
|
90
102
|
columns = _ref.columns,
|
|
@@ -93,27 +105,9 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
93
105
|
// table sticky
|
|
94
106
|
var stickyRef = useRef(false);
|
|
95
107
|
|
|
96
|
-
//
|
|
108
|
+
// 字段默认过滤,排序值,列字段显示筛选
|
|
97
109
|
var defaultColumnValues = useMemo(function () {
|
|
98
|
-
|
|
99
|
-
filters: {},
|
|
100
|
-
orderProps: []
|
|
101
|
-
};
|
|
102
|
-
columns === null || columns === void 0 || columns.forEach(function (c) {
|
|
103
|
-
// 排序
|
|
104
|
-
if (c.sorter && c.defaultSortOrder !== undefined) {
|
|
105
|
-
defaultValue.orderProps.push({
|
|
106
|
-
prop: c.dataIndex,
|
|
107
|
-
ascending: c.defaultSortOrder === 'ascend'
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// 过滤
|
|
112
|
-
if (c.filters && c.defaultFilteredValue !== undefined) {
|
|
113
|
-
defaultValue.filters[c.dataIndex] = c.defaultFilteredValue;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return defaultValue;
|
|
110
|
+
return onDefaultColumnValue(columns);
|
|
117
111
|
}, []);
|
|
118
112
|
|
|
119
113
|
// column filter
|
|
@@ -124,249 +118,48 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
124
118
|
var containerRef = useRef(null);
|
|
125
119
|
// table ref
|
|
126
120
|
var tableRef = useRef();
|
|
127
|
-
//
|
|
128
|
-
var
|
|
129
|
-
// table data
|
|
130
|
-
var _useState = useState({
|
|
131
|
-
total: 0,
|
|
132
|
-
dataSource: [],
|
|
133
|
-
pageSize: 10,
|
|
134
|
-
current: 1
|
|
135
|
-
}),
|
|
136
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
137
|
-
data = _useState2[0],
|
|
138
|
-
setData = _useState2[1];
|
|
121
|
+
// 查询过滤条件ref
|
|
122
|
+
var atomFilterRef = useRef(null);
|
|
139
123
|
// table tree ref
|
|
140
124
|
var treeRef = useRef(null);
|
|
141
125
|
// table size change
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
tableRowSize =
|
|
145
|
-
setTableRowSize =
|
|
126
|
+
var _useState = useState((table === null || table === void 0 ? void 0 : table.size) || 'middle'),
|
|
127
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
128
|
+
tableRowSize = _useState2[0],
|
|
129
|
+
setTableRowSize = _useState2[1];
|
|
146
130
|
// CCS 组件上下文配置
|
|
147
131
|
var _useAppConfig = useAppConfig(),
|
|
148
132
|
theme = _useAppConfig.theme;
|
|
149
|
-
// 接口字段指定全局配置
|
|
150
|
-
var globalFieldNames = useProTableFields();
|
|
151
133
|
// antd theme token
|
|
152
134
|
var _antTheme$useToken = antTheme.useToken(),
|
|
153
135
|
token = _antTheme$useToken.token;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
174
|
-
while (1) switch (_context.prev = _context.next) {
|
|
175
|
-
case 0:
|
|
176
|
-
_context.next = 2;
|
|
177
|
-
return (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.validateFields();
|
|
178
|
-
case 2:
|
|
179
|
-
formValues = _context.sent;
|
|
180
|
-
// 删除无意义字段
|
|
181
|
-
if (formValues) {
|
|
182
|
-
_delField = Object.keys(formValues).filter(function (k) {
|
|
183
|
-
return k.startsWith('_') && k.endsWith('_');
|
|
184
|
-
});
|
|
185
|
-
if (_delField.length > 0) {
|
|
186
|
-
_delField.forEach(function (d) {
|
|
187
|
-
return delete formValues[d];
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// 格式化条件,格式化结果数据
|
|
193
|
-
if (formatFormItems.length) {
|
|
194
|
-
Object.keys(formValues).forEach(function (k) {
|
|
195
|
-
if (formValues[k] !== undefined) {
|
|
196
|
-
var s = formatFormItems.find(function (f) {
|
|
197
|
-
return f.name === k;
|
|
198
|
-
});
|
|
199
|
-
if (s) formValues[k] = s.onFormat && s.onFormat(formValues[k]);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
return _context.abrupt("return", _objectSpread(_objectSpread(_objectSpread({}, requestParam), formInitValues), formValues));
|
|
204
|
-
case 6:
|
|
205
|
-
case "end":
|
|
206
|
-
return _context.stop();
|
|
207
|
-
}
|
|
208
|
-
}, _callee);
|
|
209
|
-
}));
|
|
210
|
-
return function getFormValues() {
|
|
211
|
-
return _ref2.apply(this, arguments);
|
|
212
|
-
};
|
|
213
|
-
}();
|
|
214
|
-
|
|
215
|
-
// 获取数据
|
|
216
|
-
var onRequest = /*#__PURE__*/function () {
|
|
217
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(eventType) {
|
|
218
|
-
var _props$table;
|
|
219
|
-
var pageNo,
|
|
220
|
-
pageSize,
|
|
221
|
-
record,
|
|
222
|
-
filterValues,
|
|
223
|
-
fieldNames,
|
|
224
|
-
_ref4,
|
|
225
|
-
_ref4$filters,
|
|
226
|
-
fsFilters,
|
|
227
|
-
_ref4$pageNo,
|
|
228
|
-
fsPageNo,
|
|
229
|
-
_ref4$pageSize,
|
|
230
|
-
fsPageSize,
|
|
231
|
-
_ref4$orderProps,
|
|
232
|
-
fsOrderProps,
|
|
233
|
-
fsQuery,
|
|
234
|
-
params,
|
|
235
|
-
_filterOrderRef$curre,
|
|
236
|
-
filters,
|
|
237
|
-
orderProps,
|
|
238
|
-
_treeRef$current,
|
|
239
|
-
requestResult,
|
|
240
|
-
dataSource,
|
|
241
|
-
total,
|
|
242
|
-
newData,
|
|
243
|
-
_args2 = arguments;
|
|
244
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
245
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
246
|
-
case 0:
|
|
247
|
-
pageNo = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 1;
|
|
248
|
-
pageSize = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : (pagination ? pagination.defaultPageSize : 10) || 10;
|
|
249
|
-
record = _args2.length > 3 ? _args2[3] : undefined;
|
|
250
|
-
if (!(!isAuth || !httpRequest)) {
|
|
251
|
-
_context2.next = 5;
|
|
252
|
-
break;
|
|
253
|
-
}
|
|
254
|
-
return _context2.abrupt("return");
|
|
255
|
-
case 5:
|
|
256
|
-
_context2.next = 7;
|
|
257
|
-
return getFormValues();
|
|
258
|
-
case 7:
|
|
259
|
-
filterValues = _context2.sent;
|
|
260
|
-
// 接口字段指定
|
|
261
|
-
fieldNames = _objectSpread(_objectSpread({}, globalFieldNames), (_props$table = props.table) === null || _props$table === void 0 ? void 0 : _props$table.fieldNames); // 请求字段
|
|
262
|
-
_ref4 = fieldNames.requestParam || {}, _ref4$filters = _ref4.filters, fsFilters = _ref4$filters === void 0 ? ['filters'] : _ref4$filters, _ref4$pageNo = _ref4.pageNo, fsPageNo = _ref4$pageNo === void 0 ? ['pageNo'] : _ref4$pageNo, _ref4$pageSize = _ref4.pageSize, fsPageSize = _ref4$pageSize === void 0 ? ['pageSize'] : _ref4$pageSize, _ref4$orderProps = _ref4.orderProps, fsOrderProps = _ref4$orderProps === void 0 ? ['orderProps'] : _ref4$orderProps, fsQuery = _ref4.query; // 构建请求参数
|
|
263
|
-
params = {};
|
|
264
|
-
if (fsQuery && fsQuery.length > 0) {
|
|
265
|
-
onSetObj(params, _toConsumableArray(fsQuery), filterValues);
|
|
266
|
-
} else {
|
|
267
|
-
params = filterValues;
|
|
268
|
-
}
|
|
269
|
-
if (pagination !== false) {
|
|
270
|
-
// 分页
|
|
271
|
-
onSetObj(params, _toConsumableArray(fsPageNo), pageNo);
|
|
272
|
-
onSetObj(params, _toConsumableArray(fsPageSize), pageSize);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// 列过滤或排序参数
|
|
276
|
-
_filterOrderRef$curre = filterOrderRef.current, filters = _filterOrderRef$curre.filters, orderProps = _filterOrderRef$curre.orderProps;
|
|
277
|
-
if (Object.keys(filters).length > 0) {
|
|
278
|
-
onSetObj(params, _toConsumableArray(fsFilters), filters);
|
|
279
|
-
}
|
|
280
|
-
if (orderProps.length > 0) {
|
|
281
|
-
onSetObj(params, _toConsumableArray(fsOrderProps), orderProps);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// 异步树
|
|
285
|
-
if (!parentFieldName) {
|
|
286
|
-
_context2.next = 19;
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
(_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 || _treeRef$current.onRequestTree(eventType, params.query || params, record);
|
|
290
|
-
return _context2.abrupt("return");
|
|
291
|
-
case 19:
|
|
292
|
-
// 事件回调,请求中
|
|
293
|
-
onEvent === null || onEvent === void 0 || onEvent(eventType, {
|
|
294
|
-
loading: true,
|
|
295
|
-
params: params
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
// 发起请求
|
|
299
|
-
setData(function (d) {
|
|
300
|
-
return _objectSpread(_objectSpread({}, d), {}, {
|
|
301
|
-
loading: true
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
_context2.next = 23;
|
|
305
|
-
return httpRequest(params);
|
|
306
|
-
case 23:
|
|
307
|
-
requestResult = _context2.sent;
|
|
308
|
-
// 事件回调,请求完成
|
|
309
|
-
onEvent === null || onEvent === void 0 || onEvent(eventType, {
|
|
310
|
-
loading: false,
|
|
311
|
-
params: params,
|
|
312
|
-
data: requestResult
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
// 请求结果
|
|
316
|
-
if (!requestResult) {
|
|
317
|
-
_context2.next = 35;
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
// 获取table数据
|
|
321
|
-
dataSource = getDataByNamePath(requestResult, fieldNames.dataSource); // 默认添加一条数据
|
|
322
|
-
if (table !== null && table !== void 0 && table.emptyDefaultOne && dataSource && dataSource.length === 0) {
|
|
323
|
-
dataSource.push(_defineProperty({}, rowKey || 'id', '0'));
|
|
324
|
-
}
|
|
325
|
-
// 数据总数
|
|
326
|
-
total = getDataByNamePath(requestResult, fieldNames.total);
|
|
327
|
-
if (!(total === undefined || dataSource === undefined)) {
|
|
328
|
-
_context2.next = 33;
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
newData = {
|
|
332
|
-
dataSource: dataSource,
|
|
333
|
-
pageSize: pageSize,
|
|
334
|
-
current: pageNo,
|
|
335
|
-
total: total,
|
|
336
|
-
loading: false
|
|
337
|
-
};
|
|
338
|
-
setData(newData);
|
|
339
|
-
return _context2.abrupt("return");
|
|
340
|
-
case 33:
|
|
341
|
-
// 当前页无数据,返回上一页
|
|
342
|
-
if (!dataSource.length && pageNo !== 1) {
|
|
343
|
-
onRequest(TableEvent.Reload, pageNo - 1);
|
|
344
|
-
} else {
|
|
345
|
-
setData({
|
|
346
|
-
current: pageNo,
|
|
347
|
-
pageSize: pageSize,
|
|
348
|
-
loading: false,
|
|
349
|
-
dataSource: dataSource,
|
|
350
|
-
total: total || 0
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
return _context2.abrupt("return");
|
|
354
|
-
case 35:
|
|
355
|
-
setData(function (d) {
|
|
356
|
-
return _objectSpread(_objectSpread({}, d), {}, {
|
|
357
|
-
loading: false
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
case 36:
|
|
361
|
-
case "end":
|
|
362
|
-
return _context2.stop();
|
|
136
|
+
var _usePageRequest = usePageRequest({
|
|
137
|
+
auth: auth,
|
|
138
|
+
rowKey: rowKey,
|
|
139
|
+
pagination: table === null || table === void 0 ? void 0 : table.pagination,
|
|
140
|
+
fieldNames: (_props$table = props.table) === null || _props$table === void 0 ? void 0 : _props$table.fieldNames,
|
|
141
|
+
emptyDefaultOne: table === null || table === void 0 ? void 0 : table.emptyDefaultOne,
|
|
142
|
+
onFilterOrder: function onFilterOrder() {
|
|
143
|
+
return filterOrderRef.current;
|
|
144
|
+
},
|
|
145
|
+
onEvent: onEvent,
|
|
146
|
+
getFormValues: function getFormValues() {
|
|
147
|
+
var _atomFilterRef$curren;
|
|
148
|
+
return (_atomFilterRef$curren = atomFilterRef.current) === null || _atomFilterRef$curren === void 0 ? void 0 : _atomFilterRef$curren.getFormValues();
|
|
149
|
+
},
|
|
150
|
+
request: httpRequest,
|
|
151
|
+
onRequestCustom: parentFieldName ? function () {
|
|
152
|
+
var _treeRef$current;
|
|
153
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
154
|
+
args[_key] = arguments[_key];
|
|
363
155
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
156
|
+
return (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.onRequestTree.apply(_treeRef$current, args);
|
|
157
|
+
} : undefined
|
|
158
|
+
}),
|
|
159
|
+
isAuth = _usePageRequest.isAuth,
|
|
160
|
+
data = _usePageRequest.data,
|
|
161
|
+
onRequest = _usePageRequest.onRequest,
|
|
162
|
+
onChangeData = _usePageRequest.onChangeData;
|
|
370
163
|
|
|
371
164
|
// 异步树、局部刷新方法
|
|
372
165
|
var _onPartialReload = function onPartialReload(id) {
|
|
@@ -375,14 +168,14 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
375
168
|
var treeNode = getDataById(data.dataSource || [], rowKey, id);
|
|
376
169
|
// 没有查找到、全部刷新
|
|
377
170
|
if (!treeNode) {
|
|
378
|
-
onRequest(
|
|
171
|
+
onRequest(DataEvent.Search);
|
|
379
172
|
return;
|
|
380
173
|
}
|
|
381
174
|
// 获取所有下级ID
|
|
382
175
|
var ids = getAllChildrenId(treeNode.children || [], rowKey);
|
|
383
176
|
// 局部重载
|
|
384
177
|
(_treeRef$current2 = treeRef.current) === null || _treeRef$current2 === void 0 || _treeRef$current2.onExpandKeys(ids);
|
|
385
|
-
(_treeRef$current3 = treeRef.current) === null || _treeRef$current3 === void 0 || _treeRef$current3.onRequestTree(
|
|
178
|
+
(_treeRef$current3 = treeRef.current) === null || _treeRef$current3 === void 0 || _treeRef$current3.onRequestTree(DataEvent.PartialReload, {}, treeNode);
|
|
386
179
|
};
|
|
387
180
|
useEffect(function () {
|
|
388
181
|
// 判断是否在弹出框中
|
|
@@ -410,7 +203,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
410
203
|
// 初始查询
|
|
411
204
|
useEffect(function () {
|
|
412
205
|
if (init !== false && httpRequest) {
|
|
413
|
-
onRequest(
|
|
206
|
+
onRequest(DataEvent.InitSearch);
|
|
414
207
|
}
|
|
415
208
|
}, [Object.keys(requestParam || {}).toString(), Object.values(requestParam || {}).toString()]);
|
|
416
209
|
|
|
@@ -419,20 +212,20 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
419
212
|
var _table$rowSelection, _table$rowSelection$o;
|
|
420
213
|
// @ts-ignore
|
|
421
214
|
table === null || table === void 0 || (_table$rowSelection = table.rowSelection) === null || _table$rowSelection === void 0 || (_table$rowSelection$o = _table$rowSelection.onClearByProTable) === null || _table$rowSelection$o === void 0 || _table$rowSelection$o.call(_table$rowSelection);
|
|
422
|
-
onRequest(
|
|
215
|
+
onRequest(DataEvent.Search);
|
|
423
216
|
};
|
|
424
217
|
|
|
425
218
|
// 重置
|
|
426
219
|
var onReset = function onReset() {
|
|
427
|
-
var _table$rowSelection2, _table$rowSelection2$,
|
|
220
|
+
var _table$rowSelection2, _table$rowSelection2$, _atomFilterRef$curren2;
|
|
428
221
|
// @ts-ignore
|
|
429
222
|
table === null || table === void 0 || (_table$rowSelection2 = table.rowSelection) === null || _table$rowSelection2 === void 0 || (_table$rowSelection2$ = _table$rowSelection2.onClearByProTable) === null || _table$rowSelection2$ === void 0 || _table$rowSelection2$.call(_table$rowSelection2);
|
|
430
223
|
// 重置表单
|
|
431
|
-
(
|
|
224
|
+
(_atomFilterRef$curren2 = atomFilterRef.current) === null || _atomFilterRef$curren2 === void 0 || _atomFilterRef$curren2.form.resetFields();
|
|
432
225
|
// 清空columns显示filter和sort值
|
|
433
226
|
columns === null || columns === void 0 || columns.forEach(function (c) {
|
|
434
227
|
if (c.filterDropdown || c.filters) {
|
|
435
|
-
c.filteredValue = c.defaultFilteredValue;
|
|
228
|
+
c.filteredValue = c.defaultFilteredValue || [];
|
|
436
229
|
}
|
|
437
230
|
if (c.sorter) {
|
|
438
231
|
c.sortOrder = c.defaultSortOrder;
|
|
@@ -440,7 +233,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
440
233
|
});
|
|
441
234
|
// 清空filter请求值
|
|
442
235
|
filterOrderRef.current = defaultColumnValues;
|
|
443
|
-
onRequest(
|
|
236
|
+
onRequest(DataEvent.Reset);
|
|
444
237
|
};
|
|
445
238
|
|
|
446
239
|
// 刷新
|
|
@@ -448,21 +241,22 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
448
241
|
var _table$rowSelection3, _table$rowSelection3$;
|
|
449
242
|
// @ts-ignore
|
|
450
243
|
table === null || table === void 0 || (_table$rowSelection3 = table.rowSelection) === null || _table$rowSelection3 === void 0 || (_table$rowSelection3$ = _table$rowSelection3.onClearByProTable) === null || _table$rowSelection3$ === void 0 || _table$rowSelection3$.call(_table$rowSelection3);
|
|
451
|
-
onRequest(
|
|
244
|
+
onRequest(DataEvent.Reload, data.current, data.pageSize);
|
|
452
245
|
};
|
|
453
246
|
|
|
454
247
|
// form 数据 查询,重载,重置方法
|
|
455
248
|
useImperativeHandle(proRef, function () {
|
|
249
|
+
var _atomFilterRef$curren3;
|
|
456
250
|
return {
|
|
457
251
|
data: data,
|
|
458
|
-
getFormValues: getFormValues,
|
|
252
|
+
getFormValues: (_atomFilterRef$curren3 = atomFilterRef.current) === null || _atomFilterRef$curren3 === void 0 ? void 0 : _atomFilterRef$curren3.getFormValues,
|
|
459
253
|
onSearch: onSearch,
|
|
460
254
|
onReload: onReload,
|
|
461
255
|
onPartialReload: function onPartialReload(param) {
|
|
462
256
|
_onPartialReload(param);
|
|
463
257
|
},
|
|
464
258
|
onReset: onReset,
|
|
465
|
-
onChangeData:
|
|
259
|
+
onChangeData: onChangeData
|
|
466
260
|
};
|
|
467
261
|
});
|
|
468
262
|
|
|
@@ -522,7 +316,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
522
316
|
orderProps: orderProps
|
|
523
317
|
});
|
|
524
318
|
}
|
|
525
|
-
onRequest(
|
|
319
|
+
onRequest(DataEvent.ChangePage, paginationTable.current || 0, paginationTable.pageSize || 10);
|
|
526
320
|
};
|
|
527
321
|
var renderTable = function renderTable() {
|
|
528
322
|
if (!table) return null;
|
|
@@ -562,9 +356,8 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
562
356
|
tableRowSize: tableRowSize,
|
|
563
357
|
sticky: stickyRef.current || true,
|
|
564
358
|
parentFieldName: parentFieldName,
|
|
565
|
-
setData:
|
|
566
|
-
onEvent: onEvent
|
|
567
|
-
handlePageChange: handlePageChange
|
|
359
|
+
setData: onChangeData,
|
|
360
|
+
onEvent: onEvent
|
|
568
361
|
});
|
|
569
362
|
}
|
|
570
363
|
return /*#__PURE__*/_jsx(CcsTable, _objectSpread(_objectSpread({
|
|
@@ -582,123 +375,97 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
582
375
|
onEvent: onEvent
|
|
583
376
|
}));
|
|
584
377
|
};
|
|
585
|
-
var
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
if (isFull) {
|
|
597
|
-
classList === null || classList === void 0 || classList.add('css-table-full');
|
|
598
|
-
style.backgroundColor = token.colorBgContainer;
|
|
599
|
-
} else {
|
|
600
|
-
classList === null || classList === void 0 || classList.remove('css-table-full');
|
|
601
|
-
style.backgroundColor = 'transparent';
|
|
378
|
+
var isAutoScroll = (table === null || table === void 0 || (_table$scroll = table.scroll) === null || _table$scroll === void 0 ? void 0 : _table$scroll.y) === 'auto';
|
|
379
|
+
// 样式处理
|
|
380
|
+
var newStyles = useMemo(function () {
|
|
381
|
+
var rootStyle = styles.root || {};
|
|
382
|
+
var tableStyle = styles.table || {};
|
|
383
|
+
tableStyle.overflow = 'unset';
|
|
384
|
+
|
|
385
|
+
// 添加边框
|
|
386
|
+
if (bordered) {
|
|
387
|
+
rootStyle.border = "1px solid ".concat(token.colorBorderSecondary);
|
|
388
|
+
rootStyle.borderRadius = 4;
|
|
602
389
|
}
|
|
603
|
-
|
|
390
|
+
|
|
391
|
+
// 自适应高度样式
|
|
392
|
+
if (isAutoScroll) {
|
|
393
|
+
rootStyle.overflow = 'hidden';
|
|
394
|
+
rootStyle.height = '100%';
|
|
395
|
+
tableStyle.overflow = 'hidden';
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
root: rootStyle,
|
|
399
|
+
table: tableStyle
|
|
400
|
+
};
|
|
401
|
+
}, []);
|
|
604
402
|
|
|
605
403
|
// 尺寸变化重设尺寸
|
|
606
404
|
var resizeFn = function resizeFn() {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
405
|
+
var _tableContentRef$curr;
|
|
406
|
+
if (isAutoScroll && ((_tableContentRef$curr = tableContentRef.current) === null || _tableContentRef$curr === void 0 ? void 0 : _tableContentRef$curr.clientHeight) !== 0) {
|
|
609
407
|
var _tableRef$current;
|
|
610
408
|
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || _tableRef$current.onFixedThead();
|
|
611
409
|
}
|
|
612
410
|
};
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
411
|
+
var extraOper = /*#__PURE__*/_jsxs(_Fragment, {
|
|
412
|
+
children: [/*#__PURE__*/_jsx(CcsAtom.FullScreen, {
|
|
413
|
+
parentHtmlId: "ccs-pro-table"
|
|
414
|
+
}), /*#__PURE__*/_jsx(CcsAtom.Checkbox, {
|
|
415
|
+
options: defaultColumnValues.columnOptions,
|
|
416
|
+
defaultCheckedKeys: defaultColumnValues.columnShowKeys,
|
|
417
|
+
placement: "bottomRight",
|
|
418
|
+
onChange: function onChange(e) {
|
|
419
|
+
var _tableRef$current2;
|
|
420
|
+
var hideKeys = defaultColumnValues.columnShowKeys.filter(function (key) {
|
|
421
|
+
return !e.includes(key);
|
|
422
|
+
});
|
|
423
|
+
(_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 || _tableRef$current2.onColumnFilter(hideKeys);
|
|
424
|
+
}
|
|
425
|
+
})]
|
|
426
|
+
});
|
|
616
427
|
|
|
617
428
|
// table 操作按钮
|
|
618
|
-
var renderTableOperation =
|
|
619
|
-
|
|
429
|
+
var renderTableOperation = table !== null && table !== void 0 && table.hideOperation ? /*#__PURE__*/_jsx(CcsAtom.Operation, {
|
|
430
|
+
extraLeft: toolbar,
|
|
431
|
+
extraRight: extraOper
|
|
432
|
+
}) : /*#__PURE__*/_jsx(CcsAtom.Operation, {
|
|
433
|
+
extraLeft: toolbar,
|
|
434
|
+
extraRight: extraOper,
|
|
435
|
+
onChangeSize: function onChangeSize(e) {
|
|
620
436
|
return setTableRowSize(e);
|
|
621
437
|
},
|
|
622
|
-
|
|
438
|
+
size: tableRowSize,
|
|
623
439
|
onReset: onReset,
|
|
624
440
|
columns: columns,
|
|
625
441
|
tableRef: tableRef,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
var hasFormItem = formItems.length > 0;
|
|
631
|
-
// 头部间距
|
|
632
|
-
var tokenPadding = tableRowSize === 'small' ? token.paddingSM : token.paddingMD;
|
|
442
|
+
style: {
|
|
443
|
+
marginLeft: !!toolbar ? 0 : 8
|
|
444
|
+
}
|
|
445
|
+
});
|
|
633
446
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
634
|
-
children: [/*#__PURE__*/_jsx(
|
|
447
|
+
children: [isAutoScroll && /*#__PURE__*/_jsx(CcsAtom.Resize, {
|
|
635
448
|
targetRef: tableContentRef,
|
|
636
|
-
onResize:
|
|
449
|
+
onResize: resizeFn
|
|
637
450
|
}), /*#__PURE__*/_jsxs("div", {
|
|
451
|
+
id: "ccs-pro-table",
|
|
638
452
|
className: classNames(classPrefix, className, _defineProperty({}, 'dark-table', theme === 'dark')),
|
|
639
|
-
style:
|
|
640
|
-
overflow: 'hidden',
|
|
641
|
-
height: '100%'
|
|
642
|
-
} : {}),
|
|
453
|
+
style: newStyles.root,
|
|
643
454
|
ref: containerRef,
|
|
644
|
-
children: [/*#__PURE__*/_jsx(
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
children: hasFormItem && /*#__PURE__*/_jsx(HeadComponent, {
|
|
657
|
-
formRef: formRef,
|
|
658
|
-
toolbar: toolbar,
|
|
659
|
-
formItems: formItems,
|
|
660
|
-
expandForm: expandForm,
|
|
661
|
-
formInitValues: formInitValues,
|
|
662
|
-
formItemLabelWidth: props.formItemLabelWidth,
|
|
663
|
-
onSearch: onSearch,
|
|
664
|
-
tableOperation: renderTableOperation
|
|
665
|
-
})
|
|
666
|
-
}), (toolbar || !hasFormItem && renderTableOperation) && /*#__PURE__*/_jsxs(Card, {
|
|
667
|
-
styles: {
|
|
668
|
-
cover: {
|
|
669
|
-
borderRadius: 0
|
|
670
|
-
},
|
|
671
|
-
body: {
|
|
672
|
-
display: 'flex',
|
|
673
|
-
justifyContent: 'space-between',
|
|
674
|
-
width: '100%',
|
|
675
|
-
padding: "".concat(token.paddingSM, "px ").concat(tokenPadding, "px"),
|
|
676
|
-
alignContent: 'center'
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
style: {
|
|
680
|
-
borderRadius: 0,
|
|
681
|
-
borderLeft: 0,
|
|
682
|
-
borderBottom: 0,
|
|
683
|
-
borderRight: 0,
|
|
684
|
-
borderTop: !hasFormItem ? 0 : undefined
|
|
685
|
-
},
|
|
686
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
687
|
-
style: {
|
|
688
|
-
flex: '1 1 auto'
|
|
689
|
-
},
|
|
690
|
-
children: toolbar
|
|
691
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
692
|
-
style: {
|
|
693
|
-
flex: '0 0 auto'
|
|
694
|
-
},
|
|
695
|
-
children: renderTableOperation
|
|
696
|
-
})]
|
|
697
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
455
|
+
children: [/*#__PURE__*/_jsx(CcsAtom.Title, {
|
|
456
|
+
children: props.title
|
|
457
|
+
}), /*#__PURE__*/_jsx(CcsAtom.Filter, {
|
|
458
|
+
ref: atomFilterRef,
|
|
459
|
+
extra: !toolbar ? renderTableOperation : undefined,
|
|
460
|
+
formItems: formItems,
|
|
461
|
+
expandForm: expandForm,
|
|
462
|
+
formInitValues: formInitValues,
|
|
463
|
+
formItemLabelWidth: props.formItemLabelWidth,
|
|
464
|
+
onSearch: onSearch,
|
|
465
|
+
requestParam: table === null || table === void 0 ? void 0 : table.requestParam
|
|
466
|
+
}), toolbar && renderTableOperation, /*#__PURE__*/_jsxs("div", {
|
|
698
467
|
className: "".concat(classPrefix, "-table-content"),
|
|
699
|
-
style:
|
|
700
|
-
overflow: (table === null || table === void 0 || (_table$scroll3 = table.scroll) === null || _table$scroll3 === void 0 ? void 0 : _table$scroll3.y) === 'auto' ? 'hidden' : 'unset'
|
|
701
|
-
}),
|
|
468
|
+
style: newStyles.table,
|
|
702
469
|
ref: tableContentRef,
|
|
703
470
|
children: [renderTable(), children]
|
|
704
471
|
})]
|