|
@@ -6,7 +6,7 @@ import React, {
|
|
|
useState,
|
|
|
} from "react";
|
|
|
import styles from "./index.module.scss";
|
|
|
-import { Button, Checkbox, Popconfirm } from "antd";
|
|
|
+import { Button, Checkbox } from "antd";
|
|
|
import { forwardRef, useImperativeHandle } from "react";
|
|
|
import { baseURL } from "@/utils/http";
|
|
|
import {
|
|
@@ -23,6 +23,7 @@ import { fileDomInitialFu } from "@/utils/domShow";
|
|
|
import store from "@/store";
|
|
|
import ImageLazy from "../ImageLazy";
|
|
|
import classNames from "classnames";
|
|
|
+import MyPopconfirm from "../MyPopconfirm";
|
|
|
|
|
|
export type FileListType = {
|
|
|
fileName: string;
|
|
@@ -259,18 +260,15 @@ function ZupTypes(
|
|
|
<DownloadOutlined rev={undefined} />
|
|
|
</a>
|
|
|
|
|
|
- <Popconfirm
|
|
|
- title="删除后无法恢复,是否删除?"
|
|
|
- okText="删除"
|
|
|
- cancelText="取消"
|
|
|
+ <MyPopconfirm
|
|
|
+ txtK="删除"
|
|
|
onConfirm={() =>
|
|
|
setFileList({ ...fileList, [type]: {} as FileListType })
|
|
|
}
|
|
|
- >
|
|
|
- <div className="ZTbox2X">
|
|
|
- <CloseCircleOutlined rev={undefined} />
|
|
|
- </div>
|
|
|
- </Popconfirm>
|
|
|
+ Dom={
|
|
|
+ <CloseCircleOutlined className="ZTbox2X" rev={undefined} />
|
|
|
+ }
|
|
|
+ />
|
|
|
</div>
|
|
|
) : (
|
|
|
<>
|
|
@@ -435,16 +433,13 @@ function ZupTypes(
|
|
|
</a>
|
|
|
</div>
|
|
|
|
|
|
- <Popconfirm
|
|
|
- title="删除后无法恢复,是否删除?"
|
|
|
- okText="删除"
|
|
|
- cancelText="取消"
|
|
|
+ <MyPopconfirm
|
|
|
+ txtK="删除"
|
|
|
onConfirm={() => delImgListFu(v.id!)}
|
|
|
- >
|
|
|
- <div className="ZTbox1ImgRowX">
|
|
|
- <CloseOutlined rev={undefined} />
|
|
|
- </div>
|
|
|
- </Popconfirm>
|
|
|
+ Dom={
|
|
|
+ <CloseOutlined className="ZTbox1ImgRowX" rev={undefined} />
|
|
|
+ }
|
|
|
+ />
|
|
|
</div>
|
|
|
))}
|
|
|
</div>
|