zarm
Version:
基于 React 的移动端UI库
10 lines (9 loc) • 449 B
TypeScript
import * as React from 'react';
import { ImperativeHandler } from '../utils/dom';
import { PopupProps } from './Popup';
export interface PopupShowProps extends Omit<PopupProps, 'visible' | 'destroy' | 'forceRender' | 'children'> {
content?: React.ReactNode;
}
export declare type PopupShowHandler = Pick<ImperativeHandler, 'close'>;
export declare const show: (props: PopupShowProps) => PopupShowHandler;
export declare const clear: () => void;