mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
chore: notes add form content holder
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import React from 'react'
|
||||
|
||||
type Props = {
|
||||
|
||||
}
|
||||
|
||||
const FormContent: FC<Props> = ({
|
||||
}) => {
|
||||
return (
|
||||
<div>
|
||||
aaaa
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default React.memo(FormContent)
|
||||
@ -17,6 +17,7 @@ import TimeoutInput from './components/timeout'
|
||||
import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'
|
||||
import { VarType } from '@/app/components/workflow/types'
|
||||
import type { Var } from '@/app/components/workflow/types'
|
||||
import FormContent from './components/form-content'
|
||||
|
||||
const i18nPrefix = 'workflow.nodes.humanInput'
|
||||
|
||||
@ -53,6 +54,18 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({
|
||||
<div className='px-4 py-2'>
|
||||
<Divider className='!my-0 !h-px !bg-divider-subtle' />
|
||||
</div>
|
||||
{/* form content */}
|
||||
<div className='px-4 py-2'>
|
||||
<div className='mb-1 flex items-center justify-between'>
|
||||
<div className='flex items-center gap-0.5'>
|
||||
<div className='system-sm-semibold-uppercase text-text-secondary'>{t(`${i18nPrefix}.formContent.title`)}</div>
|
||||
<Tooltip
|
||||
popupContent={t(`${i18nPrefix}.formContent.tooltip`)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<FormContent />
|
||||
</div>
|
||||
{/* user actions */}
|
||||
<div className='px-4 py-2'>
|
||||
<div className='mb-1 flex items-center justify-between'>
|
||||
|
||||
Reference in New Issue
Block a user