feat: build categorize list from object #918 (#1276)

### What problem does this PR solve?

feat: build categorize list from object #918

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-25 19:28:24 +08:00
committed by GitHub
parent 83b91d90fe
commit fef663a59d
11 changed files with 208 additions and 69 deletions

View File

@ -1,16 +1,30 @@
import { Popover, Select } from 'antd';
import LlmSettingItems from '../llm-setting-items';
const LLMSelect = () => {
interface IProps {
id?: string;
value?: string;
onChange?: (value: string) => void;
}
const LLMSelect = ({ id, value, onChange }: IProps) => {
const content = (
<div>
<LlmSettingItems handleParametersChange={() => {}}></LlmSettingItems>
<div style={{ width: 400 }}>
<LlmSettingItems
formItemLayout={{ labelCol: { span: 10 }, wrapperCol: { span: 14 } }}
></LlmSettingItems>
</div>
);
return (
<Popover content={content} trigger="click" placement="left" arrow={false}>
<Select style={{ width: '100%' }} dropdownStyle={{ display: 'none' }} />
<Select
style={{ width: '100%' }}
dropdownStyle={{ display: 'none' }}
id={id}
value={value}
onChange={onChange}
/>
</Popover>
);
};