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

1234567891011121314151617181920
  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. })
  9. const nodeDefault: NodeDefault<DataSourceEmptyNodeType> = {
  10. metaData,
  11. defaultValue: {},
  12. checkValid() {
  13. return {
  14. isValid: true,
  15. }
  16. },
  17. }
  18. export default nodeDefault