如何从 Ant Design 输入搜索框中删除放大镜按钮?

How can I remove the magnifying glass button from an Ant Design input search box?

ant design的一个Input.Search能否去掉右边带放大镜的搜索按钮,只剩下输入框,可能是在左边插入放大镜(带有 SearchOutlined 前缀)?

<Search placeholder="input search text" onSearch={onSearch} style={{ width: 200 }}/>

我希望结果是这样的

谢谢!

是否有特定原因需要使用 Input.Search?这可以通过普通 Input 组件来实现。

<Input prefix={<SearchOutlined />} placeholder="Search..." onPressEnter={onSearch} style={{ width: 200 }} />