@acrool/react-dialog
Version:
Dialog library based for Reactjs
35 lines (34 loc) • 760 B
TypeScript
import React from 'react';
import { IDialogProps, IRow, THide, TShow, TShowMulti } from './types';
/**
* Global var
*/
export declare let dialog: TShowMulti;
interface IState {
row?: IRow;
}
declare class Dialog extends React.Component<IDialogProps, IState> {
state: IState;
static defaultProps: {
id: string;
};
get typeProps(): IDialogProps & {
id: string;
};
constructor(props: any);
/**
* 顯示 Dialog
* @param args
*/
show: TShow;
/**
* 刪除 Dialog 在 Dom 中
*/
hide: THide;
/**
* 渲染項目
*/
renderDialog: () => import("react/jsx-runtime").JSX.Element | null;
render(): import("react/jsx-runtime").JSX.Element;
}
export default Dialog;