mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 06:46:40 +08:00
### 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)
26 lines
602 B
TypeScript
26 lines
602 B
TypeScript
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={data.title}
|
|
placement="right"
|
|
onClose={hideModal}
|
|
open={visible}
|
|
getContainer={false}
|
|
width={window.innerWidth > 1278 ? '40%' : 470}
|
|
mask={false}
|
|
// zIndex={10000}
|
|
>
|
|
<FlowChatBox></FlowChatBox>
|
|
</Drawer>
|
|
);
|
|
};
|
|
|
|
export default ChatDrawer;
|