mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 06:04:54 +00:00
28 lines
649 B
TypeScript
28 lines
649 B
TypeScript
import { ComponentType } from '@/types/json-ui'
|
|
|
|
export interface ComponentDefinition {
|
|
type: ComponentType
|
|
label: string
|
|
category: 'layout' | 'input' | 'display' | 'navigation' | 'feedback' | 'data' | 'custom'
|
|
icon: string
|
|
defaultProps?: Record<string, any>
|
|
canHaveChildren?: boolean
|
|
props?: ComponentPropDefinition[]
|
|
events?: ComponentEventDefinition[]
|
|
}
|
|
|
|
export interface ComponentPropDefinition {
|
|
name: string
|
|
type: string
|
|
description: string
|
|
required?: boolean
|
|
defaultValue?: string
|
|
options?: string[]
|
|
supportsBinding?: boolean
|
|
}
|
|
|
|
export interface ComponentEventDefinition {
|
|
name: string
|
|
description: string
|
|
}
|