@ccs-ui/rc-pro 2.5.1 → 2.5.3-alpha.1
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/{1449.2b56219b.async.js → 1449.3a2387fb.async.js} +1 -1
- package/docs-dist/404.html +2 -2
- package/docs-dist/{9510.92d7c9e5.async.js → 9510.3d1b61cd.async.js} +1 -1
- package/docs-dist/9834.d1f97a4f.async.js +640 -0
- package/docs-dist/{atom__demos.31900661.async.js → atom__demos.4d64df25.async.js} +1 -1
- package/docs-dist/{button__demos.a0dc2689.async.js → button__demos.f17befb8.async.js} +1 -1
- package/docs-dist/docs__rc-pro-ai__atom__index.md.942ccda4.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__context__index.md.df089254.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__date-picker__index.md.af67f228.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__dialog__index.md.616d6884.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__editor__index.md.6298cebc.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__form__index.md.f32adf60.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__page-layout__index.md.1c87e282.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__pro-table__index.md.4298ebad.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__pro-tabs__index.md.c7c420e8.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__result__index.md.87ed1d0e.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__status-tag__index.md.fbf8f941.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__table__index.md.5b098fc9.async.js +1 -0
- package/docs-dist/docs__rc-pro-ai__upload__index.md.a948e36e.async.js +26 -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.230ecd19.async.js → docs__rc-pro__atom___api__index.md.5bb57f6c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.227d17c1.async.js → docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.119331d5.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.51dbc720.async.js → docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.96ead252.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.9e35493e.async.js → docs__rc-pro__atom___api__interfaces__AtomEllipsisProps.md.ca38877c.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.14a33d4e.async.js +1 -0
- 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.d2ad8fde.async.js +1 -0
- 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.c3348685.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.38ee1531.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.dc238e47.async.js → docs__rc-pro__context___api__type-aliases__PageContextType.md.3ceb31fe.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.9e0d96d5.async.js → docs__rc-pro__editor___api__type-aliases__RichImageUpload.md.3b24af26.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.94f74b08.async.js → docs__rc-pro__page-layout___api__index.md.4e55c6ab.async.js} +1 -1
- package/docs-dist/docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.adfbcc59.async.js +1 -0
- package/docs-dist/{docs__rc-pro__page-layout___api__type-aliases__KeepAliveTabsProps.md.7007d1ab.async.js → docs__rc-pro__page-layout___api__type-aliases__KeepAliveTabsProps.md.a549a4d1.async.js} +1 -1
- package/docs-dist/docs__rc-pro__page-layout___api__type-aliases__LocalRouterProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__page-layout___api__type-aliases__LocalRouterProps.md.3c48f046.async.js +1 -0
- package/docs-dist/docs__rc-pro__page-layout___api__type-aliases__MenuType.md.84490b64.async.js +1 -0
- 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.645319a2.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.a767997f.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.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.18f6af8f.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.06cc2867.async.js → docs__rc-pro__select___api__index.md.ea90d7dc.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__interfaces__ApiRequestProps.md.bc82d4bf.async.js → docs__rc-pro__select___api__interfaces__ApiRequestProps.md.7c3d76aa.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__interfaces__RequestType.md.6390cd39.async.js → docs__rc-pro__select___api__interfaces__RequestType.md.f32ab78c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.f74902be.async.js → docs__rc-pro__select___api__type-aliases__ApiSelectProps.md.a0e4d882.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__CacheType.md.277a70e1.async.js → docs__rc-pro__select___api__type-aliases__CacheType.md.8fe52a8e.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__SelectFieldNames.md.0fb5ddbb.async.js → docs__rc-pro__select___api__type-aliases__SelectFieldNames.md.69e4fe73.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__select___api__type-aliases__SelectProps.md.90e2489a.async.js → docs__rc-pro__select___api__type-aliases__SelectProps.md.539fc906.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__upload___api__index.md.39482843.async.js → docs__rc-pro__upload___api__index.md.aaa30fc2.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.705eaffe.async.js → docs__rc-pro__upload___api__type-aliases__FileUploadList.md.3c340aa3.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__upload___api__type-aliases__FileValue.md.2536b7ad.async.js → docs__rc-pro__upload___api__type-aliases__FileValue.md.4ef9f023.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.c7e15975.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadRequest.md.39b0f7e5.async.js +1 -0
- 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/guide/index.html +2 -2
- package/docs-dist/index.html +2 -2
- package/docs-dist/meta__docs.ab89c647.async.js +292 -0
- package/docs-dist/{meta__packages.e5126d73.async.js → meta__packages.fec4c702.async.js} +389 -174
- package/docs-dist/{nm__dumi__theme-default__layouts__DocLayout__index.e556091c.async.js → nm__dumi__theme-default__layouts__DocLayout__index.6b10eb13.async.js} +1 -1
- package/docs-dist/{packages__rc-pro__src__pro-table__index.md.4b09526d.async.js → packages__rc-pro__src__pro-table__index.md.b9713004.async.js} +3 -3
- package/docs-dist/plugins/index.html +2 -2
- package/docs-dist/preload_helper.1e7bb8e4.js +1 -0
- package/docs-dist/pro-table__demos.e398c068.async.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/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/SinglePageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/type-aliases/KeepAliveTabsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/type-aliases/LocalRouterProps.md/index.html +15 -0
- 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 +2 -2
- package/docs-dist/rc-pro/select/_api/interfaces/RequestType.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/SelectFieldNames.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 +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/FileValue.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-pro-ai/aj-captcha/index.html +2 -2
- package/docs-dist/rc-pro-ai/atom/index.html +2 -2
- package/docs-dist/rc-pro-ai/auth/index.html +2 -2
- package/docs-dist/rc-pro-ai/button/index.html +2 -2
- package/docs-dist/rc-pro-ai/cascader/index.html +2 -2
- package/docs-dist/rc-pro-ai/color-picker/index.html +2 -2
- package/docs-dist/rc-pro-ai/context/index.html +2 -2
- package/docs-dist/rc-pro-ai/date-picker/index.html +2 -2
- package/docs-dist/rc-pro-ai/dialog/index.html +2 -2
- package/docs-dist/rc-pro-ai/editor/index.html +2 -2
- package/docs-dist/rc-pro-ai/form/index.html +2 -2
- package/docs-dist/rc-pro-ai/hooks/index.html +2 -2
- package/docs-dist/rc-pro-ai/index.html +2 -2
- package/docs-dist/rc-pro-ai/page-layout/index.html +2 -2
- package/docs-dist/rc-pro-ai/pro-table/index.html +2 -2
- package/docs-dist/rc-pro-ai/pro-tabs/index.html +2 -2
- package/docs-dist/rc-pro-ai/result/index.html +2 -2
- package/docs-dist/rc-pro-ai/select/index.html +2 -2
- package/docs-dist/rc-pro-ai/status-tag/index.html +2 -2
- package/docs-dist/rc-pro-ai/table/index.html +2 -2
- package/docs-dist/rc-pro-ai/time-picker/index.html +2 -2
- package/docs-dist/rc-pro-ai/upload/index.html +2 -2
- package/docs-dist/rc-pro-ai/water-mark/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/{umi.9f9e62ae.js → umi.c831dc34.js} +24 -24
- package/docs-dist/upload__demos.86b366ea.async.js +1 -0
- 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 +2 -2
- 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-horizontal/index.html +15 -0
- 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 +7 -1
- package/es/atom/filter.d.ts +3 -0
- package/es/atom/filter.js +78 -50
- package/es/atom/index.d.ts +3 -0
- package/es/atom/usePageRequest.d.ts +1 -1
- package/es/atom/usePageRequest.js +156 -151
- package/es/config.js +2 -3
- package/es/editor/lexical/base/index.js +1 -1
- package/es/editor/lexical/base/toolbar/index.js +1 -1
- package/es/page-layout/_api.d.ts +15 -2
- package/es/page-layout/keep-alive/index.d.ts +1 -1
- package/es/page-layout/keep-alive/index.js +20 -7
- package/es/page-layout/keep-alive/page.d.ts +6 -4
- package/es/page-layout/keep-alive/page.js +16 -13
- package/es/page-layout/single-page/index.d.ts +1 -1
- package/es/page-layout/single-page/index.js +28 -6
- package/es/page-layout/single-page/page.d.ts +6 -4
- package/es/page-layout/single-page/page.js +17 -10
- package/es/pro-table/_api.d.ts +11 -1
- package/es/pro-table/table.js +34 -12
- package/es/table/index.js +4 -4
- package/es/upload/_api.d.ts +17 -1
- package/es/upload/index.d.ts +1 -1
- package/es/upload/index.js +10 -1
- package/package.json +2 -3
- package/docs-dist/6025.e7f5a35a.async.js +0 -580
- package/docs-dist/docs__rc-pro-ai__atom__index.md.030c0136.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__context__index.md.24ecfb30.async.js +0 -11
- package/docs-dist/docs__rc-pro-ai__date-picker__index.md.fd35f807.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__dialog__index.md.057275c1.async.js +0 -10
- package/docs-dist/docs__rc-pro-ai__editor__index.md.a5cd2af9.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__form__index.md.7ff35cfa.async.js +0 -19
- package/docs-dist/docs__rc-pro-ai__page-layout__index.md.5c9b30ef.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__pro-table__index.md.15e559c3.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__pro-tabs__index.md.dc71ea65.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__result__index.md.9d4e1160.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__status-tag__index.md.1827a73a.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__table__index.md.c2629719.async.js +0 -1
- package/docs-dist/docs__rc-pro-ai__upload__index.md.60e9d8f4.async.js +0 -26
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomFilterProps.md.4385a29e.async.js +0 -1
- package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomPageRequestProps.md.7fd18372.async.js +0 -1
- package/docs-dist/docs__rc-pro__index.md.828ce524.async.js +0 -1
- package/docs-dist/docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.2b6b46c3.async.js +0 -1
- package/docs-dist/docs__rc-pro__page-layout___api__type-aliases__MenuType.md.4411db0f.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__ProTableProps.md.11bee76b.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__interfaces__TableProps.md.a0a0f608.async.js +0 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.5748b99f.async.js +0 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadRequest.md.04c0e604.async.js +0 -1
- package/docs-dist/meta__docs.69fbadbe.async.js +0 -329
- package/docs-dist/preload_helper.7be66940.js +0 -1
- package/docs-dist/pro-table__demos.6de5e95e.async.js +0 -1
- package/docs-dist/upload__demos.003b4cc5.async.js +0 -1
package/es/atom/_api.d.ts
CHANGED
|
@@ -48,12 +48,18 @@ export type AtomFilterInstance = {
|
|
|
48
48
|
export type AtomFilterProps = PropsWithCss & {
|
|
49
49
|
/** 查询方法 */
|
|
50
50
|
onSearch?: () => void;
|
|
51
|
+
/** 查询条件改变方法 */
|
|
52
|
+
onValuesChange?: (values: any) => void;
|
|
53
|
+
/** 隐藏查询按钮 */
|
|
54
|
+
hideSearchBtn?: boolean;
|
|
51
55
|
/** filter ref 获取查询条件数据方法 */
|
|
52
56
|
filterRef?: React.RefObject<AtomFilterInstance>;
|
|
53
57
|
/** 展开查询条件 @default false */
|
|
54
58
|
expandForm?: boolean;
|
|
55
59
|
/** 查询form 初始值 */
|
|
56
60
|
formInitValues?: FormProps['initialValues'];
|
|
61
|
+
/** 查询布局, horizontal: 水平布局, auto: 自动布局 @default auto */
|
|
62
|
+
formLayout?: 'horizontal' | 'auto';
|
|
57
63
|
/** 查询条件集合 */
|
|
58
64
|
formItems?: AtomFormItems;
|
|
59
65
|
/** form item label 宽度 */
|
|
@@ -122,7 +128,7 @@ export type AtomPageRequestProps<RecordType> = {
|
|
|
122
128
|
/** 接口字段指定 */
|
|
123
129
|
fieldNames?: PageFieldNames;
|
|
124
130
|
/** 获取查询条件的方法 */
|
|
125
|
-
getFormValues?: () => Promise<any
|
|
131
|
+
getFormValues?: () => Promise<any> | (() => any);
|
|
126
132
|
/** 列过滤和排序字段 */
|
|
127
133
|
onFilterOrder?: () => {
|
|
128
134
|
filters: RecordType;
|
package/es/atom/filter.d.ts
CHANGED
|
@@ -2,9 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { AtomFilterInstance } from './_api';
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<import("../ccs").PropsWithCss & {
|
|
4
4
|
onSearch?: (() => void) | undefined;
|
|
5
|
+
onValuesChange?: ((values: any) => void) | undefined;
|
|
6
|
+
hideSearchBtn?: boolean | undefined;
|
|
5
7
|
filterRef?: React.RefObject<AtomFilterInstance> | undefined;
|
|
6
8
|
expandForm?: boolean | undefined;
|
|
7
9
|
formInitValues?: import("antd/es/form/interface").Store | undefined;
|
|
10
|
+
formLayout?: "horizontal" | "auto" | undefined;
|
|
8
11
|
formItems?: import("./_api").AtomFormItems | undefined;
|
|
9
12
|
formItemLabelWidth?: string | number | undefined;
|
|
10
13
|
extra?: React.ReactNode;
|
package/es/atom/filter.js
CHANGED
|
@@ -2,11 +2,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
var _excluded = ["onFormat"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
|
+
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; }
|
|
5
6
|
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; }
|
|
6
7
|
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; }
|
|
7
8
|
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; }
|
|
8
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
10
|
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); }
|
|
11
|
+
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); } }
|
|
12
|
+
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
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
14
|
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."); }
|
|
12
15
|
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); }
|
|
@@ -32,10 +35,15 @@ function AtomFilter(props, ref) {
|
|
|
32
35
|
expandForm = _props$expandForm === void 0 ? false : _props$expandForm,
|
|
33
36
|
_props$formItems = props.formItems,
|
|
34
37
|
formItems = _props$formItems === void 0 ? [] : _props$formItems,
|
|
38
|
+
requestParam = props.requestParam,
|
|
39
|
+
hideSearchBtn = props.hideSearchBtn,
|
|
40
|
+
_props$formLayout = props.formLayout,
|
|
41
|
+
formLayout = _props$formLayout === void 0 ? 'auto' : _props$formLayout,
|
|
35
42
|
formInitValues = props.formInitValues,
|
|
36
43
|
formItemLabelWidth = props.formItemLabelWidth,
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
onSearch = props.onSearch,
|
|
45
|
+
onValuesChange = props.onValuesChange;
|
|
46
|
+
var isAutoLayout = formLayout === 'auto';
|
|
39
47
|
var classPrefix = "".concat(classAtomPrefix, "-filter");
|
|
40
48
|
var _Form$useForm = Form.useForm(),
|
|
41
49
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -71,33 +79,48 @@ function AtomFilter(props, ref) {
|
|
|
71
79
|
}, [hasMore]);
|
|
72
80
|
|
|
73
81
|
// 构建查询条件:表单数据、请求额外参数、分页参数、其他参数
|
|
74
|
-
var getFormValues = function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
var getFormValues = /*#__PURE__*/function () {
|
|
83
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
84
|
+
var formValues, _delField;
|
|
85
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
86
|
+
while (1) switch (_context.prev = _context.next) {
|
|
87
|
+
case 0:
|
|
88
|
+
_context.next = 2;
|
|
89
|
+
return form.validateFields();
|
|
90
|
+
case 2:
|
|
91
|
+
formValues = _context.sent;
|
|
92
|
+
// 删除无意义字段
|
|
93
|
+
if (formValues) {
|
|
94
|
+
_delField = Object.keys(formValues).filter(function (k) {
|
|
95
|
+
return k.startsWith('_') && k.endsWith('_');
|
|
96
|
+
});
|
|
97
|
+
if (_delField.length > 0) {
|
|
98
|
+
_delField.forEach(function (d) {
|
|
99
|
+
return delete formValues[d];
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
89
103
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
// 格式化条件,格式化结果数据
|
|
105
|
+
Object.keys(formValues).forEach(function (k) {
|
|
106
|
+
if (formValues[k] !== undefined) {
|
|
107
|
+
var s = formItems.find(function (f) {
|
|
108
|
+
return f.name === k;
|
|
109
|
+
});
|
|
110
|
+
if (s !== null && s !== void 0 && s.onFormat) formValues[k] = s.onFormat(formValues[k]);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return _context.abrupt("return", _objectSpread(_objectSpread(_objectSpread({}, requestParam), formInitValues), formValues));
|
|
114
|
+
case 6:
|
|
115
|
+
case "end":
|
|
116
|
+
return _context.stop();
|
|
117
|
+
}
|
|
118
|
+
}, _callee);
|
|
119
|
+
}));
|
|
120
|
+
return function getFormValues() {
|
|
121
|
+
return _ref.apply(this, arguments);
|
|
122
|
+
};
|
|
123
|
+
}();
|
|
101
124
|
useImperativeHandle(ref, function () {
|
|
102
125
|
return {
|
|
103
126
|
getFormValues: getFormValues,
|
|
@@ -163,20 +186,40 @@ function AtomFilter(props, ref) {
|
|
|
163
186
|
return setIsExpand(!isExpand);
|
|
164
187
|
},
|
|
165
188
|
children: isExpand ? '收起' : '展开'
|
|
166
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
189
|
+
}), hideSearchBtn !== true && /*#__PURE__*/_jsx(Button, {
|
|
167
190
|
type: "primary",
|
|
168
191
|
htmlType: "submit",
|
|
169
192
|
children: "\u67E5\u8BE2"
|
|
170
193
|
}), extra]
|
|
171
194
|
});
|
|
172
|
-
var formStyles = {
|
|
195
|
+
var formStyles = isAutoLayout ? {
|
|
173
196
|
flexWrap: isExpand ? 'wrap' : 'nowrap'
|
|
197
|
+
} : {
|
|
198
|
+
flexWrap: 'wrap',
|
|
199
|
+
gap: 10
|
|
174
200
|
};
|
|
201
|
+
|
|
202
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
203
|
+
var renderItems = formItems.map(function (_ref2) {
|
|
204
|
+
var onFormat = _ref2.onFormat,
|
|
205
|
+
item = _objectWithoutProperties(_ref2, _excluded);
|
|
206
|
+
return /*#__PURE__*/_jsx(CcsForm.Item, _objectSpread(_objectSpread(_objectSpread({}, item), formItemLabelWidth ? {
|
|
207
|
+
label: /*#__PURE__*/_jsx("div", {
|
|
208
|
+
style: {
|
|
209
|
+
width: formItemLabelWidth
|
|
210
|
+
},
|
|
211
|
+
children: item.label
|
|
212
|
+
})
|
|
213
|
+
} : undefined), {}, {
|
|
214
|
+
className: isAutoLayout ? "".concat(classPrefix, "-form-item") : '',
|
|
215
|
+
children: item.value || item.children
|
|
216
|
+
}), item.name);
|
|
217
|
+
});
|
|
175
218
|
return /*#__PURE__*/_jsx(ProBaseItem, {
|
|
176
219
|
style: style,
|
|
177
220
|
className: className,
|
|
178
221
|
children: (formItems.length > 0 || onSearch) && /*#__PURE__*/_jsxs(_Fragment, {
|
|
179
|
-
children: [/*#__PURE__*/_jsx(CcsAtom.Resize, {
|
|
222
|
+
children: [isAutoLayout && /*#__PURE__*/_jsx(CcsAtom.Resize, {
|
|
180
223
|
targetRef: formItemsRef,
|
|
181
224
|
onResize: resizeFn
|
|
182
225
|
}), /*#__PURE__*/_jsxs(Form, {
|
|
@@ -186,7 +229,8 @@ function AtomFilter(props, ref) {
|
|
|
186
229
|
layout: "inline",
|
|
187
230
|
style: formStyles,
|
|
188
231
|
preserve: false,
|
|
189
|
-
|
|
232
|
+
onValuesChange: onValuesChange,
|
|
233
|
+
children: [isAutoLayout ? /*#__PURE__*/_jsx("div", {
|
|
190
234
|
style: {
|
|
191
235
|
height: isExpand ? 'auto' : controlHeight
|
|
192
236
|
},
|
|
@@ -194,30 +238,14 @@ function AtomFilter(props, ref) {
|
|
|
194
238
|
children: /*#__PURE__*/_jsxs("div", {
|
|
195
239
|
className: "".concat(classPrefix, "-").concat(isExpand && hasMore ? 'expand' : 'collapse'),
|
|
196
240
|
ref: formItemsRef,
|
|
197
|
-
children: [
|
|
198
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
199
|
-
formItems.map(function (_ref) {
|
|
200
|
-
var onFormat = _ref.onFormat,
|
|
201
|
-
item = _objectWithoutProperties(_ref, _excluded);
|
|
202
|
-
return /*#__PURE__*/_jsx(CcsForm.Item, _objectSpread(_objectSpread(_objectSpread({}, item), formItemLabelWidth ? {
|
|
203
|
-
label: /*#__PURE__*/_jsx("div", {
|
|
204
|
-
style: {
|
|
205
|
-
width: formItemLabelWidth
|
|
206
|
-
},
|
|
207
|
-
children: item.label
|
|
208
|
-
})
|
|
209
|
-
} : undefined), {}, {
|
|
210
|
-
className: "".concat(classPrefix, "-form-item"),
|
|
211
|
-
children: item.value || item.children
|
|
212
|
-
}), item.name);
|
|
213
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
241
|
+
children: [renderItems, /*#__PURE__*/_jsx("div", {
|
|
214
242
|
style: {
|
|
215
243
|
height: 1
|
|
216
244
|
},
|
|
217
245
|
ref: endItemRef
|
|
218
246
|
}), isExpand && renderSearchBtn]
|
|
219
247
|
})
|
|
220
|
-
}), !isExpand && renderSearchBtn]
|
|
248
|
+
}) : renderItems, !isExpand && renderSearchBtn]
|
|
221
249
|
})]
|
|
222
250
|
})
|
|
223
251
|
});
|
package/es/atom/index.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ declare const Atom: {
|
|
|
20
20
|
/** 数据过滤 */
|
|
21
21
|
Filter: import("react").ForwardRefExoticComponent<import("../ccs").PropsWithCss & {
|
|
22
22
|
onSearch?: (() => void) | undefined;
|
|
23
|
+
onValuesChange?: ((values: any) => void) | undefined;
|
|
24
|
+
hideSearchBtn?: boolean | undefined;
|
|
23
25
|
filterRef?: import("react").RefObject<import("../ccs").AtomFilterInstance> | undefined;
|
|
24
26
|
expandForm?: boolean | undefined;
|
|
25
27
|
formInitValues?: import("antd/es/form/interface").Store | undefined;
|
|
28
|
+
formLayout?: "horizontal" | "auto" | undefined;
|
|
26
29
|
formItems?: import("../ccs").AtomFormItems | undefined;
|
|
27
30
|
formItemLabelWidth?: string | number | undefined;
|
|
28
31
|
extra?: import("react").ReactNode;
|
|
@@ -4,6 +4,6 @@ import { AtomPageRequestProps } from './_api';
|
|
|
4
4
|
export default function usePageRequest<RecordType>({ auth, rowKey, pagination, emptyDefaultOne, fieldNames: fieldNamesParams, onEvent, getFormValues, onFilterOrder, onRequestCustom, request: httpRequest, }: AtomPageRequestProps<RecordType>): {
|
|
5
5
|
data: CCS.TableData<RecordType>;
|
|
6
6
|
isAuth: boolean;
|
|
7
|
-
onRequest: (this: any,
|
|
7
|
+
onRequest: (this: any, args_0?: any, record?: RecordType | undefined) => Promise<void>;
|
|
8
8
|
onChangeData: (this: any, data: any) => void;
|
|
9
9
|
};
|
|
@@ -70,166 +70,171 @@ export default function usePageRequest(_ref) {
|
|
|
70
70
|
}, [auth]);
|
|
71
71
|
|
|
72
72
|
// 获取数据
|
|
73
|
-
var onRequest = useMemoizedFn( /*#__PURE__*/function () {
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
_context.next =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
73
|
+
var onRequest = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
74
|
+
var _ref3,
|
|
75
|
+
_ref3$pageNo,
|
|
76
|
+
pageNo,
|
|
77
|
+
_ref3$pageSize,
|
|
78
|
+
pageSize,
|
|
79
|
+
eventType,
|
|
80
|
+
record,
|
|
81
|
+
filterValues,
|
|
82
|
+
fieldNames,
|
|
83
|
+
_ref4,
|
|
84
|
+
_ref4$filters,
|
|
85
|
+
fsFilters,
|
|
86
|
+
_ref4$pageNo,
|
|
87
|
+
fsPageNo,
|
|
88
|
+
_ref4$pageSize,
|
|
89
|
+
fsPageSize,
|
|
90
|
+
_ref4$orderProps,
|
|
91
|
+
fsOrderProps,
|
|
92
|
+
fsQuery,
|
|
93
|
+
params,
|
|
94
|
+
_ref5,
|
|
95
|
+
filters,
|
|
96
|
+
orderProps,
|
|
97
|
+
requestResult,
|
|
98
|
+
dataSource,
|
|
99
|
+
total,
|
|
100
|
+
newData,
|
|
101
|
+
_args = arguments;
|
|
102
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
103
|
+
while (1) switch (_context.prev = _context.next) {
|
|
104
|
+
case 0:
|
|
105
|
+
_ref3 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
|
|
106
|
+
pageNo: Number,
|
|
107
|
+
pageSize: Number,
|
|
108
|
+
eventType: DataEvent
|
|
109
|
+
}, _ref3$pageNo = _ref3.pageNo, pageNo = _ref3$pageNo === void 0 ? 1 : _ref3$pageNo, _ref3$pageSize = _ref3.pageSize, pageSize = _ref3$pageSize === void 0 ? (pagination ? pagination.defaultPageSize : 10) || 10 : _ref3$pageSize, eventType = _ref3.eventType;
|
|
110
|
+
record = _args.length > 1 ? _args[1] : undefined;
|
|
111
|
+
if (!(!isAuth || !httpRequest)) {
|
|
112
|
+
_context.next = 5;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
onEvent === null || onEvent === void 0 || onEvent(eventType);
|
|
116
|
+
return _context.abrupt("return");
|
|
117
|
+
case 5:
|
|
118
|
+
_context.next = 7;
|
|
119
|
+
return getFormValues === null || getFormValues === void 0 ? void 0 : getFormValues();
|
|
120
|
+
case 7:
|
|
121
|
+
_context.t0 = _context.sent;
|
|
122
|
+
if (_context.t0) {
|
|
123
|
+
_context.next = 10;
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
_context.t0 = {};
|
|
127
|
+
case 10:
|
|
128
|
+
filterValues = _context.t0;
|
|
129
|
+
// 接口字段指定
|
|
130
|
+
fieldNames = _objectSpread(_objectSpread({}, globalFieldNames), fieldNamesParams); // 请求字段
|
|
131
|
+
_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; // 构建请求参数
|
|
132
|
+
params = {};
|
|
133
|
+
if (fsQuery && fsQuery.length > 0) {
|
|
134
|
+
onSetObj(params, _toConsumableArray(fsQuery), filterValues);
|
|
135
|
+
} else {
|
|
136
|
+
params = filterValues;
|
|
137
|
+
}
|
|
138
|
+
if (pagination !== false) {
|
|
139
|
+
// 分页
|
|
140
|
+
onSetObj(params, _toConsumableArray(fsPageNo), pageNo);
|
|
141
|
+
onSetObj(params, _toConsumableArray(fsPageSize), pageSize);
|
|
142
|
+
}
|
|
137
143
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
// 列过滤或排序参数
|
|
145
|
+
_ref5 = (onFilterOrder === null || onFilterOrder === void 0 ? void 0 : onFilterOrder()) || {}, filters = _ref5.filters, orderProps = _ref5.orderProps;
|
|
146
|
+
if (filters && Object.keys(filters).length > 0) {
|
|
147
|
+
onSetObj(params, _toConsumableArray(fsFilters), filters);
|
|
148
|
+
}
|
|
149
|
+
if (orderProps && orderProps.length > 0) {
|
|
150
|
+
onSetObj(params, _toConsumableArray(fsOrderProps), orderProps);
|
|
151
|
+
}
|
|
146
152
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
// 异步树
|
|
154
|
+
if (!onRequestCustom) {
|
|
155
|
+
_context.next = 22;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
onRequestCustom(eventType, params.query || params, record);
|
|
159
|
+
return _context.abrupt("return");
|
|
160
|
+
case 22:
|
|
161
|
+
// 事件回调,请求中
|
|
162
|
+
onEvent === null || onEvent === void 0 || onEvent(eventType, {
|
|
163
|
+
loading: true,
|
|
164
|
+
params: params
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// 发起请求
|
|
168
|
+
setData(function (d) {
|
|
169
|
+
return _objectSpread(_objectSpread({}, d), {}, {
|
|
170
|
+
loading: true
|
|
159
171
|
});
|
|
172
|
+
});
|
|
173
|
+
_context.next = 26;
|
|
174
|
+
return httpRequest(params);
|
|
175
|
+
case 26:
|
|
176
|
+
requestResult = _context.sent;
|
|
177
|
+
// 事件回调,请求完成
|
|
178
|
+
onEvent === null || onEvent === void 0 || onEvent(eventType, {
|
|
179
|
+
loading: false,
|
|
180
|
+
params: params,
|
|
181
|
+
data: requestResult
|
|
182
|
+
});
|
|
160
183
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
184
|
+
// 请求结果
|
|
185
|
+
if (!requestResult) {
|
|
186
|
+
_context.next = 38;
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
// 获取table数据
|
|
190
|
+
dataSource = getDataByNamePath(requestResult, fieldNames.dataSource); // 默认添加一条数据
|
|
191
|
+
if (emptyDefaultOne && dataSource && dataSource.length === 0) {
|
|
192
|
+
dataSource.push(_defineProperty({}, rowKey || 'id', '0'));
|
|
193
|
+
}
|
|
194
|
+
// 数据总数
|
|
195
|
+
total = getDataByNamePath(requestResult, fieldNames.total);
|
|
196
|
+
if (!(total === undefined || dataSource === undefined)) {
|
|
197
|
+
_context.next = 36;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
newData = {
|
|
201
|
+
dataSource: dataSource,
|
|
202
|
+
pageSize: pageSize,
|
|
203
|
+
current: pageNo,
|
|
204
|
+
total: total,
|
|
205
|
+
loading: false
|
|
206
|
+
};
|
|
207
|
+
setData(newData);
|
|
208
|
+
return _context.abrupt("return");
|
|
209
|
+
case 36:
|
|
210
|
+
// 当前页无数据,返回上一页
|
|
211
|
+
if (!dataSource.length && pageNo !== 1) {
|
|
212
|
+
onRequest({
|
|
213
|
+
pageNo: pageNo - 1,
|
|
214
|
+
eventType: DataEvent.Reload
|
|
166
215
|
});
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// 事件回调,请求完成
|
|
172
|
-
onEvent === null || onEvent === void 0 || onEvent(eventType, {
|
|
216
|
+
} else {
|
|
217
|
+
setData({
|
|
218
|
+
current: pageNo,
|
|
219
|
+
pageSize: pageSize,
|
|
173
220
|
loading: false,
|
|
174
|
-
params: params,
|
|
175
|
-
data: requestResult
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
// 请求结果
|
|
179
|
-
if (!requestResult) {
|
|
180
|
-
_context.next = 39;
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
// 获取table数据
|
|
184
|
-
dataSource = getDataByNamePath(requestResult, fieldNames.dataSource); // 默认添加一条数据
|
|
185
|
-
if (emptyDefaultOne && dataSource && dataSource.length === 0) {
|
|
186
|
-
dataSource.push(_defineProperty({}, rowKey || 'id', '0'));
|
|
187
|
-
}
|
|
188
|
-
// 数据总数
|
|
189
|
-
total = getDataByNamePath(requestResult, fieldNames.total);
|
|
190
|
-
if (!(total === undefined || dataSource === undefined)) {
|
|
191
|
-
_context.next = 37;
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
newData = {
|
|
195
221
|
dataSource: dataSource,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
222
|
+
total: total || 0
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return _context.abrupt("return");
|
|
226
|
+
case 38:
|
|
227
|
+
setData(function (d) {
|
|
228
|
+
return _objectSpread(_objectSpread({}, d), {}, {
|
|
199
229
|
loading: false
|
|
200
|
-
};
|
|
201
|
-
setData(newData);
|
|
202
|
-
return _context.abrupt("return");
|
|
203
|
-
case 37:
|
|
204
|
-
// 当前页无数据,返回上一页
|
|
205
|
-
if (!dataSource.length && pageNo !== 1) {
|
|
206
|
-
onRequest(DataEvent.Reload, pageNo - 1);
|
|
207
|
-
} else {
|
|
208
|
-
setData({
|
|
209
|
-
current: pageNo,
|
|
210
|
-
pageSize: pageSize,
|
|
211
|
-
loading: false,
|
|
212
|
-
dataSource: dataSource,
|
|
213
|
-
total: total || 0
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
return _context.abrupt("return");
|
|
217
|
-
case 39:
|
|
218
|
-
setData(function (d) {
|
|
219
|
-
return _objectSpread(_objectSpread({}, d), {}, {
|
|
220
|
-
loading: false
|
|
221
|
-
});
|
|
222
230
|
});
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
})
|
|
229
|
-
|
|
230
|
-
return _ref2.apply(this, arguments);
|
|
231
|
-
};
|
|
232
|
-
}());
|
|
231
|
+
});
|
|
232
|
+
case 39:
|
|
233
|
+
case "end":
|
|
234
|
+
return _context.stop();
|
|
235
|
+
}
|
|
236
|
+
}, _callee);
|
|
237
|
+
})));
|
|
233
238
|
|
|
234
239
|
// 更新数据
|
|
235
240
|
var onChangeData = useMemoizedFn(function (data) {
|
package/es/config.js
CHANGED
|
@@ -120,11 +120,10 @@ function AppConfig(_ref) {
|
|
|
120
120
|
},
|
|
121
121
|
children: [children, /*#__PURE__*/_jsx(AppDialog, {}), /*#__PURE__*/_jsx(DialogElementsHolder, {
|
|
122
122
|
ref: dialogHolderRef
|
|
123
|
-
}, "modal-drawer-holder"), (watermark === null || watermark === void 0 ? void 0 : watermark.content) && /*#__PURE__*/_jsx(WaterMarkRelative, {
|
|
124
|
-
content: watermark.content,
|
|
123
|
+
}, "modal-drawer-holder"), (watermark === null || watermark === void 0 ? void 0 : watermark.content) && /*#__PURE__*/_jsx(WaterMarkRelative, _objectSpread({
|
|
125
124
|
fontColor: "rgba(0,0,0,.15)",
|
|
126
125
|
zIndex: 105
|
|
127
|
-
})]
|
|
126
|
+
}, watermark))]
|
|
128
127
|
})
|
|
129
128
|
}));
|
|
130
129
|
}
|
|
@@ -5,7 +5,6 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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
7
|
import { useAppConfig } from "../../..";
|
|
8
|
-
import useInputCss from "../../../hooks/use-input-css";
|
|
9
8
|
import { LexicalComposer } from '@lexical/react/LexicalComposer';
|
|
10
9
|
import { ContentEditable } from '@lexical/react/LexicalContentEditable';
|
|
11
10
|
import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary';
|
|
@@ -14,6 +13,7 @@ import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin';
|
|
|
14
13
|
import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
|
|
15
14
|
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
|
|
16
15
|
import React from 'react';
|
|
16
|
+
import useInputCss from "../../../hooks/use-input-css";
|
|
17
17
|
import ImagesPlugin from "../plugins/image";
|
|
18
18
|
import "./index.less";
|
|
19
19
|
import ToolbarPlugin from "./toolbar";
|