record panel

This commit is contained in:
StyleZhang
2024-02-29 17:26:49 +08:00
parent 6d5618447e
commit 1840d05a37
11 changed files with 159 additions and 132 deletions

View File

@ -57,8 +57,8 @@ const NodeSelector: FC<NodeSelectorProps> = ({
}, [onOpenChange])
const handleTrigger = useCallback<MouseEventHandler<HTMLDivElement>>((e) => {
e.stopPropagation()
handleOpenChange(!open)
}, [open, handleOpenChange])
setLocalOpen(v => !v)
}, [])
const handleSelect = useCallback((type: BlockEnum) => {
handleOpenChange(false)
onSelect(type)