first commit
This commit is contained in:
18
frontend/node_modules/@rc-component/portal/es/Portal.d.ts
generated
vendored
Normal file
18
frontend/node_modules/@rc-component/portal/es/Portal.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import * as React from 'react';
|
||||
export declare type ContainerType = Element | DocumentFragment;
|
||||
export declare type GetContainer = string | ContainerType | (() => ContainerType) | false;
|
||||
export interface PortalProps {
|
||||
/** Customize container element. Default will create a div in document.body when `open` */
|
||||
getContainer?: GetContainer;
|
||||
children?: React.ReactNode;
|
||||
/** Show the portal children */
|
||||
open?: boolean;
|
||||
/** Remove `children` when `open` is `false`. Set `false` will not handle remove process */
|
||||
autoDestroy?: boolean;
|
||||
/** Lock screen scroll when open */
|
||||
autoLock?: boolean;
|
||||
/** @private debug name. Do not use in prod */
|
||||
debug?: string;
|
||||
}
|
||||
declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<any>>;
|
||||
export default Portal;
|
||||
Reference in New Issue
Block a user