Explorar o código

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

tangning %!s(int64=3) %!d(string=hai) anos
pai
achega
873f417154
Modificáronse 1 ficheiros con 1 adicións e 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 (
         return (
           <span>
           <span>
             <p class="truncate mb-1" title={text}>
             <p class="truncate mb-1" title={text}>
-              {text}
+              {text && text.length < 30 ? text : text.slice(0, 30) + '...'}
             </p>
             </p>
             <Progress percent={percent} size="small" status={status} />
             <Progress percent={percent} size="small" status={status} />
           </span>
           </span>