fix: node default

This commit is contained in:
zxhlyh
2025-04-29 16:11:54 +08:00
parent 2613a380b6
commit 66176c4d71
40 changed files with 557 additions and 155 deletions

View File

@ -3,11 +3,12 @@ import type { LoopStartNodeType } from './types'
import { genNodeMetaData } from '@/app/components/workflow/utils'
import { BlockEnum } from '@/app/components/workflow/types'
const metaData = genNodeMetaData({
sort: -1,
type: BlockEnum.LoopStart,
})
const nodeDefault: NodeDefault<LoopStartNodeType> = {
...genNodeMetaData({
sort: -1,
type: BlockEnum.LoopStart,
}),
metaData,
defaultValue: {},
checkValid() {
return {