Improve workflow block selector search functionality (#24707)

This commit is contained in:
lyzno1
2025-08-28 17:21:34 +08:00
committed by GitHub
parent 89ad6ad902
commit 64c7be59b7
10 changed files with 130 additions and 46 deletions

View File

@ -7,16 +7,22 @@ import type { ToolDefaultValue } from './types'
type TriggerPluginSelectorProps = {
onSelect: (type: BlockEnum, tool?: ToolDefaultValue) => void
searchText: string
onContentStateChange?: (hasContent: boolean) => void
tags?: string[]
}
const TriggerPluginSelector = ({
onSelect,
searchText,
onContentStateChange,
tags = [],
}: TriggerPluginSelectorProps) => {
return (
<TriggerPluginList
onSelect={onSelect}
searchText={searchText}
onContentStateChange={onContentStateChange}
tags={tags}
/>
)
}