Todo: 移动端: 历史记录
parent
4089b85c72
commit
6f78fb678d
@ -0,0 +1,31 @@
|
||||
import { createContext, useContext, useEffect, useState, useCallback } from 'react';
|
||||
import { Divider, Layout } from 'antd';
|
||||
import useFormStore from '@/stores/FormStore';
|
||||
import SearchForm from '@/views/Conversations/History/SearchForm';
|
||||
import ConversationsList from '@/views/Conversations/History/ConversationsList';
|
||||
|
||||
const { Sider, Content, Header } = Layout;
|
||||
const History = (props) => {
|
||||
const [formValues, setFormValues] = useFormStore((state) => [state.chatHistoryForm, state.setChatHistoryForm]);
|
||||
|
||||
const handleSubmit = useCallback((values) => {
|
||||
setFormValues({ ...values });
|
||||
}, []);
|
||||
return (
|
||||
<div className='chathistory-wrapper chatwindow-wrapper'>
|
||||
<SearchForm onSubmit={handleSubmit} initialValues={formValues} />
|
||||
<ConversationsList />
|
||||
{/* <Layout hasSider className='h-screen chathistory-wrapper chatwindow-wrapper' style={{ maxHeight: 'calc(100% - 279px)', height: 'calc(100% - 279px)' }}>
|
||||
<Header
|
||||
className='header px-2 h-8 border-0 border-b border-neutral-200 border-solid '
|
||||
style={{ position: 'sticky', top: 0, zIndex: 1, width: '100%', background: 'white' }}>
|
||||
<SearchForm onSubmit={handleSubmit} initialValues={formValues} />
|
||||
</Header>
|
||||
<Content style={{ maxHeight: 'calc(100vh - 279px)', height: 'calc(100vh - 279px)', minWidth: '360px' }}>
|
||||
<ConversationsList />
|
||||
</Content>
|
||||
</Layout> */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default History;
|
Loading…
Reference in New Issue