优化Upload组件

master
LiuJiaNan 2025-10-30 11:27:04 +08:00
parent 775cac06f5
commit 2e4949497b
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ const Upload = (props) => {
onChange,
onPreview,
maxCount = 1,
listType = "text",
accept = "",
listType = "picture-card",
accept = ["picture-card", "picture-circle", "picture"].includes(listType) ? ".jpg,.jpeg,.png" : "",
ratio = "",
showTip = true,
multiple = true,