mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 14:14:57 +00:00
feat: migrate ConflictDetailsDialog to JSON
This commit is contained in:
35
src/components/json-definitions/error-panel-main.json
Normal file
35
src/components/json-definitions/error-panel-main.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"id": "error-panel-main",
|
||||
"type": "div",
|
||||
"className": "h-full flex flex-col bg-background",
|
||||
"children": [
|
||||
{
|
||||
"id": "error-panel-header-wrapper",
|
||||
"type": "ErrorPanelHeader",
|
||||
"bindings": {
|
||||
"props": {
|
||||
"source": "headerProps",
|
||||
"transform": "data"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "error-panel-content",
|
||||
"type": "ScrollArea",
|
||||
"className": "flex-1",
|
||||
"children": [
|
||||
{
|
||||
"id": "error-panel-inner",
|
||||
"type": "div",
|
||||
"className": "p-6",
|
||||
"bindings": {
|
||||
"children": {
|
||||
"source": "contentState",
|
||||
"transform": "data"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
7
src/lib/json-ui/interfaces/error-panel-main.ts
Normal file
7
src/lib/json-ui/interfaces/error-panel-main.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { ProjectFile } from '@/types/project'
|
||||
|
||||
export interface ErrorPanelMainProps {
|
||||
files: ProjectFile[]
|
||||
onFileChange: (fileId: string, content: string) => void
|
||||
onFileSelect: (fileId: string) => void
|
||||
}
|
||||
Reference in New Issue
Block a user