feat: add description text to operators and extract the useFetchModelId to logicHooks.ts and drag the operator to the canvas and initialize the form data #918 (#1379)

### What problem does this PR solve?

feat: add description text to operators #918 
feat: drag the operator to the canvas and initialize the form data #918
feat: extract the useFetchModelId to logicHooks.ts
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-04 19:18:02 +08:00
committed by GitHub
parent 306108fe0e
commit 25a8c076bf
12 changed files with 171 additions and 102 deletions

View File

@@ -1,16 +1,19 @@
import { useFetchFlow } from '@/hooks/flow-hooks';
import { IModalProps } from '@/interfaces/common';
import { Drawer } from 'antd';
import FlowChatBox from './box';
const ChatDrawer = ({ visible, hideModal }: IModalProps<any>) => {
const { data } = useFetchFlow();
return (
<Drawer
title="Debug"
title={data.title}
placement="right"
onClose={hideModal}
open={visible}
getContainer={false}
width={window.innerWidth > 1278 ? '30%' : 470}
width={window.innerWidth > 1278 ? '40%' : 470}
mask={false}
// zIndex={10000}
>