|
@@ -11,11 +11,12 @@ import {
|
|
import store from "@/store";
|
|
import store from "@/store";
|
|
import { baseURL } from "@/utils/http";
|
|
import { baseURL } from "@/utils/http";
|
|
import classNames from "classnames";
|
|
import classNames from "classnames";
|
|
-import { Button, Popconfirm } from "antd";
|
|
|
|
|
|
+import { Button } from "antd";
|
|
import { MessageFu } from "@/utils/message";
|
|
import { MessageFu } from "@/utils/message";
|
|
import { fileDomInitialFu } from "@/utils/domShow";
|
|
import { fileDomInitialFu } from "@/utils/domShow";
|
|
import { API_upFile } from "@/store/action/layout";
|
|
import { API_upFile } from "@/store/action/layout";
|
|
import { forwardRef, useImperativeHandle } from "react";
|
|
import { forwardRef, useImperativeHandle } from "react";
|
|
|
|
+import MyPopconfirm from "../MyPopconfirm";
|
|
|
|
|
|
// 这个组件 只处理 上传 一张图片或者 视频 音频 模型 的情况
|
|
// 这个组件 只处理 上传 一张图片或者 视频 音频 模型 的情况
|
|
|
|
|
|
@@ -167,14 +168,11 @@ function ZupOne(
|
|
|
|
|
|
{/* 删除 */}
|
|
{/* 删除 */}
|
|
<div className="file_closeBox" hidden={isLook}>
|
|
<div className="file_closeBox" hidden={isLook}>
|
|
- <Popconfirm
|
|
|
|
- title="删除后无法恢复,是否删除?"
|
|
|
|
- okText="删除"
|
|
|
|
- cancelText="取消"
|
|
|
|
|
|
+ <MyPopconfirm
|
|
|
|
+ txtK="删除"
|
|
onConfirm={() => setFileUrl({ fileName: "", filePath: "" })}
|
|
onConfirm={() => setFileUrl({ fileName: "", filePath: "" })}
|
|
- >
|
|
|
|
- <CloseOutlined rev={undefined} />
|
|
|
|
- </Popconfirm>
|
|
|
|
|
|
+ Dom={<CloseOutlined rev={undefined} />}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{/* 预览 下载 */}
|
|
{/* 预览 下载 */}
|
|
@@ -225,16 +223,12 @@ function ZupOne(
|
|
<DownloadOutlined rev={undefined} />
|
|
<DownloadOutlined rev={undefined} />
|
|
</a>
|
|
</a>
|
|
{/* 视频删除 */}
|
|
{/* 视频删除 */}
|
|
- <Popconfirm
|
|
|
|
- title="删除后无法恢复,是否删除?"
|
|
|
|
- okText="删除"
|
|
|
|
- cancelText="取消"
|
|
|
|
|
|
+
|
|
|
|
+ <MyPopconfirm
|
|
|
|
+ txtK="删除"
|
|
onConfirm={() => setFileUrl({ fileName: "", filePath: "" })}
|
|
onConfirm={() => setFileUrl({ fileName: "", filePath: "" })}
|
|
- >
|
|
|
|
- <div className="clearCover" hidden={isLook}>
|
|
|
|
- <CloseOutlined rev={undefined} />
|
|
|
|
- </div>
|
|
|
|
- </Popconfirm>
|
|
|
|
|
|
+ Dom={<CloseOutlined className="clearCover" rev={undefined} />}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
) : null}
|
|
) : null}
|
|
|
|
|