作者:权志龙qzl818_734 | 来源:互联网 | 2023-05-18 22:42
return({renderedPages.map(page>(<Buttonkey{page}onClick{()>onPageChange(page)}content{
return (
{renderedPages.map(page => (
<Button
key={page}
onClick={() => onPageChange(page)}
content={page}
style={currentPage === page?{backgroundColor:"#cccccc"}:{}}
/>
))}
)