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

@@ -37,7 +37,6 @@ function handleEdit(row: MallBrandApi.Brand) {
async function handleDelete(row: MallBrandApi.Brand) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteBrand(row.id as number);

View File

@@ -54,7 +54,6 @@ const handleViewSpu = (id: number) => {
async function handleDelete(row: MallCategoryApi.Category) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteCategory(row.id as number);

View File

@@ -42,7 +42,6 @@ function handleEdit(row: any) {
async function handleDelete(row: MallPropertyApi.Property) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteProperty(row.id as number);

View File

@@ -49,7 +49,6 @@ function handleEdit(row: MallPropertyApi.PropertyValue) {
async function handleDelete(row: MallPropertyApi.PropertyValue) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deletePropertyValue(row.id as number);

View File

@@ -100,7 +100,6 @@ function handleEdit(row: MallSpuApi.Spu) {
async function handleDelete(row: MallSpuApi.Spu) {
const hideLoading = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteSpu(row.id as number);

View File

@@ -40,7 +40,6 @@ function handleEdit(row: MallArticleCategoryApi.ArticleCategory) {
async function handleDelete(row: MallArticleCategoryApi.ArticleCategory) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteArticleCategory(row.id as number);

View File

@@ -37,7 +37,6 @@ function handleEdit(row: MallArticleApi.Article) {
async function handleDelete(row: MallArticleApi.Article) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.title]),
fullscreen: true,
});
try {
await deleteArticle(row.id as number);

View File

@@ -37,7 +37,6 @@ function handleEdit(row: MallBannerApi.Banner) {
async function handleDelete(row: MallBannerApi.Banner) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.title]),
fullscreen: true,
});
try {
await deleteBanner(row.id as number);

View File

@@ -51,7 +51,6 @@ async function handleClose(row: MallBargainActivityApi.BargainActivity) {
async function handleDelete(row: MallBargainActivityApi.BargainActivity) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteBargainActivity(row.id as number);

View File

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

View File

@@ -26,7 +26,6 @@ const statusTabs = ref(getStatusTabs());
async function handleDelete(row: MallCouponApi.Coupon) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteCoupon(row.id as number);

View File

@@ -46,7 +46,6 @@ function handleCreate() {
async function handleDelete(row: MallCouponTemplateApi.CouponTemplate) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteCouponTemplate(row.id as number);
@@ -71,7 +70,6 @@ async function handleStatusChange(row: MallCouponTemplateApi.CouponTemplate) {
const text = row.status === CommonStatusEnum.ENABLE ? '启用' : '停用';
const loadingInstance = ElLoading.service({
text: `正在${text}优惠券模板...`,
fullscreen: true,
});
try {
await updateCouponTemplateStatus(row.id as number, row.status as 0 | 1);

View File

@@ -51,7 +51,6 @@ async function handleClose(row: MallDiscountActivityApi.DiscountActivity) {
async function handleDelete(row: MallDiscountActivityApi.DiscountActivity) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDiscountActivity(row.id as number);

View File

@@ -49,7 +49,6 @@ function handleDecorate(row: MallDiyPageApi.DiyPage) {
async function handleDelete(row: MallDiyPageApi.DiyPage) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDiyPage(row.id as number);

View File

@@ -62,7 +62,6 @@ async function handleUse(row: MallDiyTemplateApi.DiyTemplate) {
async function handleDelete(row: MallDiyTemplateApi.DiyTemplate) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDiyTemplate(row.id as number);

View File

@@ -59,7 +59,6 @@ async function handleClose(row: MallPointActivityApi.PointActivity) {
async function handleDelete(row: MallPointActivityApi.PointActivity) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.spuName]),
fullscreen: true,
});
try {
await deletePointActivity(row.id);

View File

@@ -51,7 +51,6 @@ async function handleClose(row: MallRewardActivityApi.RewardActivity) {
async function handleDelete(row: MallRewardActivityApi.RewardActivity) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteRewardActivity(row.id as number);

View File

@@ -55,7 +55,6 @@ async function handleClose(row: MallSeckillActivityApi.SeckillActivity) {
async function handleDelete(row: MallSeckillActivityApi.SeckillActivity) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteSeckillActivity(row.id as number);

View File

@@ -41,7 +41,6 @@ function handleEdit(row: MallSeckillConfigApi.SeckillConfig) {
async function handleDelete(row: MallSeckillConfigApi.SeckillConfig) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteSeckillConfig(row.id as number);

View File

@@ -81,7 +81,6 @@ async function handleBrokerageEnabledChange(
const text = row.brokerageEnabled ? '开通' : '关闭';
const loadingInstance = ElLoading.service({
text: `正在${text}"${row.nickname}"的推广资格...`,
fullscreen: true,
});
try {
await updateBrokerageEnabled({

View File

@@ -48,7 +48,6 @@ function handleEdit(row: MallDeliveryExpressApi.DeliveryExpress) {
async function handleDelete(row: MallDeliveryExpressApi.DeliveryExpress) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDeliveryExpress(row.id as number);

View File

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

View File

@@ -51,7 +51,6 @@ function handleBind(row: MallDeliveryPickUpStoreApi.PickUpStore) {
async function handleDelete(row: MallDeliveryPickUpStoreApi.PickUpStore) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
fullscreen: true,
});
try {
await deleteDeliveryPickUpStore(row.id as number);