UNPKG

@zzdadelu/schema-builder

Version:

通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成

34 lines (33 loc) 691 B
interface TProperties { [key: string]: any; } interface TLogo { title?: string; image?: string; href?: string; } interface TSchema { "type": "object"; "properties": TProperties; } interface TToolBtn { text: string; order: number; onClick: (schema: TSchema) => void; } export interface TSchemaBuilder { logo?: TLogo; importBtn?: boolean; exportBtn?: boolean; clearBtn?: boolean | TToolBtn; saveBtn?: boolean | TToolBtn; pubBtn?: boolean | TToolBtn; extraBtns?: TToolBtn[]; defaultValue?: TSchema; widgets?: any; settings?: any; editorWidgets?: any; onMount?: () => void; [key: string]: any; } export {};