jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
21 lines (20 loc) • 712 B
TypeScript
import React from 'react';
import type { LazyComponentProps } from './types';
interface LazyComponentState {
visible: boolean;
component?: React.ComponentType;
}
export declare class LazyComponent extends React.Component<LazyComponentProps, LazyComponentState> {
static defaultProps: Partial<LazyComponentProps>;
mounted: boolean;
constructor(props: LazyComponentProps);
componentDidMount(): void;
componentWillUnmount(): void;
handleVisibleChange: (visible: boolean) => void;
render(): React.ReactNode;
}
/**
* 很奇怪的问题,react-json-view import 有些情况下 mod.default 才是 esModule
*/
export declare function importLazyComponent(mod: any): any;
export {};