Explorar el Código

fix(bug): 文件缩略图名称

tangning hace 4 años
padre
commit
873f417154
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/Upload/src/data.tsx

+ 1 - 1
src/components/Upload/src/data.tsx

@@ -40,7 +40,7 @@ export function createTableColumns(): BasicColumn[] {
         return (
           <span>
             <p class="truncate mb-1" title={text}>
-              {text}
+              {text && text.length < 30 ? text : text.slice(0, 30) + '...'}
             </p>
             <Progress percent={percent} size="small" status={status} />
           </span>