merge main

This commit is contained in:
zxhlyh
2026-01-21 14:05:22 +08:00
581 changed files with 38181 additions and 5619 deletions

View File

@ -41,7 +41,7 @@ const ChunkStructure = ({
}}
>
{
chunkStructure && (
!!chunkStructure && (
<OptionCard
{...optionMap[chunkStructure]}
selectedId={chunkStructure}

View File

@ -100,7 +100,7 @@ const OptionCard = memo(({
>
{effectElement}
{
icon && (
!!icon && (
<div className="mr-1 flex h-[18px] w-[18px] shrink-0 items-center justify-center">
{typeof icon === 'function' ? icon(isActive) : icon}
</div>
@ -139,7 +139,7 @@ const OptionCard = memo(({
</div>
</div>
{
children && isActive && (
!!(children && isActive) && (
<div className="relative rounded-b-xl bg-components-panel-bg p-3">
<ArrowShape className="absolute left-[14px] top-[-11px] h-4 w-4 text-components-panel-bg" />
{children}

View File

@ -120,7 +120,7 @@ const Panel: FC<NodePanelProps<KnowledgeBaseNodeType>> = ({
/>
</Group>
{
data.chunk_structure && (
!!data.chunk_structure && (
<>
<BoxGroupField
boxGroupProps={{