fix: models compare system message sync to all

This commit is contained in:
jialin
2024-09-30 11:45:42 +08:00
parent 3978ec683d
commit 5f77a0082c
18 changed files with 51 additions and 25 deletions
+2
View File
@@ -6,6 +6,7 @@ interface HintInputProps {
value: string;
label?: string;
onChange: (value: string) => void;
placeholder?: string;
sourceOptions?: Global.HintOptions[];
}
@@ -82,6 +83,7 @@ const HintInput: React.FC<HintInputProps> = (props) => {
return (
<AutoComplete
placeholder={props.placeholder}
defaultActiveFirstOption={true}
value={value}
onInput={handleInput}
+2
View File
@@ -12,6 +12,7 @@ interface ListInputProps {
description?: string;
btnText?: string;
options?: Global.HintOptions[];
placeholder?: string;
onChange: (data: string[]) => void;
}
@@ -75,6 +76,7 @@ const ListInput: React.FC<ListInputProps> = (props) => {
{_.map(list, (item: any, index: number) => {
return (
<ListItem
placeholder={props.placeholder}
options={options}
key={item.uid}
value={item.value}
+2
View File
@@ -10,6 +10,7 @@ interface LabelItemProps {
onChange: (value: string) => void;
value: string;
label?: string;
placeholder?: string;
options?: Global.HintOptions[];
}
@@ -27,6 +28,7 @@ const ListItem: React.FC<LabelItemProps> = (props) => {
onChange={handleOnChange}
label={label}
sourceOptions={options}
placeholder={props.placeholder}
/>
<Button
size="small"