You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.ts 648B

6 months ago
6 months ago
123456789101112131415161718192021222324
  1. import type { NodeDefault } from '../../types'
  2. import type {
  3. SimpleNodeType,
  4. } from '@/app/components/workflow/simple-node/types'
  5. import { genNodeMetaData } from '@/app/components/workflow/utils'
  6. import { BlockEnum } from '@/app/components/workflow/types'
  7. import { BlockClassificationEnum } from '@/app/components/workflow/block-selector/types'
  8. const metaData = genNodeMetaData({
  9. classification: BlockClassificationEnum.Logic,
  10. sort: 2,
  11. type: BlockEnum.LoopEnd,
  12. })
  13. const nodeDefault: NodeDefault<SimpleNodeType> = {
  14. metaData,
  15. defaultValue: {},
  16. checkValid() {
  17. return {
  18. isValid: true,
  19. }
  20. },
  21. }
  22. export default nodeDefault