我想显示 nowrap 文本,例如 ...더보기 不是 ...,我如何使用 material-ui 更改它
import React from 'react';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
root: {
width: '100%',
maxWidth: 500,
},
});
export default function Types() {
const classes = useStyles();
return (
<div className={classes.root}>
<Typography noWrap variant="body1" gutterBottom>
body1. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos blanditiis teneturunde suscipit, quam beatae rerum inventore consectetur, neque doloribus, cupiditate numquam dignissimos laborum fugiat deleniti? Eum quasi quidem quibusdam.
</Typography>
</div>
);
}
它显示为“body1. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos blandit...”
但我想这样展示“body1. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos blandit ...더보기”
你可以帮帮我吗?