您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122
  1. import type { NodeDefault } from '../../types'
  2. import type { DataSourceEmptyNodeType } from './types'
  3. import { genNodeMetaData } from '@/app/components/workflow/utils'
  4. import { BlockEnum } from '@/app/components/workflow/types'
  5. const metaData = genNodeMetaData({
  6. sort: -1,
  7. type: BlockEnum.DataSourceEmpty,
  8. isUndeletable: true,
  9. isSingleton: true,
  10. })
  11. const nodeDefault: NodeDefault<DataSourceEmptyNodeType> = {
  12. metaData,
  13. defaultValue: {},
  14. checkValid() {
  15. return {
  16. isValid: true,
  17. }
  18. },
  19. }
  20. export default nodeDefault