feat: 添加 ESLint 配置并优化代码风格,移除未使用的功能

This commit is contained in:
Elysia
2026-02-12 18:31:09 +08:00
parent b43c6117ec
commit e11740ad4c
14 changed files with 65 additions and 114 deletions

View File

@@ -146,18 +146,6 @@ const handleOverlayClick = () => {
close();
};
const pause = () => {
// emit('pause', props.download.id);
};
const resume = () => {
// emit('resume', props.download.id);
};
const cancel = () => {
//emit('cancel', props.download.id);
};
const retry = () => {
if (props.download) {
emit('retry', props.download);

View File

@@ -100,18 +100,6 @@ const toggleExpand = () => {
isExpanded.value = !isExpanded.value;
};
const pauseDownload = (id: string) => {
// emit('pause', id);
};
const resumeDownload = (id: string) => {
// emit('resume', id);
};
const cancelDownload = (id: string) => {
// emit('cancel', id);
};
const retryDownload = (download: DownloadItem) => {
emit('retry', download);
};

View File

@@ -90,6 +90,7 @@ defineProps<{
hasSelected: boolean;
}>();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const emit = defineEmits<{
(e: 'close'): void;
(e: 'refresh'): void;