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

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