AntDesign的Select组件没有数据时显示的文本如何自定义?
创始人
2024-11-07 13:01:14
0

可以使用 Select 组件的 props 属性中的 notFoundContent 来自定义。例如,将 'No Data” 改成 '暂无数据”。

import { Select } from 'antd';

const options = [];