feat: doc extract struct

This commit is contained in:
Joel
2024-07-26 11:21:17 +08:00
parent 1668df104f
commit 6fafd410d2
12 changed files with 206 additions and 1 deletions

View File

@ -8,12 +8,14 @@ import type { Node } from '@/app/components/workflow/types'
import { BlockEnum } from '@/app/components/workflow/types'
type NodeVariableItemProps = {
className?: string
isEnv: boolean
node: Node
varName: string
showBorder?: boolean
}
const NodeVariableItem = ({
className,
isEnv,
node,
varName,
@ -22,7 +24,7 @@ const NodeVariableItem = ({
return (
<div className={cn(
'relative flex items-center mt-0.5 h-6 bg-gray-100 rounded-md px-1 text-xs font-normal text-gray-700',
showBorder && '!bg-black/[0.02]',
showBorder && '!bg-black/[0.02]', className,
)}>
{!isEnv && (
<div className='flex items-center'>