mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
feat: remove JSONModelDesigner TSX wrapper (already JSON component)
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
import { PageRenderer } from '@/lib/json-ui/page-renderer'
|
|
||||||
import modelDesignerSchema from '@/config/pages/model-designer.json'
|
|
||||||
import { PageSchema } from '@/types/json-ui'
|
|
||||||
|
|
||||||
interface JSONModelDesignerProps {
|
|
||||||
models: any[]
|
|
||||||
onModelsChange: (models: any[]) => void
|
|
||||||
}
|
|
||||||
|
|
||||||
export function JSONModelDesigner({ models, onModelsChange }: JSONModelDesignerProps) {
|
|
||||||
const schema = modelDesignerSchema as PageSchema
|
|
||||||
|
|
||||||
const handleCustomAction = async (action: any, event?: any) => {
|
|
||||||
console.log('[JSONModelDesigner] Custom action:', action, event)
|
|
||||||
}
|
|
||||||
|
|
||||||
return <PageRenderer schema={schema} onCustomAction={handleCustomAction} />
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user