@visactor/openinula-vtable
Version:
The openinula version of VTable
11 lines (10 loc) • 475 B
TypeScript
import Inula from 'openinula';
export interface ContainerProps {
style?: Inula.CSSProperties;
className?: string;
width?: number | string;
height?: number | string;
}
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: typeof Inula.Component<any, CompProps>, name?: string, getProps?: (props: any) => CompProps): Inula.ExoticComponent<Inula.PropsOmitRef<CompProps & Props>> & Inula.Attributes & {
ref?: Inula.Ref<any>;
};