@ccs-ui/rc-pro 2.4.9 → 2.5.0
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/404.html +2 -2
- package/docs-dist/atom__demos.31900661.async.js +1 -0
- package/docs-dist/{docs__rc-pro__atom___api__enumerations__DataEvent.md.a6ab77d8.async.js → docs__rc-pro__atom___api__enumerations__DataEvent.md.bb7df9e5.async.js} +1 -1
- package/docs-dist/docs__rc-pro__atom___api__index.md.5bb57f6c.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.c9925fec.async.js +1 -0
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.44f4024f.async.js +1 -0
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.9e35493e.async.js → docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.1562f61e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomFullScreenProps.md.006a2371.async.js → docs__rc-pro__atom___api__interfaces__AtomFullScreenProps.md.f0fdf4d7.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomLoadingProps.md.f15695c4.async.js → docs__rc-pro__atom___api__interfaces__AtomLoadingProps.md.ef6008b3.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomMultiStateProps.md.d18a2f32.async.js → docs__rc-pro__atom___api__interfaces__AtomMultiStateProps.md.b43bdb35.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__ResizeSize.md.d160a94b.async.js → docs__rc-pro__atom___api__interfaces__ResizeSize.md.93bec405.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomCountdownInstance.md.c5516043.async.js → docs__rc-pro__atom___api__type-aliases__AtomCountdownInstance.md.848197ad.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomCountdownProps.md.07ca96c1.async.js → docs__rc-pro__atom___api__type-aliases__AtomCountdownProps.md.875dc115.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomFilterInstance.md.7dd769b9.async.js → docs__rc-pro__atom___api__type-aliases__AtomFilterInstance.md.35156b74.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomFilterProps.md.4385a29e.async.js → docs__rc-pro__atom___api__type-aliases__AtomFilterProps.md.b176db61.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomFormItem.md.7d2518de.async.js → docs__rc-pro__atom___api__type-aliases__AtomFormItem.md.fa22615e.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomFormItems.md.0baa7a2c.async.js → docs__rc-pro__atom___api__type-aliases__AtomFormItems.md.83b41d59.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomOperationProps.md.4a48afd0.async.js → docs__rc-pro__atom___api__type-aliases__AtomOperationProps.md.8cc54dfd.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomPageRequestProps.md.7fd18372.async.js → docs__rc-pro__atom___api__type-aliases__AtomPageRequestProps.md.b06fd87c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.c8e6be0b.async.js → docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.bf89a64a.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomTitleProps.md.0579afff.async.js → docs__rc-pro__atom___api__type-aliases__AtomTitleProps.md.fd553fcf.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__type-aliases__TableEventHandle.md.65426813.async.js → docs__rc-pro__atom___api__type-aliases__TableEventHandle.md.4351e01a.async.js} +1 -1
- 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.063d22cb.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.c184b444.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.13cfa1c0.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.1f265000.async.js → docs__rc-pro__context___api__type-aliases__AppConfigType.md.bf01193d.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__context___api__type-aliases__AppFieldNames.md.13307203.async.js → docs__rc-pro__context___api__type-aliases__AppFieldNames.md.6906521a.async.js} +1 -1
- 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.8b204c41.async.js → docs__rc-pro__context___api__type-aliases__PageFieldNames.md.2d6f58a1.async.js} +1 -1
- 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.6d9d2f30.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.ef53cb32.async.js → docs__rc-pro__editor___api__index.md.806efab7.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__editor___api__type-aliases__EditorCodeProps.md.d521a185.async.js → docs__rc-pro__editor___api__type-aliases__EditorCodeProps.md.1a78f516.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__editor___api__type-aliases__EditorRichProps.md.893e1d95.async.js → docs__rc-pro__editor___api__type-aliases__EditorRichProps.md.1526f411.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__editor___api__type-aliases__LexicalEditorBaseProps.md.a0dd6f4c.async.js → docs__rc-pro__editor___api__type-aliases__LexicalEditorBaseProps.md.efbfec2c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__editor___api__type-aliases__RichImageUpload.md.7586e32b.async.js → docs__rc-pro__editor___api__type-aliases__RichImageUpload.md.d386fae1.async.js} +1 -1
- 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.25f3dfbd.async.js +1 -0
- package/docs-dist/{docs__rc-pro__page-layout___api__index.md.f933cde8.async.js → docs__rc-pro__page-layout___api__index.md.c535e6b4.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__page-layout___api__interfaces__KeepAliveTabsProps.md.a037da81.async.js → docs__rc-pro__page-layout___api__interfaces__KeepAliveTabsProps.md.eb8758c8.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.8bd894c7.async.js → docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.998482de.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__page-layout___api__type-aliases__MenuType.md.79b77337.async.js → docs__rc-pro__page-layout___api__type-aliases__MenuType.md.c1ce3b8d.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__index.md.da5f5e0c.async.js → docs__rc-pro__pro-table___api__index.md.1c149b7d.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__pro-table___api__interfaces__ProTableProps.md.11bee76b.async.js → docs__rc-pro__pro-table___api__interfaces__ProTableProps.md.99154324.async.js} +1 -1
- 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.a0a0f608.async.js → docs__rc-pro__pro-table___api__interfaces__TableProps.md.32cf0854.async.js} +1 -1
- 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.f0f59207.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.228c8159.async.js → docs__rc-pro__pro-table___api__type-aliases__TableFormItems.md.a62c7537.async.js} +1 -1
- 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.ea90d7dc.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__interfaces__ApiRequestProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__select___api__interfaces__ApiRequestProps.md.7c3d76aa.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__interfaces__RequestType.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__select___api__interfaces__RequestType.md.f32ab78c.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.a0e4d882.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__type-aliases__CacheType.md.8fe52a8e.async.js +1 -0
- 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__SelectFieldNames.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__select___api__type-aliases__SelectFieldNames.md.69e4fe73.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__type-aliases__SelectProps.md.539fc906.async.js +1 -0
- package/docs-dist/{docs__rc-pro__upload___api__index.md.afbbad49.async.js → docs__rc-pro__upload___api__index.md.bdb6d1f4.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__upload___api__interfaces__ImageInfo.md.d823ba8e.async.js → docs__rc-pro__upload___api__interfaces__ImageInfo.md.b27b1b46.async.js} +1 -1
- 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.0bd837f2.async.js → docs__rc-pro__upload___api__type-aliases__UploadImageProps.md.bc7609b0.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__upload___api__type-aliases__UploadProps.md.0f91117c.async.js → docs__rc-pro__upload___api__type-aliases__UploadProps.md.1c53df2d.async.js} +1 -1
- 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/{form__demos.dfc37922.async.js → form__demos.9bb3e809.async.js} +1 -1
- package/docs-dist/guide/index.html +2 -2
- package/docs-dist/index.html +2 -2
- package/docs-dist/meta__docs.ab3d3c25.async.js +176 -0
- package/docs-dist/meta__packages.1f996fd0.chunk.css +1 -0
- package/docs-dist/{meta__packages.afac63ad.async.js → meta__packages.85af824a.async.js} +628 -578
- package/docs-dist/packages__rc-pro__src__atom__index.md.a87a6f4f.async.js +1 -0
- package/docs-dist/packages__rc-pro__src__select__index.md.4832fd7c.async.js +2 -0
- package/docs-dist/plugins/index.html +2 -2
- package/docs-dist/preload_helper.1f08a216.js +1 -0
- package/docs-dist/rc-pro/atom/_api/enumerations/DataEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/index.md/index.html +2 -2
- package/docs-dist/{~demos/atom-demo-operation → rc-pro/atom/_api/interfaces/AtomCheckboxApiProps.md}/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomEllipsisProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomLoadingProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +2 -2
- 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/page-layout/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/interfaces/KeepAliveTabsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/interfaces/SinglePageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/type-aliases/MenuType.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/interfaces/ApiRequestProps.md/index.html +15 -0
- package/docs-dist/rc-pro/select/_api/interfaces/RequestType.md/index.html +15 -0
- 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/SelectFieldNames.md/index.html +15 -0
- 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 +2 -2
- 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 +2 -2
- 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/page-layout/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/select__demos.6bbaba84.async.js +1 -0
- package/docs-dist/{umi.941a7883.js → umi.28e5818e.js} +58 -57
- 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 +2 -2
- package/docs-dist/~demos/atom-demo-checkbox/index.html +15 -0
- package/docs-dist/~demos/atom-demo-ellipsis/index.html +2 -2
- package/docs-dist/~demos/atom-demo-filter/index.html +2 -2
- package/docs-dist/~demos/atom-demo-state/index.html +2 -2
- 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 +2 -2
- package/docs-dist/~demos/form-demo-demos/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 +15 -0
- package/docs-dist/~demos/select-demo-basic/index.html +15 -0
- package/docs-dist/~demos/select-demo-customize/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize-label/index.html +15 -0
- 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 +16 -9
- package/es/atom/check-api.d.ts +2 -0
- package/es/atom/check-api.js +34 -0
- package/es/atom/check.js +65 -31
- package/es/atom/ellipsis.js +1 -0
- package/es/atom/index.d.ts +16 -4
- package/es/atom/index.js +18 -2
- package/es/atom/index.less +28 -4
- package/es/atom/spin.d.ts +2 -0
- package/es/atom/spin.js +16 -0
- package/es/atom/useApiRequest.d.ts +5 -0
- package/es/atom/useApiRequest.js +55 -0
- package/es/atom/useFieldOptions.d.ts +12 -0
- package/es/atom/useFieldOptions.js +49 -0
- package/es/dialog/button.d.ts +1 -1
- package/es/pro-table/table.js +13 -3
- package/es/select/_api.d.ts +17 -5
- package/es/select/api.js +11 -39
- package/es/select/index.d.ts +1 -1
- package/es/select/index.js +28 -43
- package/package.json +1 -1
- package/docs-dist/atom__demos.90c61f8e.async.js +0 -1
- package/docs-dist/docs__rc-pro__atom___api__index.md.023b7960.async.js +0 -1
- package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.13c7ee2f.async.js +0 -1
- package/docs-dist/docs__rc-pro__index.md.828ce524.async.js +0 -1
- package/docs-dist/docs__rc-pro__select___api__index.md.ab1e2918.async.js +0 -1
- package/docs-dist/docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.31b1e31e.async.js +0 -1
- package/docs-dist/docs__rc-pro__select___api__type-aliases__CacheType.md.992fa9c6.async.js +0 -1
- package/docs-dist/docs__rc-pro__select___api__type-aliases__SelectProps.md.199c9680.async.js +0 -1
- package/docs-dist/meta__docs.115fc631.async.js +0 -176
- package/docs-dist/meta__packages.005955bf.chunk.css +0 -1
- package/docs-dist/packages__rc-pro__src__atom__index.md.7cbd6276.async.js +0 -1
- package/docs-dist/packages__rc-pro__src__select__index.md.522b5190.async.js +0 -1
- package/docs-dist/preload_helper.68e34430.js +0 -1
- package/docs-dist/select__demos.19a1f254.async.js +0 -1
package/es/atom/_api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ButtonProps, FormInstance, FormProps, PopoverProps, TableProps } from '
|
|
|
3
3
|
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
4
4
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
5
5
|
import { ReactElement, ReactNode } from 'react';
|
|
6
|
-
import { FormItemProps, PageFieldNames, PropsWithChildren, PropsWithCss } from '../ccs';
|
|
6
|
+
import { ApiRequestProps, FormItemProps, PageFieldNames, PropsWithChildren, PropsWithCss, SelectFieldNames } from '../ccs';
|
|
7
7
|
export type AtomOperationProps<T> = PropsWithChildren<T> & PropsWithCss & {
|
|
8
8
|
/** 左侧扩展按钮 */
|
|
9
9
|
extraLeft?: ReactNode;
|
|
@@ -69,20 +69,27 @@ export interface AtomFullScreenProps {
|
|
|
69
69
|
/** 全屏父节点ID */
|
|
70
70
|
parentHtmlId?: string;
|
|
71
71
|
}
|
|
72
|
-
export interface AtomCheckboxProps {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
export interface AtomCheckboxProps extends PropsWithCss {
|
|
73
|
+
popoverMode?: Omit<PopoverProps, 'content'>;
|
|
74
|
+
/** 全选, @default true */
|
|
75
|
+
showAll?: boolean;
|
|
76
|
+
/** 字段名配置 */
|
|
77
|
+
fieldNames?: SelectFieldNames;
|
|
77
78
|
/** 选项 */
|
|
78
79
|
options?: CheckboxGroupProps['options'];
|
|
79
|
-
/** 位置 */
|
|
80
|
-
placement?: PopoverProps['placement'];
|
|
81
80
|
/** 默认选中项 */
|
|
82
|
-
defaultCheckedKeys?:
|
|
81
|
+
defaultCheckedKeys?: React.Key[];
|
|
82
|
+
/** 是否加载中 */
|
|
83
|
+
loading?: boolean;
|
|
84
|
+
/** 选中项引用 */
|
|
85
|
+
selectedRef?: React.MutableRefObject<any>;
|
|
86
|
+
/** 选中项 */
|
|
87
|
+
value?: React.Key[];
|
|
83
88
|
/** 选中改变 */
|
|
84
89
|
onChange?: (keys: string[]) => void;
|
|
85
90
|
}
|
|
91
|
+
export interface AtomCheckboxApiProps extends AtomCheckboxProps, ApiRequestProps {
|
|
92
|
+
}
|
|
86
93
|
export type AtomTitleProps = PropsWithCss & PropsWithChildren;
|
|
87
94
|
/** 请求事件类型 */
|
|
88
95
|
export declare enum DataEvent {
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = ["request", "defaultParams", "cache"];
|
|
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
|
+
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
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
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); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import CcsUtils from '@ccs-ui/utils';
|
|
11
|
+
import AtomCheckbox from "./check";
|
|
12
|
+
import useApiRequest from "./useApiRequest";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export default function AtomCheckboxApi(props) {
|
|
15
|
+
var request = props.request,
|
|
16
|
+
defaultParams = props.defaultParams,
|
|
17
|
+
cache = props.cache,
|
|
18
|
+
checkProps = _objectWithoutProperties(props, _excluded);
|
|
19
|
+
var apiProps = CcsUtils.isFunction(request) ? {
|
|
20
|
+
service: request,
|
|
21
|
+
defaultParams: defaultParams,
|
|
22
|
+
cache: cache
|
|
23
|
+
} : request;
|
|
24
|
+
var _useApiRequest = useApiRequest(apiProps),
|
|
25
|
+
_useApiRequest$data = _useApiRequest.data,
|
|
26
|
+
data = _useApiRequest$data === void 0 ? [] : _useApiRequest$data,
|
|
27
|
+
loading = _useApiRequest.loading;
|
|
28
|
+
|
|
29
|
+
// 全选事
|
|
30
|
+
return /*#__PURE__*/_jsx(AtomCheckbox, _objectSpread({
|
|
31
|
+
options: data,
|
|
32
|
+
loading: loading
|
|
33
|
+
}, checkProps));
|
|
34
|
+
}
|
package/es/atom/check.js
CHANGED
|
@@ -10,49 +10,84 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
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; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { useState } from 'react';
|
|
13
|
+
import { Checkbox, Divider, Popover } from 'antd';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
16
|
import { classAtomPrefix } from '.';
|
|
17
|
+
import { CcsAtom } from '..';
|
|
18
|
+
import useFieldOptions from "./useFieldOptions";
|
|
17
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
20
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
22
|
var CheckboxGroup = Checkbox.Group;
|
|
21
23
|
export default function AtomCheckbox(props) {
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
+
var style = props.style,
|
|
25
|
+
value = props.value,
|
|
26
|
+
className = props.className,
|
|
27
|
+
loading = props.loading,
|
|
28
|
+
showAll = props.showAll,
|
|
29
|
+
popoverMode = props.popoverMode,
|
|
24
30
|
_props$options = props.options,
|
|
25
31
|
options = _props$options === void 0 ? [] : _props$options,
|
|
26
32
|
_props$defaultChecked = props.defaultCheckedKeys,
|
|
27
|
-
defaultCheckedKeys = _props$defaultChecked === void 0 ? [] : _props$defaultChecked
|
|
33
|
+
defaultCheckedKeys = _props$defaultChecked === void 0 ? [] : _props$defaultChecked,
|
|
34
|
+
fieldNames = props.fieldNames,
|
|
35
|
+
selectedRef = props.selectedRef;
|
|
36
|
+
|
|
37
|
+
// 是否受控
|
|
38
|
+
var hasValue = ('value' in props);
|
|
28
39
|
var _useState = useState(defaultCheckedKeys),
|
|
29
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
41
|
checkedList = _useState2[0],
|
|
31
42
|
setCheckedList = _useState2[1];
|
|
32
43
|
|
|
44
|
+
// 当前选中项
|
|
45
|
+
var checkedKeys = hasValue ? value : checkedList;
|
|
46
|
+
|
|
47
|
+
// 选项
|
|
48
|
+
var selectOptions = useFieldOptions(options, {
|
|
49
|
+
fieldNames: fieldNames
|
|
50
|
+
}) || [];
|
|
51
|
+
|
|
33
52
|
// 选中改变事件
|
|
34
53
|
var onChange = function onChange(keys) {
|
|
35
54
|
var _props$onChange;
|
|
36
|
-
setCheckedList(keys);
|
|
55
|
+
if (!hasValue) setCheckedList(keys);
|
|
37
56
|
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, keys);
|
|
57
|
+
if (selectedRef) selectedRef.current = selectOptions.filter(function (option) {
|
|
58
|
+
var value = _typeof(option) === 'object' ? option.value : option;
|
|
59
|
+
return keys.includes(value);
|
|
60
|
+
});
|
|
38
61
|
};
|
|
39
62
|
|
|
63
|
+
// selectedRef 默认已选择的数据
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
if (!selectedRef) return;
|
|
66
|
+
var defaultKeys = hasValue ? value : defaultCheckedKeys;
|
|
67
|
+
if (defaultKeys && defaultKeys.length > 0) {
|
|
68
|
+
selectedRef.current = selectOptions.filter(function (option) {
|
|
69
|
+
var value = _typeof(option) === 'object' ? option.value : option;
|
|
70
|
+
return defaultKeys.includes(value);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}, [selectOptions]);
|
|
74
|
+
|
|
40
75
|
// 全选事件
|
|
41
76
|
var onCheckAllChange = function onCheckAllChange(e) {
|
|
42
|
-
var
|
|
43
|
-
var keys = e.target.checked ? options.map(function (o) {
|
|
77
|
+
var keys = e.target.checked ? selectOptions.map(function (o) {
|
|
44
78
|
return _typeof(o) === 'object' ? o.value : o;
|
|
45
79
|
}) : [];
|
|
46
|
-
|
|
47
|
-
(_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 || _props$onChange2.call(props, keys);
|
|
80
|
+
onChange(keys);
|
|
48
81
|
};
|
|
49
|
-
|
|
50
|
-
|
|
82
|
+
|
|
83
|
+
// 渲染全选
|
|
84
|
+
var renderAll = function renderAll() {
|
|
85
|
+
if (showAll === false || !(selectOptions !== null && selectOptions !== void 0 && selectOptions.length)) return;
|
|
51
86
|
|
|
52
87
|
// 全选
|
|
53
|
-
var checkAll =
|
|
88
|
+
var checkAll = selectOptions.length === checkedKeys.length;
|
|
54
89
|
// 半选
|
|
55
|
-
var indeterminate =
|
|
90
|
+
var indeterminate = checkedKeys.length > 0 && checkedKeys.length < selectOptions.length;
|
|
56
91
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
57
92
|
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
58
93
|
indeterminate: indeterminate,
|
|
@@ -66,21 +101,20 @@ export default function AtomCheckbox(props) {
|
|
|
66
101
|
})]
|
|
67
102
|
});
|
|
68
103
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})]
|
|
79
|
-
}),
|
|
80
|
-
children: /*#__PURE__*/_jsx(Button, _objectSpread({
|
|
81
|
-
type: "text",
|
|
82
|
-
icon: /*#__PURE__*/_jsx(SettingOutlined, {})
|
|
83
|
-
}, btnProps))
|
|
84
|
-
})
|
|
104
|
+
var content = /*#__PURE__*/_jsxs(CcsAtom.Spin, {
|
|
105
|
+
spinning: loading === true,
|
|
106
|
+
children: [renderAll(), /*#__PURE__*/_jsx(CheckboxGroup, {
|
|
107
|
+
style: style,
|
|
108
|
+
className: classNames("".concat(classAtomPrefix, "-check-group"), className),
|
|
109
|
+
options: selectOptions,
|
|
110
|
+
value: checkedKeys,
|
|
111
|
+
onChange: onChange
|
|
112
|
+
})]
|
|
85
113
|
});
|
|
114
|
+
if (popoverMode) {
|
|
115
|
+
return /*#__PURE__*/_jsx(Popover, _objectSpread(_objectSpread({}, popoverMode), {}, {
|
|
116
|
+
content: content
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
return content;
|
|
86
120
|
}
|
package/es/atom/ellipsis.js
CHANGED
|
@@ -118,6 +118,7 @@ function Ellipsis(_ref2) {
|
|
|
118
118
|
// 二分量
|
|
119
119
|
var newStepNum = Math.round(dataRef.current.step / 2);
|
|
120
120
|
dataRef.current.step = newStepNum;
|
|
121
|
+
if (!walkingContentRef.current) return;
|
|
121
122
|
var dom = walkingContentRef.current;
|
|
122
123
|
// 内容没有超出最大高度
|
|
123
124
|
if (dom.offsetHeight === dom.scrollHeight) {
|
package/es/atom/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import AtomCheckbox from './check';
|
|
3
|
+
import AtomCheckboxApi from './check-api';
|
|
3
4
|
import AtomFullScreen from './full-screen';
|
|
4
5
|
import './index.less';
|
|
5
6
|
import AtomOperation from './operation';
|
|
6
7
|
import AtomResize from './resize-observer';
|
|
8
|
+
import AtomSpin from './spin';
|
|
7
9
|
import AtomTitle from './title';
|
|
10
|
+
import useApiRequest from './useApiRequest';
|
|
8
11
|
import useComplexState from './useComplexState';
|
|
12
|
+
import useFieldOptions from './useFieldOptions';
|
|
9
13
|
import usePageRequest from './usePageRequest';
|
|
10
14
|
export declare const classAtomPrefix = "ccs-atom";
|
|
11
15
|
/**
|
|
@@ -28,6 +32,8 @@ declare const Atom: {
|
|
|
28
32
|
Operation: typeof AtomOperation;
|
|
29
33
|
/** Checkbox */
|
|
30
34
|
Checkbox: typeof AtomCheckbox;
|
|
35
|
+
/** Checkbox - API方式 */
|
|
36
|
+
CheckboxApi: typeof AtomCheckboxApi;
|
|
31
37
|
/** 全屏 */
|
|
32
38
|
FullScreen: typeof AtomFullScreen;
|
|
33
39
|
/** 标题 */
|
|
@@ -45,15 +51,21 @@ declare const Atom: {
|
|
|
45
51
|
(props: import("../ccs").AtomEllipsisProps): import("react/jsx-runtime").JSX.Element | "";
|
|
46
52
|
displayName: string;
|
|
47
53
|
}>;
|
|
48
|
-
/** 分页请求hooks */
|
|
49
|
-
usePageRequest: typeof usePageRequest;
|
|
50
|
-
/** 多状态管理 */
|
|
51
|
-
useComplexState: typeof useComplexState;
|
|
52
54
|
/** 相对loading */
|
|
53
55
|
Loading: {
|
|
54
56
|
({ loading, loadingTip }: import("../ccs").AtomLoadingProps): import("react/jsx-runtime").JSX.Element | null;
|
|
55
57
|
displayName: string;
|
|
56
58
|
};
|
|
59
|
+
/** Spin */
|
|
60
|
+
Spin: typeof AtomSpin;
|
|
61
|
+
/** 分页请求hooks */
|
|
62
|
+
usePageRequest: typeof usePageRequest;
|
|
63
|
+
/** 多状态管理 */
|
|
64
|
+
useComplexState: typeof useComplexState;
|
|
65
|
+
/** 根据字段名获取选项 */
|
|
66
|
+
useFieldOptions: typeof useFieldOptions;
|
|
67
|
+
/** API请求hooks */
|
|
68
|
+
useApiRequest: typeof useApiRequest;
|
|
57
69
|
displayName: string;
|
|
58
70
|
};
|
|
59
71
|
export default Atom;
|
package/es/atom/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AtomCheckbox from "./check";
|
|
2
|
+
import AtomCheckboxApi from "./check-api";
|
|
2
3
|
import AtomCountdown from "./count-down";
|
|
3
4
|
import AtomEllipsis from "./ellipsis";
|
|
4
5
|
import AtomFilter from "./filter";
|
|
@@ -7,8 +8,11 @@ import "./index.less";
|
|
|
7
8
|
import AtomLoading from "./loading";
|
|
8
9
|
import AtomOperation from "./operation";
|
|
9
10
|
import AtomResize from "./resize-observer";
|
|
11
|
+
import AtomSpin from "./spin";
|
|
10
12
|
import AtomTitle from "./title";
|
|
13
|
+
import useApiRequest from "./useApiRequest";
|
|
11
14
|
import useComplexState from "./useComplexState";
|
|
15
|
+
import useFieldOptions from "./useFieldOptions";
|
|
12
16
|
import usePageRequest from "./usePageRequest";
|
|
13
17
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -30,6 +34,9 @@ Atom.Operation = AtomOperation;
|
|
|
30
34
|
/** Checkbox */
|
|
31
35
|
Atom.Checkbox = AtomCheckbox;
|
|
32
36
|
|
|
37
|
+
/** Checkbox - API方式 */
|
|
38
|
+
Atom.CheckboxApi = AtomCheckboxApi;
|
|
39
|
+
|
|
33
40
|
/** 全屏 */
|
|
34
41
|
Atom.FullScreen = AtomFullScreen;
|
|
35
42
|
|
|
@@ -45,14 +52,23 @@ Atom.Countdown = AtomCountdown;
|
|
|
45
52
|
/** 文本缩略 */
|
|
46
53
|
Atom.Ellipsis = AtomEllipsis;
|
|
47
54
|
|
|
55
|
+
/** 相对loading */
|
|
56
|
+
Atom.Loading = AtomLoading;
|
|
57
|
+
|
|
58
|
+
/** Spin */
|
|
59
|
+
Atom.Spin = AtomSpin;
|
|
60
|
+
|
|
48
61
|
/** 分页请求hooks */
|
|
49
62
|
Atom.usePageRequest = usePageRequest;
|
|
50
63
|
|
|
51
64
|
/** 多状态管理 */
|
|
52
65
|
Atom.useComplexState = useComplexState;
|
|
53
66
|
|
|
54
|
-
/**
|
|
55
|
-
Atom.
|
|
67
|
+
/** 根据字段名获取选项 */
|
|
68
|
+
Atom.useFieldOptions = useFieldOptions;
|
|
69
|
+
|
|
70
|
+
/** API请求hooks */
|
|
71
|
+
Atom.useApiRequest = useApiRequest;
|
|
56
72
|
if (process.env.NODE_ENV !== 'production') {
|
|
57
73
|
Atom.displayName = 'CcsAtom';
|
|
58
74
|
}
|
package/es/atom/index.less
CHANGED
|
@@ -56,11 +56,35 @@
|
|
|
56
56
|
z-index: 9999;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.ccs-atom-check {
|
|
59
|
+
.ccs-atom-check-header {
|
|
60
60
|
display: flex;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 16px;
|
|
64
|
+
|
|
65
|
+
:first-child {
|
|
66
|
+
flex: 0 0 auto;
|
|
67
|
+
}
|
|
68
|
+
:last-child {
|
|
69
|
+
max-width: 200px;
|
|
70
|
+
flex: 1 1 auto;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ccs-atom-check-group {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-flow: column;
|
|
77
|
+
> label {
|
|
78
|
+
> span:first-child {
|
|
79
|
+
flex: 0 0 auto;
|
|
80
|
+
}
|
|
81
|
+
> span:last-child {
|
|
82
|
+
flex: 1 1 auto;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
64
88
|
}
|
|
65
89
|
|
|
66
90
|
.ccs-ellipsis {
|
package/es/atom/spin.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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 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; }
|
|
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; }
|
|
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
7
|
+
import { LoadingOutlined } from '@ant-design/icons';
|
|
8
|
+
import { Spin } from 'antd';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export default function AtomSpin(props) {
|
|
11
|
+
return /*#__PURE__*/_jsx(Spin, _objectSpread({
|
|
12
|
+
indicator: /*#__PURE__*/_jsx(LoadingOutlined, {
|
|
13
|
+
spin: true
|
|
14
|
+
})
|
|
15
|
+
}, props));
|
|
16
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 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; }
|
|
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; }
|
|
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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); } }
|
|
9
|
+
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); }); }; }
|
|
10
|
+
import { useRequest } from 'ahooks';
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
export default function useApiRequest(props) {
|
|
13
|
+
var _ref = props || {},
|
|
14
|
+
service = _ref.service,
|
|
15
|
+
defaultParams = _ref.defaultParams,
|
|
16
|
+
_ref$cache = _ref.cache,
|
|
17
|
+
cache = _ref$cache === void 0 ? {} : _ref$cache;
|
|
18
|
+
var _useRequest = useRequest( /*#__PURE__*/function () {
|
|
19
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22
|
+
case 0:
|
|
23
|
+
if (service) {
|
|
24
|
+
_context.next = 2;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
return _context.abrupt("return", undefined);
|
|
28
|
+
case 2:
|
|
29
|
+
_context.next = 4;
|
|
30
|
+
return service(params);
|
|
31
|
+
case 4:
|
|
32
|
+
return _context.abrupt("return", _context.sent);
|
|
33
|
+
case 5:
|
|
34
|
+
case "end":
|
|
35
|
+
return _context.stop();
|
|
36
|
+
}
|
|
37
|
+
}, _callee);
|
|
38
|
+
}));
|
|
39
|
+
return function (_x) {
|
|
40
|
+
return _ref2.apply(this, arguments);
|
|
41
|
+
};
|
|
42
|
+
}(), _objectSpread({
|
|
43
|
+
manual: true
|
|
44
|
+
}, cache)),
|
|
45
|
+
loading = _useRequest.loading,
|
|
46
|
+
data = _useRequest.data,
|
|
47
|
+
run = _useRequest.run;
|
|
48
|
+
useEffect(function () {
|
|
49
|
+
if (service) run(defaultParams);
|
|
50
|
+
}, [JSON.stringify(defaultParams)]);
|
|
51
|
+
return {
|
|
52
|
+
loading: loading,
|
|
53
|
+
data: data
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectFieldNames } from '../ccs';
|
|
2
|
+
/** 根据字段名获取选项 */
|
|
3
|
+
export default function useFieldOptions(
|
|
4
|
+
/** 选项数据 */
|
|
5
|
+
options: any[],
|
|
6
|
+
/** 额外配置 */
|
|
7
|
+
extra: {
|
|
8
|
+
/** 字段名配置 */
|
|
9
|
+
fieldNames?: SelectFieldNames;
|
|
10
|
+
/** 默认选项 */
|
|
11
|
+
defaultOptions?: any;
|
|
12
|
+
}): any[];
|
|
@@ -0,0 +1,49 @@
|
|
|
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 _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); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
import { useMemo } from 'react';
|
|
9
|
+
import { getDataByNamePath } from "../utils";
|
|
10
|
+
function onIsArray(data) {
|
|
11
|
+
if (Array.isArray(data)) return data;
|
|
12
|
+
return [data];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 根据字段名获取选项 */
|
|
16
|
+
export default function useFieldOptions( /** 选项数据 */
|
|
17
|
+
options, /** 额外配置 */
|
|
18
|
+
extra) {
|
|
19
|
+
var _extra$fieldNames, _extra$fieldNames2;
|
|
20
|
+
var labelField = _toConsumableArray(onIsArray((extra === null || extra === void 0 || (_extra$fieldNames = extra.fieldNames) === null || _extra$fieldNames === void 0 ? void 0 : _extra$fieldNames.label) || ['label']));
|
|
21
|
+
var valueField = _toConsumableArray(onIsArray((extra === null || extra === void 0 || (_extra$fieldNames2 = extra.fieldNames) === null || _extra$fieldNames2 === void 0 ? void 0 : _extra$fieldNames2.value) || ['value']));
|
|
22
|
+
|
|
23
|
+
// 选项
|
|
24
|
+
var selectOptions = useMemo(function () {
|
|
25
|
+
var ops = options || [];
|
|
26
|
+
while (labelField.length > 0 || valueField.length > 0) {
|
|
27
|
+
if (Array.isArray(ops)) {
|
|
28
|
+
ops.forEach(function (r) {
|
|
29
|
+
if (_typeof(r) !== 'object') return;
|
|
30
|
+
r.label = getDataByNamePath(r, labelField);
|
|
31
|
+
r.value = getDataByNamePath(r, valueField);
|
|
32
|
+
});
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
labelField.shift();
|
|
36
|
+
var value = valueField.shift();
|
|
37
|
+
if (value && ops !== undefined) {
|
|
38
|
+
ops = ops[value];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 默认选项
|
|
43
|
+
if (extra !== null && extra !== void 0 && extra.defaultOptions) {
|
|
44
|
+
return Array.isArray(extra === null || extra === void 0 ? void 0 : extra.defaultOptions) ? extra.defaultOptions.concat(ops) : [extra.defaultOptions].concat(ops);
|
|
45
|
+
}
|
|
46
|
+
return ops;
|
|
47
|
+
}, [options]);
|
|
48
|
+
return selectOptions;
|
|
49
|
+
}
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DialogFormRef } from './form';
|
|
|
5
5
|
export type DialogButtonRef = {
|
|
6
6
|
onSetButtons: (e: React.ReactElement) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "
|
|
8
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
9
9
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
10
10
|
formInitialValues: FormProps['initialValues'];
|
|
11
11
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/pro-table/table.js
CHANGED
|
@@ -10,8 +10,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
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; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { SettingOutlined } from '@ant-design/icons';
|
|
13
14
|
import { useUpdateEffect } from 'ahooks';
|
|
14
|
-
import { theme as antTheme, Empty } from 'antd';
|
|
15
|
+
import { theme as antTheme, Button, Empty } from 'antd';
|
|
15
16
|
import { ConfigContext } from 'antd/es/config-provider';
|
|
16
17
|
import classNames from 'classnames';
|
|
17
18
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
@@ -41,7 +42,7 @@ function onDefaultColumnValue(columns) {
|
|
|
41
42
|
value: c.dataIndex
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
|
-
if (c.hidden !== true) {
|
|
45
|
+
if (c.hidden !== true && !!c.dataIndex) {
|
|
45
46
|
defaultValue.columnShowKeys.push(c.dataIndex);
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -411,9 +412,18 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
411
412
|
children: [/*#__PURE__*/_jsx(CcsAtom.FullScreen, {
|
|
412
413
|
parentHtmlId: "ccs-pro-table"
|
|
413
414
|
}), /*#__PURE__*/_jsx(CcsAtom.Checkbox, {
|
|
415
|
+
style: {
|
|
416
|
+
maxHeight: 300
|
|
417
|
+
},
|
|
414
418
|
options: defaultColumnValues.columnOptions,
|
|
415
419
|
defaultCheckedKeys: defaultColumnValues.columnShowKeys,
|
|
416
|
-
|
|
420
|
+
popoverMode: {
|
|
421
|
+
placement: 'bottomRight',
|
|
422
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
423
|
+
type: "text",
|
|
424
|
+
icon: /*#__PURE__*/_jsx(SettingOutlined, {})
|
|
425
|
+
})
|
|
426
|
+
},
|
|
417
427
|
onChange: function onChange(e) {
|
|
418
428
|
var _tableRef$current2;
|
|
419
429
|
var hideKeys = defaultColumnValues.columnShowKeys.filter(function (key) {
|