Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改反应数据表组件中的默认文本?例如,当没有可用数据时,它会显示“没有要显示的记录”,但我需要根据用户选择的语言更改文本。是否可以更改默认文本和字体?
在 DataTable 组件中使用noDataComponent属性
noDataComponent
<DataTable columns={columns} noDataComponent="Your Text Here" //or your component data={data} pagination />