export const SearchPanel = ({ users, param, setParam }: SearchPanelProps) => {标签:jira,setParam,name,personId,29,value,ant,param,evt From: https://blog.51cto.com/u_15460007/6052209
return (
<Form style={{ marginBottom: "2rem" }} layout={"inline"}>
<Form.Item>
{/*setParam(Object.assign({}, param, {name:evt.target.value}))*/}
<Input
placeholder={"项目名"}
type="text"
value={param.name}
onChange={(evt) =>
setParam({
...param,
name: evt.target.value,
})
}
/>
</Form.Item>
<Form.Item>
<UserSelect
defaultOptionName={"负责人"}
value={param.personId}
onChange={(value) =>
setParam({
...param,
personId: value,
})
}
/>
</Form.Item>
</Form>
);
};