+
{
+ console.log({ multiple, file });
+ if (multiple) {
+ set(file.uid, toItem(file));
+ } else {
+ setAll([[file.uid, toItem(file)]]);
+ }
+ if (file.status === 'done') {
+ if (multiple) {
+ onChange([...toArr(value), file?.response?.data]);
+ } else {
+ onChange(file?.response?.data);
+ }
+ }
+ }}
+ showUploadList={false}
+ >
+ }>上传文件
+
+ {[...map.entries()].map(
+ ([key, item]) =>
+ item.id && (
+
+ ),
+ )}
+ {visible && (
+
setVisible(false)}
+ onMovePrevRequest={() =>
+ setPhotoIndex((photoIndex + images.length - 1) % images.length)
+ }
+ onMoveNextRequest={() =>
+ setPhotoIndex((photoIndex + 1) % images.length)
+ }
+ imageTitle={images[photoIndex]?.title}
+ // toolbarButtons={[
+ // 下载
,
+ // ]}
+ // imageCaption={'xxx'}
+ />
+ )}
+
+ );
+ },
+ mapReadPretty(
+ observer((props) => {
+ const field = useField