- {activePanelFiles.length === 0 ? (
-
onOpenPanelUpload(activePanel)}
- disabled={isReadOnly}
- className="flex min-h-[140px] flex-1 flex-col items-center justify-center rounded-apple-xl border border-dashed border-apple-separator px-5 text-center transition hover:border-apple-blue/50 hover:bg-apple-bg-secondary/40 disabled:cursor-default disabled:hover:border-apple-separator disabled:hover:bg-transparent"
- >
-
- 当前还没有{activePanelTitle}
-
-
- {isReadOnly
- ? `当前还没有${activePanelTitle}资料。`
- : `点击这里或上方“${groupUploadLabel}”后,这里会显示图片缩略图列表。`}
-
-
- ) : (
-
- {activePanelFiles.map((file) => {
- const isActive =
- selectedTarget.group === activePanel &&
- selectedTarget.fileId === file.id;
-
- return (
-
- onSelectGroupedFile(activePanel, file.id)
- }
- className={`rounded-apple-lg border p-2 text-left transition ${
- isActive
- ? "border-apple-blue bg-apple-blue/10"
- : "border-apple-separator bg-apple-bg-secondary/20 hover:bg-apple-bg-secondary/40"
- }`}
- >
-
-
- {isImageUploadFile(file) ? (
- /* eslint-disable-next-line @next/next/no-img-element */
-
- ) : (
-
- {getUploadFileTypeLabel(file)}
-
- )}
-
-
-
- {file.name}
-
-
- 点击查看大图预览
-
-
-
-
- );
- })}
-
- )}
-