报错信息 Attempted import error: ‘Search’ is not exported from ‘antd’ 代码 import { Search } from "antd"; 错误原因 因为antd的版本更新,所以Search的引入方法不再是上面那种。要改为: import { Input, Space } from 'antd'; const { Search } = Input;