feat(web): 完成分支节点动态改变handle

This commit is contained in:
v-zhangjc9
2025-07-16 19:54:48 +08:00
parent 91e6f49342
commit a3c2250285
11 changed files with 138 additions and 105 deletions

View File

@@ -88,7 +88,7 @@ type AmisNodeProps = {
nodeProps: NodeProps
extraNodeDescription?: JSX.Element
handler: JSX.Element
columnSchema?: () => Schema[]
columnSchema?: Schema[]
resize?: { minWidth: number, minHeight: number }
}
@@ -183,7 +183,7 @@ const AmisNode: (props: AmisNodeProps) => JSX.Element = ({
{
type: 'divider',
},
...(columnSchema?.() ?? []),
...(columnSchema ?? []),
{
type: 'wrapper',
size: 'none',
@@ -221,7 +221,7 @@ const AmisNode: (props: AmisNodeProps) => JSX.Element = ({
),
)
setEditDrawerOpen(true)
}, [nodeData])
}, [id])
const onRemoveClick = useCallback(() => {
removeNode(id)
removeDataById(id)