Commit 7dbd7c40 authored by niko's avatar niko Committed by 偏右

fix length property include "..." tail length (#1592)

parent a144bbd0
......@@ -20,7 +20,7 @@ const EllipsisText = ({ text, length, tooltip, ...other }) => {
if (length - tail.length <= 0) {
displayText = '';
} else {
displayText = text.slice(0, length - tail.length);
displayText = text.slice(0, length);
}
if (tooltip) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment