amis-theme-editor
Version:
amis主题编辑器
54 lines (53 loc) • 1.38 kB
TypeScript
/// <reference types="react" />
export interface ContentConfigBody {
(onEdit: (config: any) => void): JSX.Element;
}
export interface ContentConfig {
title: string;
description?: string;
className?: string;
emptyContentClass?: boolean;
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;