UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

19 lines (18 loc) 764 B
import type { PickClassStyleType, RendererFC, RendererProps, SchemaClassName } from 'jamis-core'; import type { SchemaCollection, WrapperSchema } from '../types'; export interface WrapperProps extends Pick<RendererProps, 'data' | 'render'>, Omit<WrapperSchema, 'className' | 'type' | 'body'>, PickClassStyleType { $spec?: RendererProps['$spec']; body?: SchemaCollection; className?: SchemaClassName; children?: JSX.Element | ((props?: any) => JSX.Element); } export declare const Wrapper: { (props: WrapperProps): JSX.Element | null; defaultProps: { className: string; size: string; bordered: boolean; }; }; export default Wrapper; export declare const WrapperRenderer: RendererFC<WrapperProps & RendererProps>;