diff --git a/src/assets/core.scss b/src/assets/core.scss
index 2b1299c..7f0e806 100644
--- a/src/assets/core.scss
+++ b/src/assets/core.scss
@@ -226,6 +226,7 @@
.root-modal-confirm{
z-index: calc(var(--header-z-index) + 1) !important;
background: rgba(0, 0, 0, 0.05);
+ //anticon anticon-exclamation-circle
.ant-modal-confirm-title{
font-size: 20px;
margin-top: -2px;
@@ -233,6 +234,9 @@
.ant-modal-confirm-content{
margin-top: 10px;
margin-left: -30px;
+ }
+ .icon-warning{
+
}
.ant-modal-confirm-btns{
@apply mt-8;
diff --git a/src/components/button-batch.tsx b/src/components/button-batch.tsx
index 9764aeb..3e0a6b4 100644
--- a/src/components/button-batch.tsx
+++ b/src/components/button-batch.tsx
@@ -51,6 +51,7 @@ export default function ButtonBatch(
wrapClassName:'root-modal-confirm',
title: title || '操作提示',
centered: true,
+ icon: ,
content: confirmMessage,
onOk: onBatchProcess
})
diff --git a/src/pages/news/components/button-delete-batch.tsx b/src/pages/news/components/button-delete-batch.tsx
index 4060f68..a78bc07 100644
--- a/src/pages/news/components/button-delete-batch.tsx
+++ b/src/pages/news/components/button-delete-batch.tsx
@@ -1,7 +1,7 @@
import {App} from "antd";
import {showToast} from "@/components/message.ts";
-import {useState} from "react";
-import {IconDelete} from "@/components/icons";
+import React, {useState} from "react";
+import {IconDelete, IconWarningCircle} from "@/components/icons";
import {deleteByIds} from "@/service/api/article.ts";
export default function ButtonDeleteBatch(props: { ids: Id[];onSuccess?: () => void; }) {
@@ -26,6 +26,7 @@ export default function ButtonDeleteBatch(props: { ids: Id[];onSuccess?: () => v
}
modal.confirm({
wrapClassName:'root-modal-confirm',
+ icon: ,
title: `你确定要删除选择的 ${props.ids.length} 条新闻吗?`,
content: '删除后需从新闻素材中重新选择',
onOk: handlePush,
diff --git a/src/pages/video/components/button-push2room.tsx b/src/pages/video/components/button-push2room.tsx
index 7fa2992..f9b5499 100644
--- a/src/pages/video/components/button-push2room.tsx
+++ b/src/pages/video/components/button-push2room.tsx
@@ -2,7 +2,7 @@ import {Button, Modal} from "antd";
import React, {useState} from "react";
import {showErrorToast, showToast} from "@/components/message.ts";
import {push2room, VideoStatus} from "@/service/api/video.ts";
-import {IconArrowRight} from "@/components/icons";
+import {IconArrowRight, IconWarningCircle} from "@/components/icons";
export default function ButtonPush2Room(props: { ids: Id[]; list: VideoInfo[];onSuccess?:()=>void; }) {
@@ -29,7 +29,9 @@ export default function ButtonPush2Room(props: { ids: Id[]; list: VideoInfo[];on
return
}
Modal.confirm({
+ wrapClassName:'root-modal-confirm',
title: '操作提示',
+ icon: ,
content: '是否确定一键推流选中新闻视频??',
onOk: handlePush
})