feat: 卡片loading

This commit is contained in:
rd
2025-07-14 17:39:06 +08:00
parent aa176fd2b4
commit 02cea41a0b
2 changed files with 13 additions and 9 deletions

View File

@ -175,10 +175,10 @@ const toggleSelect = (item) => {
emits('selectionChange', newSelected);
};
const isSyncing = (item) => {
if (!props.selectedItems.length) return false;
if (!props.syncMediaAccounts.length) return false;
const target = props.selectedItems.find((v) => v.id === item.id);
return target.status === 0;
const target = props.syncMediaAccounts.find((v) => v.id === item.id);
return target?.status === 0;
};
const openEdit = (item) => {
@ -223,9 +223,9 @@ const isAbnormalStatus = (status) => {
].includes(status);
};
const getTooltipText = (status) => {
return STATUS_LIST.find((v) => v.value === status)?.tooltip ?? '-';
};
// const getTooltipText = (status) => {
// return STATUS_LIST.find((v) => v.value === status)?.tooltip ?? '-';
// };
const syncData = inject('handleSyncData');