Optimize modal

This commit is contained in:
2024-02-17 14:27:20 +08:00
parent 524b57ed8b
commit b798bb3eb5
9 changed files with 25 additions and 0 deletions

View File

@@ -232,6 +232,7 @@ const Base = () => {
compileForm.setFieldValue('entryFileName', undefined)
void modal.confirm({
title: '编译',
maskClosable: true,
content: (
<>
<AntdForm form={compileForm}>
@@ -372,6 +373,7 @@ const Base = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除基板 ${value.name} 吗?`
})
.then(
@@ -535,6 +537,7 @@ const Base = () => {
const handleOnAddFile = () => {
void modal.confirm({
title: '新建文件',
maskClosable: true,
content: (
<AntdForm form={addFileForm}>
<AntdForm.Item
@@ -711,6 +714,7 @@ const Base = () => {
renameFileForm.setFieldValue('fileName', fileName)
void modal.confirm({
title: '重命名文件',
maskClosable: true,
content: (
<AntdForm form={renameFileForm}>
<AntdForm.Item
@@ -811,6 +815,7 @@ const Base = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除文件 ${fileName} 吗?`
})
.then(

View File

@@ -122,6 +122,7 @@ const Category = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除类别 ${value.name} 吗?`
})
.then(

View File

@@ -230,6 +230,7 @@ const Template = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除模板 ${value.name} 吗?`
})
.then(
@@ -398,6 +399,7 @@ const Template = () => {
const handleOnAddFile = () => {
void modal.confirm({
title: '新建文件',
maskClosable: true,
content: (
<AntdForm form={addFileForm}>
<AntdForm.Item
@@ -577,6 +579,7 @@ const Template = () => {
renameFileForm.setFieldValue('fileName', fileName)
void modal.confirm({
title: '重命名文件',
maskClosable: true,
content: (
<AntdForm form={renameFileForm}>
<AntdForm.Item
@@ -677,6 +680,7 @@ const Template = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除文件 ${fileName} 吗?`
})
.then(

View File

@@ -190,6 +190,7 @@ const Tools = () => {
form.setFieldValue('pass', undefined)
void modal.confirm({
title: '审核',
maskClosable: true,
content: (
<AntdForm form={form}>
<AntdForm.Item
@@ -330,6 +331,7 @@ const Tools = () => {
modal
.confirm({
title: '确定下架',
maskClosable: true,
content: `确定下架工具 ${value.author.username}:${value.toolId}:${value.ver} 吗?`
})
.then(
@@ -364,6 +366,7 @@ const Tools = () => {
modal
.confirm({
title: '确定删除',
maskClosable: true,
content: `确定删除工具 ${value.author.username}:${value.toolId}:${value.ver} 吗?`
})
.then(