From d2052e28250820476345783ff8455f87cc88425e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E9=87=8C=E7=9A=84=E6=B0=B8?= =?UTF-8?q?=E5=B9=B3?= Date: Tue, 15 Jul 2025 10:48:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AC=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=E5=A6=82=E4=B8=8B=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=B2=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nkebao/src/pages/content/materials/New.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nkebao/src/pages/content/materials/New.tsx b/nkebao/src/pages/content/materials/New.tsx index 902d65c96..91424c84f 100644 --- a/nkebao/src/pages/content/materials/New.tsx +++ b/nkebao/src/pages/content/materials/New.tsx @@ -12,6 +12,7 @@ import UnifiedHeader from '@/components/UnifiedHeader'; import { get, post, put } from '@/api/request'; import { Image as ImageIcon, Link as LinkIcon, Video as VideoIcon, FileText, Layers, UploadCloud } from 'lucide-react'; import { Upload } from 'tdesign-mobile-react'; +import type { UploadFile } from 'tdesign-mobile-react/es/upload/type'; export default function NewMaterial() { const navigate = useNavigate(); @@ -229,18 +230,15 @@ export default function NewMaterial() { {/* 素材上传分组(仅图片类型和小程序类型) */} {(contentType === 1 || contentType === 5) && (
-
素材上传
+
素材上传(最多上传9张)
{contentType === 1 && (
-
素材上传
({ url }))} - onChange={({ files }) => setImages(files.map(f => f.url))} + onChange={(files: UploadFile[]) => setImages(files.map((f: any) => f.url))} multiple accept="image/*" max={9} - theme="image" - tips="支持JPG、PNG格式,最多9张" />
)}