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 669B

12345678910111213141516171819202122232425
  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. isSingleton: true,
  13. })
  14. const nodeDefault: NodeDefault<SimpleNodeType> = {
  15. metaData,
  16. defaultValue: {},
  17. checkValid() {
  18. return {
  19. isValid: true,
  20. }
  21. },
  22. }
  23. export default nodeDefault