reactor:element-plus 移除 loading 的 fullscreen = true(默认就是 true)

This commit is contained in:
YunaiV
2025-09-05 23:39:33 +08:00
parent 8d93c843ad
commit e81a759e0d
58 changed files with 34 additions and 117 deletions

View File

@@ -61,7 +61,6 @@ const submitForm = async () => {
// 提交表单
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.updating'),
fullscreen: true,
});
try {
// 拼接相关信息

View File

@@ -75,7 +75,6 @@ function onEdit(row: InfraCodegenApi.CodegenTable) {
async function onDelete(row: InfraCodegenApi.CodegenTable) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.tableName]),
fullscreen: true,
});
try {
await deleteCodegenTable(row.id);
@@ -107,7 +106,6 @@ async function onSync(row: InfraCodegenApi.CodegenTable) {
async function onGenerate(row: InfraCodegenApi.CodegenTable) {
const loadingInstance = ElLoading.service({
text: '正在生成代码...',
fullscreen: true,
});
try {
const res = await downloadCodegen(row.id);

View File

@@ -96,7 +96,6 @@ const [Modal, modalApi] = useVbenModal({
// 2. 提交请求
const loadingInstance = ElLoading.service({
text: '导入中...',
fullscreen: true,
});
try {
await createCodegenList(formData);

View File

@@ -54,7 +54,6 @@ function onEdit(row: InfraConfigApi.Config) {
async function onDelete(row: InfraConfigApi.Config) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteConfig(row.id as number);

View File

@@ -42,7 +42,6 @@ function onEdit(row: InfraDataSourceConfigApi.DataSourceConfig) {
async function onDelete(row: InfraDataSourceConfigApi.DataSourceConfig) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDataSourceConfig(row.id as number);

View File

@@ -62,7 +62,6 @@ function openUrl(url?: string) {
async function onDelete(row: InfraFileApi.File) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name || row.path]),
fullscreen: true,
});
try {
await deleteFile(row.id as number);

View File

@@ -49,7 +49,6 @@ function onEdit(row: InfraFileConfigApi.FileConfig) {
async function onMaster(row: InfraFileConfigApi.FileConfig) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.updating', [row.name]),
fullscreen: true,
});
try {
await updateFileConfigMaster(row.id as number);
@@ -64,7 +63,6 @@ async function onMaster(row: InfraFileConfigApi.FileConfig) {
async function onTest(row: InfraFileConfigApi.FileConfig) {
const loadingInstance = ElLoading.service({
text: '测试上传中...',
fullscreen: true,
});
try {
const response = await testFileConfig(row.id as number);
@@ -87,7 +85,6 @@ async function onTest(row: InfraFileConfigApi.FileConfig) {
async function onDelete(row: InfraFileConfigApi.FileConfig) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteFileConfig(row.id as number);

View File

@@ -107,7 +107,6 @@ function onLog(row?: InfraJobApi.Job) {
async function onDelete(row: InfraJobApi.Job) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteJob(row.id as number);