UNPKG

eapp-amis-theme-editor

Version:

amis主题编辑器

53 lines (52 loc) 1.34 kB
/// <reference types="react" /> export interface ContentConfigBody { (onEdit: (config: any) => void): JSX.Element; } export interface ContentConfig { title: string; description?: string; className?: string; body: { title: string; subtitle?: any; action?: { editButton?: any; colorEditButton?: any; addButton?: any; configButton?: any; }; body: { title?: string; action?: { editButton?: any; addButton?: any; }; body: ContentConfigBody; }[] | ContentConfigBody; }[]; } export interface BorderContentConfig { title: string; className?: string; body: { title: string; action?: { editButton?: any; addButton?: any; }; body: { title: string; action?: { editButton?: any; addButton?: any; }; body: ContentConfigBody; }[] | ContentConfigBody; }[]; } export interface BaseContentProps { config: ContentConfig; handleSetConfig: (value: any) => void; } declare const baseContent: (config: ContentConfig, handleSetConfig: (value: any) => void) => JSX.Element; export default baseContent;