reactor:element-plus 移除 loading 的 fullscreen = true(默认就是 true)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user