mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Modify the style of the canvas operator node #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
17
web/src/pages/agent/canvas/node/handle.tsx
Normal file
17
web/src/pages/agent/canvas/node/handle.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Handle, HandleProps } from '@xyflow/react';
|
||||
import { Plus } from 'lucide-react';
|
||||
|
||||
export function CommonHandle({ className, ...props }: HandleProps) {
|
||||
return (
|
||||
<Handle
|
||||
{...props}
|
||||
className={cn(
|
||||
'inline-flex justify-center items-center !bg-background-checked !size-4 !rounded-sm !border-none ',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<Plus className="size-3 pointer-events-none" />
|
||||
</Handle>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user