entity类型声明修改

This commit is contained in:
lxy 2024-07-19 09:53:34 +08:00
parent 8efb35ebcb
commit f0d3909236
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import { ButtonProps as AmButtonProps } from 'antd-mobile';
type AfterCommit = (() => void) | undefined;
type BeforeCommit = (() => boolean | undefined | Promise<boolean | undefined>) | undefined;
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
entity: ED2;
entity: keyof ED2;
action?: string | undefined;
size?: ButtonProps['size'] | AmButtonProps['size'];
block?: boolean | undefined;

View File

@ -210,7 +210,7 @@ export default OakComponent({
T2,
true,
{
entity: ED2;
entity: keyof ED2;
action?: string;
size?: ButtonProps['size'] | AmButtonProps['size'];
block?: boolean;